Re: uvm_fault - Stopped at pmap_remove_ptes_86

2015-04-21 Thread Mike Larkin
On Tue, Apr 21, 2015 at 11:36:44AM -0400, Daniel Dickman wrote:
 I am seeing the exact same crash with GENRIC.MP latest snap on i386. booting 
 with the GENRIC kernel works for me though.

Thanks for the report. This was likely introduced in 1.175 of i386 pmap.c.
I just committed a fix, should show up in snaps soon.

-ml


 
  On Apr 21, 2015, at 11:19 AM, Mark Patruck m...@wrapped.cx wrote:
  
  I tried source updating my 3 weeks old i386 OpenBSD 5.7-current and
  after booting the new kernel it crashed after fsck'ing. Just to make
  sure, i did an update via latest snapshot, but it crashed again.
  (full dmesg below)
  
  OpenBSD 5.7-current (GENERIC.MP) #824: Mon Apr 20 23:23:30 MDT 2015
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
  cpu0: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (GenuineIntel 686-class) 
  3.30 GHz
  
  setting tty flags
  pf enabled
  ddb.console: 0 - 1
  starting network
  uvm_fault(0xd0b89480, 0xcf9df000, 0, 1) - e
  kernel: page fault trap, code=0
  Stopped at  pmap_remove_ptes_86+0x72:   movl0(%edx),%eax
  ddb{0}
  
  
  ddb{0} trace
  pmap_remove_ptes_86(daa25100,d45c4f30,cf9dfd60,77f58000,77f59000) at 
  pmap_remov
  e_ptes_86+0x72
  pmap_do_remove_86(daa25100,77f58000,77f59000,0,daa2a2bc) at 
  pmap_do_remove_86+0
  xfc
  pmap_remove(daa25100,77f58000,77f59000,d04fc9c9,d0ba7e60) at 
  pmap_remove+0x28
  uvm_unmap_kill_entry(daa26120,daa0a580,f54c1f2c,d050bdcd,daa0a580) at 
  uvm_unmap
  _kill_entry+0xf8
  uvm_map_teardown(daa26120,f54c1f14,2e770bc0,daa0b008,d03a23f0) at 
  uvm_map_teard
  own+0xbc
  uvmspace_free(daa26120,1,2e770bc0,f54c1f5c,d02032fa) at uvmspace_free+0x2e
  uvm_exit(daa1c310,d0b23ac8,4,d09aac8e,0) at uvm_exit+0x15
  reaper(daa2270c) at reaper+0xd0
  
  
  ddb{0} ps
PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
  30843  30854  30854  0  30x8b  pause sh
  30854  1  30854  0  30x8b  pause sh
  10796  0  0  0  3 0x14200  pgzerozerothread
  20524  0  0  0  3 0x14200  aiodoned  aiodoned
  30711  0  0  0  3 0x14200  syncerupdate
295  0  0  0  3 0x14200  cleaner   cleaner
  *18600  0  0  0  7 0x14200reaper
   8467  0  0  0  3 0x14200  pgdaemon  pagedaemon
  21165  0  0  0  3 0x14200  bored crypto
  22401  0  0  0  3 0x14200  pftm  pfpurge
  21731  0  0  0  3 0x14200  usbtskusbtask
  13690  0  0  0  3 0x14200  usbatsk   usbatsk
   1565  0  0  0  3 0x14200  bored sensors
  11166  0  0  0  3  0x40014200  acpi0 acpi0
  32510  0  0  0  7  0x40014200idle3
   7402  0  0  0  7  0x40014200idle2
  14316  0  0  0  7  0x40014200idle1
  28105  0  0  0  3 0x14200  bored softnet
  11715  0  0  0  3 0x14200  bored systqmp
   6918  0  0  0  3 0x14200  bored systq
   4056  0  0  0  3  0x40014200idle0
  24258  0  0  0  3 0x14200  kmalloc   kmthread
  1  0  1  0  30x82  wait  init
  0 -1  0  0  3 0x10200  scheduler swapper
  
  
  ddb{0} show registers
  ds  0x10
  es  0x10
  fs  0x20
  gs 0
  edi   0x77f58000
  esi   0x77f58000
  Ebp   0xf54c1e2c
  ebx   0x77f59000
  edx   0xcf9dfd60PTmap+0x1dfd60
  ecx   0xdaa25100end+0x9ddbe18
  eax   0xd45c4f30end+0x397bc48
  eip   0xd0564ab2pmap_remove_ptes_86+0x72
  cs   0x8
  eflags   0x10202
  esp   0xf54c1de4
  ss  0x10
  pmap_remove_ptes_86+0x72:   movl0(%edx),%eax
  
  
  OpenBSD 5.7-current (GENERIC.MP) #824: Mon Apr 20 23:23:30 MDT 2015
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
  cpu0: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (GenuineIntel 686-class) 
  3.30 GHz
  cpu0: 
  FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,PAGE1GB,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM
  real mem  = 3715575808 (3543MB)
  avail mem = 3642568704 (3473MB)
  mpath0 at root
  scsibus0 at mpath0: 256 targets
  mainbus0 at root
  bios0 at mainbus0: date 04/13/12, SMBIOS rev. 2.7 @ 0xec090 (36 entries)
  bios0: vendor American Megatrends Inc. version 1.1a date 12/03/2013
  bios0: Supermicro X10SLH-F/X10SLM+-F
  acpi0 at bios0: rev 2

ulpt(4) panic

2015-04-21 Thread Thomas Pfaff
Hi.

I'm trying to get a non-PS printer working, which is always fun, and
when I try to write something to /dev/ulpt0 it just sits there doing
nothing useful, so ^C and the kernel will panic. This happens on both
SP and MP kernels (panic below is from an SP kernel).

The printer attaches to both ulpt0 and ugen0 (see dmesg). Not sure
why or if it matters. I might be sending it incorrect data but that
should not panic the thing.

# foomatic-rip -v -Plp -Jtest --ppd hp.ppd test.ps  /dev/ulpt0
[...]
Closing renderer
^CProcess is dying with panic: ehci_device_clear_toggle: queue active
Stopped at  Debugger+0x9:   leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb trace
(also at http://tp76.info/b/ulpt/trace.jpg)
Debugger() at Debugger+0x9
panic() at panic+0xfe
ehci_device_clear_toggle() at ehci_device_clear_toggle+0x2b
usbd_clear_endpoint_stall() at usbd_clear_endpoint_stall+0x24
ulpt_do_write() at ulpt_do_write+0xf5
ulptwrite() at ulptwrite+0x53
spec_write() at spec_write+0xb8
VOP_WRITE() at VOP_WRITE+0x3f
vn_write() at vn_write+0x98
dofilewritev() at dofilewritev+0x1c5
sys_write() at sys_write+0xaa
syscall() at syscall+0x192
--- syscall (number 4) ---
end of kernel
end trace frame: 0x1, count: -12
0x2879e3fd8ba:
ddb ps
http://tp76.info/b/ulpt/ps.jpg
ddb show reg
http://tp76.info/b/ulpt/reg.jpg

# cat /etc/printcap
lp|HP:\
:lp=/dev/ulpt0:\
:af=/usr/local/share/foomatic/hp.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:\
:sh:

# usbdevs -v
Controller /dev/usb0:
addr 1: super speed, self powered, config 1, xHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x0024), 
Intel(0x8087), rev 0.00
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 addr 3: low speed, power 98 mA, config 1, USB-PS/2 Optical 
Mouse(0xc03d), Logitech(0x046d), rev 20.00
  port 6 addr 4: high speed, self powered, config 1, HP LaserJet Professional P 
1102w(0x102a), Hewlett-Packard(0x03f0), rev 1.00, iSerialNumber 
0W463JL6PR1a
 port 2 powered
Controller /dev/usb2:
addr 1: super speed, self powered, config 1, xHCI root hub(0x), 
ASMedia(0x1b21), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
Controller /dev/usb3:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, Rate Matching Hub(0x0024), 
Intel(0x8087), rev 0.00
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 powered
  port 8 powered
 port 2 powered

# lsusb
Bus 000 Device 001: ID 8086: Intel Corp. 
Bus 001 Device 001: ID 8086: Intel Corp. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
Bus 001 Device 004: ID 03f0:102a Hewlett-Packard 
Bus 002 Device 001: ID 1b21:  
Bus 003 Device 001: ID 8086: Intel Corp. 
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub

# lsusb -v -d 0x03f0:0x102a
Bus 001 Device 004: ID 03f0:102a Hewlett-Packard 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x03f0 Hewlett-Packard
  idProduct  0x102a 
  bcdDevice1.00
  iManufacturer   1 Hewlett-Packard
  iProduct2 HP LaserJet Professional P 1102w
  iSerial 3 0W463JL6PR1a
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   62
bNumInterfaces  2
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0xc0
  Self Powered
MaxPower   98mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 7 Printer
  bInterfaceSubClass  1 Printer
  bInterfaceProtocol  2 Bidirectional
  iInterface  4 Printer
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type  

[no subject]

2015-04-21 Thread Benoit Meunier
Synopsis: wget crash
Category: user
Environment:
System  : OpenBSD 5.6
Details : OpenBSD 5.6-stable (GENERIC) #0: Sat Nov  1 23:51:30 CET 
2014
 
b...@sirius.deftcode.eu:/u/usr/src/sys/arch/i386/compile/GENERIC

Architecture: OpenBSD.i386
Machine : i386

GNU Wget 1.16 built on openbsd5.6.

+digest +https +ipv6 +iri +large-file +nls +ntlm +opie -psl +ssl/openssl 

Wgetrc: 
/etc/wgetrc (system)
Locale: 
/usr/local/share/locale 
Compile: 
cc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=/etc/wgetrc 
-DLOCALEDIR=/usr/local/share/locale -I. -I../lib -I../lib 
-I/usr/local/include -O2 -pipe 
Link: 
cc -O2 -pipe -L/usr/local/lib -lssl -lcrypto -lz -lidn -lpcre 
/usr/local/lib/libiconv.so.6.0 /usr/local/lib/libintl.so.6.0 
/usr/local/lib/libiconv.so.6.0 -lc -Wl,-rpath,/usr/local/lib 
ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a 

Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
http://www.gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic hnik...@xemacs.org.
Please send bug reports and questions to bug-w...@gnu.org.

Description:
wget crash when using this command:
/usr/local/bin/wget --page-requisites http://rjbs.manxome.org/rubric/entry/2076 
   
--2015-04-21 11:25:38--  http://rjbs.manxome.org/rubric/entry/2076
Resolving rjbs.manxome.org (rjbs.manxome.org)... 70.87.222.20
Connecting to rjbs.manxome.org (rjbs.manxome.org)|70.87.222.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘rjbs.manxome.org/rubric/entry/2076’

rjbs.manxome.org/rubric/entry/2076  [ =   
   ]   7.90K  --.-KB/s   in 0.1s   

2015-04-21 11:25:38 (73.2 KB/s) - ‘rjbs.manxome.org/rubric/entry/2076’ 
saved [8085]

Loading robots.txt; please ignore errors.
--2015-04-21 11:25:38--  http://rjbs.manxome.org/robots.txt
Reusing existing connection to rjbs.manxome.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 88 [text/plain]
Saving to: ‘rjbs.manxome.org/robots.txt’

rjbs.manxome.org/robots.txt 
100%[=]
  88  --.-KB/s   in 0s 

2015-04-21 11:25:38 (4.66 MB/s) - ‘rjbs.manxome.org/robots.txt’ saved 
[88/88]

Conversion from ‘UTF-8’ to ‘UTF-8’ isn't supported
Segmentation fault (core dumped)
-
In GDB (with peda):
[--registers---]
   [29/4555]
EAX: 0x7f6bc880 (http://rjbs.manxome.org/rubric/style/rubric.css;)
EBX: 0x35108074 -- 0x20022f78 
ECX: 0x228ea468 -- 0x0 
EDX: 0x0 
ESI: 0x0 
EDI: 0x7f6bc880 (http://rjbs.manxome.org/rubric/style/rubric.css;)
EBP: 0xcfbc0788 -- 0xcfbc0848 -- 0xcfbc0938 -- 0xcfbc0ac8 -- 0xcfbc0b08 -- 
0x0 
ESP: 0xcfbc074c -- 0x15121060 -- 0xc74c085 
EIP: 0x296b9d6 
(8\nuT@B\212\b\204\311tL8\nuH@B\212\b\204\311t@8\nu@B\212\b\204\311t48\nu0@B\212\b\204\311t(8\nu$@B\212\b\204\311t\034\070\nu\030@B\212\b\204\$
11t\020\070\nu\f@B\212\b\204\311t\004\070\nt\240\017\266)
EFLAGS: 0x210202 (carry parity adjust zero sign trap INTERRUPT direction 
overflow)
[-code-]
   0x296b9d0 L2:movcl,BYTE PTR [eax]
   0x296b9d2 L2+2: test   cl,cl
   0x296b9d4 L2+4: je 0x296ba2e L3
= 0x296b9d6 L2+6: cmpBYTE PTR [edx],cl
   0x296b9d8 L2+8:   jne0x296ba2e L3
   0x296b9da L2+10: inceax
   0x296b9db L2+11: incedx
   0x296b9dc L2+12: movcl,BYTE PTR [eax]
[stack-]
| 0xcfbc074c -- 0x15121060 -- 0xc74c085 
0004| 0xcfbc0750 -- 0x7f6bc880 
(http://rjbs.manxome.org/rubric/style/rubric.css;)
0008| 0xcfbc0754 -- 0x0 
0012| 0xcfbc0758 -- 0x7 
0016| 0xcfbc075c -- 0x295bad2 -- 0x89e0558b 
0020| 0xcfbc0760 -- 0x80 
0024| 0xcfbc0764 -- 0x35100de0 (UTF-8)
0028| 0xcfbc0768 -- 0x104d00 
[--]
Legend: code, data, rodata, value
Stopped reason: SIGSEGV
L2 () at /u/usr/src/lib/libc/arch/i386/string/strcmp.S:26
26  cmpb%cl,(%edx)  /* chars match??? */

How-To-Repeat:
/usr/local/bin/wget --page-requisites http://rjbs.manxome.org/rubric/entry/2076 
   
Fix:



uvm_fault - Stopped at pmap_remove_ptes_86

2015-04-21 Thread Mark Patruck
I tried source updating my 3 weeks old i386 OpenBSD 5.7-current and
after booting the new kernel it crashed after fsck'ing. Just to make
sure, i did an update via latest snapshot, but it crashed again.
(full dmesg below)

OpenBSD 5.7-current (GENERIC.MP) #824: Mon Apr 20 23:23:30 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (GenuineIntel 686-class) 3.30 
GHz

setting tty flags
pf enabled
ddb.console: 0 - 1
starting network
uvm_fault(0xd0b89480, 0xcf9df000, 0, 1) - e
kernel: page fault trap, code=0
Stopped at  pmap_remove_ptes_86+0x72:   movl0(%edx),%eax
ddb{0}


ddb{0} trace
pmap_remove_ptes_86(daa25100,d45c4f30,cf9dfd60,77f58000,77f59000) at pmap_remov
e_ptes_86+0x72
pmap_do_remove_86(daa25100,77f58000,77f59000,0,daa2a2bc) at pmap_do_remove_86+0
xfc
pmap_remove(daa25100,77f58000,77f59000,d04fc9c9,d0ba7e60) at pmap_remove+0x28
uvm_unmap_kill_entry(daa26120,daa0a580,f54c1f2c,d050bdcd,daa0a580) at uvm_unmap
_kill_entry+0xf8
uvm_map_teardown(daa26120,f54c1f14,2e770bc0,daa0b008,d03a23f0) at uvm_map_teard
own+0xbc
uvmspace_free(daa26120,1,2e770bc0,f54c1f5c,d02032fa) at uvmspace_free+0x2e
uvm_exit(daa1c310,d0b23ac8,4,d09aac8e,0) at uvm_exit+0x15
reaper(daa2270c) at reaper+0xd0


ddb{0} ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 30843  30854  30854  0  30x8b  pause sh
 30854  1  30854  0  30x8b  pause sh
 10796  0  0  0  3 0x14200  pgzerozerothread
 20524  0  0  0  3 0x14200  aiodoned  aiodoned
 30711  0  0  0  3 0x14200  syncerupdate
   295  0  0  0  3 0x14200  cleaner   cleaner
*18600  0  0  0  7 0x14200reaper
  8467  0  0  0  3 0x14200  pgdaemon  pagedaemon
 21165  0  0  0  3 0x14200  bored crypto
 22401  0  0  0  3 0x14200  pftm  pfpurge
 21731  0  0  0  3 0x14200  usbtskusbtask
 13690  0  0  0  3 0x14200  usbatsk   usbatsk
  1565  0  0  0  3 0x14200  bored sensors
 11166  0  0  0  3  0x40014200  acpi0 acpi0
 32510  0  0  0  7  0x40014200idle3
  7402  0  0  0  7  0x40014200idle2
 14316  0  0  0  7  0x40014200idle1
 28105  0  0  0  3 0x14200  bored softnet
 11715  0  0  0  3 0x14200  bored systqmp
  6918  0  0  0  3 0x14200  bored systq
  4056  0  0  0  3  0x40014200idle0
 24258  0  0  0  3 0x14200  kmalloc   kmthread
 1  0  1  0  30x82  wait  init
 0 -1  0  0  3 0x10200  scheduler swapper


ddb{0} show registers
ds  0x10
es  0x10
fs  0x20
gs 0
edi   0x77f58000
esi   0x77f58000
Ebp   0xf54c1e2c
ebx   0x77f59000
edx   0xcf9dfd60PTmap+0x1dfd60
ecx   0xdaa25100end+0x9ddbe18
eax   0xd45c4f30end+0x397bc48
eip   0xd0564ab2pmap_remove_ptes_86+0x72
cs   0x8
eflags   0x10202
esp   0xf54c1de4
ss  0x10
pmap_remove_ptes_86+0x72:   movl0(%edx),%eax


OpenBSD 5.7-current (GENERIC.MP) #824: Mon Apr 20 23:23:30 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (GenuineIntel 686-class) 3.30 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,PAGE1GB,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM
real mem  = 3715575808 (3543MB)
avail mem = 3642568704 (3473MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 04/13/12, SMBIOS rev. 2.7 @ 0xec090 (36 entries)
bios0: vendor American Megatrends Inc. version 1.1a date 12/03/2013
bios0: Supermicro X10SLH-F/X10SLM+-F
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT SSDT SSDT MCFG PRAD HPET SSDT 
SSDT SPMI DMAR EINJ ERST HEST BERT
acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) 
PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) GLAN(S4) EHC1(S4) EHC2(S4) XHC_(S4) 
HDEF(S4) PEG0(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, 

Re: uvm_fault - Stopped at pmap_remove_ptes_86

2015-04-21 Thread Daniel Dickman
I am seeing the exact same crash with GENRIC.MP latest snap on i386. booting 
with the GENRIC kernel works for me though.

 On Apr 21, 2015, at 11:19 AM, Mark Patruck m...@wrapped.cx wrote:
 
 I tried source updating my 3 weeks old i386 OpenBSD 5.7-current and
 after booting the new kernel it crashed after fsck'ing. Just to make
 sure, i did an update via latest snapshot, but it crashed again.
 (full dmesg below)
 
 OpenBSD 5.7-current (GENERIC.MP) #824: Mon Apr 20 23:23:30 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (GenuineIntel 686-class) 
 3.30 GHz
 
 setting tty flags
 pf enabled
 ddb.console: 0 - 1
 starting network
 uvm_fault(0xd0b89480, 0xcf9df000, 0, 1) - e
 kernel: page fault trap, code=0
 Stopped at  pmap_remove_ptes_86+0x72:   movl0(%edx),%eax
 ddb{0}
 
 
 ddb{0} trace
 pmap_remove_ptes_86(daa25100,d45c4f30,cf9dfd60,77f58000,77f59000) at 
 pmap_remov
 e_ptes_86+0x72
 pmap_do_remove_86(daa25100,77f58000,77f59000,0,daa2a2bc) at 
 pmap_do_remove_86+0
 xfc
 pmap_remove(daa25100,77f58000,77f59000,d04fc9c9,d0ba7e60) at pmap_remove+0x28
 uvm_unmap_kill_entry(daa26120,daa0a580,f54c1f2c,d050bdcd,daa0a580) at 
 uvm_unmap
 _kill_entry+0xf8
 uvm_map_teardown(daa26120,f54c1f14,2e770bc0,daa0b008,d03a23f0) at 
 uvm_map_teard
 own+0xbc
 uvmspace_free(daa26120,1,2e770bc0,f54c1f5c,d02032fa) at uvmspace_free+0x2e
 uvm_exit(daa1c310,d0b23ac8,4,d09aac8e,0) at uvm_exit+0x15
 reaper(daa2270c) at reaper+0xd0
 
 
 ddb{0} ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 30843  30854  30854  0  30x8b  pause sh
 30854  1  30854  0  30x8b  pause sh
 10796  0  0  0  3 0x14200  pgzerozerothread
 20524  0  0  0  3 0x14200  aiodoned  aiodoned
 30711  0  0  0  3 0x14200  syncerupdate
   295  0  0  0  3 0x14200  cleaner   cleaner
 *18600  0  0  0  7 0x14200reaper
  8467  0  0  0  3 0x14200  pgdaemon  pagedaemon
 21165  0  0  0  3 0x14200  bored crypto
 22401  0  0  0  3 0x14200  pftm  pfpurge
 21731  0  0  0  3 0x14200  usbtskusbtask
 13690  0  0  0  3 0x14200  usbatsk   usbatsk
  1565  0  0  0  3 0x14200  bored sensors
 11166  0  0  0  3  0x40014200  acpi0 acpi0
 32510  0  0  0  7  0x40014200idle3
  7402  0  0  0  7  0x40014200idle2
 14316  0  0  0  7  0x40014200idle1
 28105  0  0  0  3 0x14200  bored softnet
 11715  0  0  0  3 0x14200  bored systqmp
  6918  0  0  0  3 0x14200  bored systq
  4056  0  0  0  3  0x40014200idle0
 24258  0  0  0  3 0x14200  kmalloc   kmthread
 1  0  1  0  30x82  wait  init
 0 -1  0  0  3 0x10200  scheduler swapper
 
 
 ddb{0} show registers
 ds  0x10
 es  0x10
 fs  0x20
 gs 0
 edi   0x77f58000
 esi   0x77f58000
 Ebp   0xf54c1e2c
 ebx   0x77f59000
 edx   0xcf9dfd60PTmap+0x1dfd60
 ecx   0xdaa25100end+0x9ddbe18
 eax   0xd45c4f30end+0x397bc48
 eip   0xd0564ab2pmap_remove_ptes_86+0x72
 cs   0x8
 eflags   0x10202
 esp   0xf54c1de4
 ss  0x10
 pmap_remove_ptes_86+0x72:   movl0(%edx),%eax
 
 
 OpenBSD 5.7-current (GENERIC.MP) #824: Mon Apr 20 23:23:30 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz (GenuineIntel 686-class) 
 3.30 GHz
 cpu0: 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,PAGE1GB,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM
 real mem  = 3715575808 (3543MB)
 avail mem = 3642568704 (3473MB)
 mpath0 at root
 scsibus0 at mpath0: 256 targets
 mainbus0 at root
 bios0 at mainbus0: date 04/13/12, SMBIOS rev. 2.7 @ 0xec090 (36 entries)
 bios0: vendor American Megatrends Inc. version 1.1a date 12/03/2013
 bios0: Supermicro X10SLH-F/X10SLM+-F
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT SSDT SSDT MCFG PRAD HPET 
 SSDT SSDT SPMI DMAR EINJ ERST HEST BERT
 acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) 
 PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) GLAN(S4) EHC1(S4) EHC2(S4) XHC_(S4) 
 

OpenBSD 5.6 documentation bug

2015-04-21 Thread Alexander Lobodzinski
Synopsis:  wrong max value for rltime in rtadv.conf(5)
Category:  documentation
Environment:
System  : OpenBSD 5.6
Details : all
Architecture: all
Machine : all
Description:
rtadvd.conf(5) mentions a maximum value of 360 seconds for
rltime which is bogus.  The correct maximum value demanded by RFC4861
and also correctly enforced by the rtadvd code is 9000.

Ciao, Lobo



Re: uvm_fault immediately after snapshot install i386

2015-04-21 Thread Todd C. Miller
This should be fixed by rev 1.177 of i386 pmap.c that mlarkin@
committed today.  An updated i386 snapshot with the fix will be
available soon.

 - todd



Re: OpenBSD 5.6 documentation bug

2015-04-21 Thread Florian Obser
On Tue, Apr 21, 2015 at 04:04:53PM +0200, Alexander Lobodzinski wrote:
 Synopsis:  wrong max value for rltime in rtadv.conf(5)
 Category:  documentation
 Environment:
 System  : OpenBSD 5.6
 Details : all
 Architecture: all
 Machine : all
 Description:
 rtadvd.conf(5) mentions a maximum value of 360 seconds for
 rltime which is bogus.  The correct maximum value demanded by RFC4861
 and also correctly enforced by the rtadvd code is 9000.
 
 Ciao, Lobo
 

fixed, thanks!

-- 
I'm not entirely sure you are real.