Re: identd(8) can exit on bad input

2013-02-28 Thread Jérémie Courrèges-Anglas

Sorry for the noise, this one is completely wrong.
I'll submit another patch when I have more time to think properly.



Wake from zzz causes panic on thinkpad x60

2013-02-28 Thread Edd Barrett
Hi,

Went to run some TESTS for release and I am seeing panics when waking
my thinkpad x60 from zzz.

I didn't have a serial line attached to get trace and ps, so I have
taken pictures of the kernel debugger. Sorry about that.

http://farm9.staticflickr.com/8505/8516467142_1f3580e87a_c.jpg
http://farm9.staticflickr.com/8365/8515354029_e6dd395e0f_c.jpg
http://farm9.staticflickr.com/8505/8516469398_8d7b461c32_c.jpg

I am using snaps I downloaded today from:
ftp://ftp.fr.openbsd.org/pub/OpenBSD/snapshots/amd64/

Dates on the tarballs are:
 * Feb 22nd base
 * Feb 14th X11

Come to think of it those snaps are probably too old for TESTS. So when
newer snaps hit the mirror I will re-run this test.

Dmesg follows:

OpenBSD 5.3 (GENERIC.MP) #46: Thu Feb 21 20:37:49 MST 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2119892992 (2021MB)
avail mem = 2041028608 (1946MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version 7NETB7WW (2.17 ) date 07/29/2008
bios0: LENOVO 7674FA9
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) 
USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz, 798.16 MHz
cpu0: 
FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz, 798.00 MHz
cpu1: 
FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 5 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 93P5030 serial83 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 798 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x0c
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1: apic 1 int 16
drm0 at inteldrm0
Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 Intel ICH8 IGP M AMT rev 0x03: msi, address 
00:1d:72:9a:f2:fd
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1 int 21
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03: msi
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x03: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 Intel Wireless WiFi Link 4965 rev 0x61: msi, 
MIMO 2T3R, MoW2, address 00:21:5c:4f:4e:9b
uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x03: apic 1 int 16
uhci3 at pci0 dev 29 function 1 Intel 82801H USB rev 0x03: apic 1 int 17
ehci1 at pci0 dev 29 function 7 Intel 82801H USB rev 0x03: apic 1 int 19
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xf3
pci3 at ppb2 bus 5
cbb0 at pci3 dev 0 function 0 Ricoh 5C476 CardBus rev 0xba: apic 

Re: Wake from zzz causes panic on thinkpad x60

2013-02-28 Thread Stefan Sperling
On Thu, Feb 28, 2013 at 04:59:12PM +, Edd Barrett wrote:
 Hi,
 
 Went to run some TESTS for release and I am seeing panics when waking
 my thinkpad x60 from zzz.
 
 I didn't have a serial line attached to get trace and ps, so I have
 taken pictures of the kernel debugger. Sorry about that.
 
 http://farm9.staticflickr.com/8505/8516467142_1f3580e87a_c.jpg

I've seen this panic in usb_abort_task_thread() on an x60s before.
It doesn't happen often. It's not a new issue in recent snaps.

A while back I took a brief look at the code but couldn't figure out
what's wrong. I work around it by unplugging USB devices before suspend.



kernel page fault trap on OpenBSD 5.3 i386 GENERIC #45

2013-02-28 Thread Mikolaj Kucharski
Hi,

Upgraded my Soekris net5501 to the latest snapshot:

OpenBSD 5.3 (GENERIC) #45: Wed Feb 27 13:42:28 MST 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC


and during one of the reboots got this:


Automatic boot in progress: starting file system checks.
/dev/rwd0a: file system is clean; not checking
/dev/rwd0g: file system is clean; not checking
/dev/rwd0f: file system is clean; not checking
/dev/rwd0d: file system is clean; not checking
/dev/rwd0e: file system is clean; not checking
setting tty flags
pf enabled
ddb.panic: 1 - 1
ddb.console: 0 - 1
net.inet.ip.forwarding: 0 - 1
starting network
starting early daemons: syslogd nameduvm_fault(0xd0a2dd40, 0xd5d7c000, 0, 1) -
e
kernel: page fault trap, code=0
Stopped at  bcopy+0x1a: repe movsl  (%esi),%es:(%edi)
ddb ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
  1637   3787   3787 70  3   0  biowait   named
  3787   5609   3787  0  30x80  netio named
  5609  23313  29579  0  30x80  piperdnamed
 23313  24670  29579  0  30x88  pause sh
 24670  29579  29579  0  30x88  pause sh
   279  26321  26321 73  3   0  biowait   syslogd
 26321  1  26321  0  30x80  netio syslogd
 29579  1  29579  0  30x88  pause sh
13  0  0  0  30x100200  aiodoned  aiodoned
12  0  0  0  30x100200  syncerupdate
11  0  0  0  30x100200  cleaner   cleaner
10  0  0  0  30x100200  reaperreaper
 9  0  0  0  30x100200  pgdaemon  pagedaemon
 8  0  0  0  30x100200  bored crypto
 7  0  0  0  30x100200  pftm  pfpurge
 6  0  0  0  30x100200  usbtskusbtask
 5  0  0  0  30x100200  usbatsk   usbatsk
 4  0  0  0  30x100200  bored syswq
*3  0  0  0  7  0x40100200idle0
 2  0  0  0  30x100200  kmalloc   kmthread
 1  0  1  0  30x80  wait  init
 0 -1  0  0  3   0x200  scheduler swapper
ddb trace
bcopy(d5cd1100,96000,3b9aca00,2,1) at bcopy+0x1a
m_copym2(d5cd1100,0,3b9aca00,2,46) at m_copym2+0x2e
bridge_input(d15ab434,d5ce5800,d5cd1100,f5395e70,d02030dd) at bridge_input+0x2e
1
ether_input(d15ab434,0,d5cd1100,800,2) at ether_input+0x39d
sis_rxeof(d15ab400,d300,10,f5395f0c,d15eda00) at sis_rxeof+0x1a6
sis_intr(d15ab400) at sis_intr+0x148
Xrecurse_legacy6() at Xrecurse_legacy6+0xb7
--- interrupt ---
cpu_idle_cycle(d0b0e7c0) at cpu_idle_cycle+0xf
Bad frame pointer: 0xd0bc9e28
ddb



Then tried to reboot the box:


ddb boot reboot
panic: wdc_exec_command: polled command not done
Stopped at  Debugger+0x4:   popl%ebp
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
Debugger(d08fdc7c,f5395a4c,d089b5d8,f5395a4c,d5d64060) at Debugger+0x4
panic(d089b5d8,d5d64060,f5395a70,d05b8034,0) at panic+0x5d
wdc_exec_command(d1671110,f5395a84,f5395aa0,e7,4000) at
wdc_exec_command+0x
10d
wd_flushcache(d1673c00,10,0,d162f900,d15ab000) at wd_flushcache+0x7e
wdactivate(d1673c00,5,0,d0412b43,0) at wdactivate+0xb3
config_activate_children(d1671000,5,6206,0,c000) at
config_activate_children+0x
45
config_activate_children(d1472e00,5,0,d155ef80,d1472e00) at
config_activate_chi
ldren+0x45
pciactivate(d1472e00,5,f5395b80,d03eb38d,0) at pciactivate+0x70
config_activate_children(d155efc0,5,f5395bb0,d03b7155,d) at
config_activate_chi
ldren+0x45
boot(4804,f5395be4,f5395c70,d03b5014,d02005ee) at boot+0x5a
db_boot_reboot_cmd(d02005ee,0,,f5395be8,0) at
db_boot_reboot_cmd+0x12
db_command(d09e4c00,d09e4a20,d144f663,d02005ee,f5395d6c) at
db_command+0x124
db_command_loop(d02005ee,f5395cd8,f5395ce0,d03bf23d,800) at
db_command_loop+0x7
1
db_trap(6,0,58,6,d5d7c000) at db_trap+0xc0
kdb_trap(6,0,f5395d6c,1,e) at kdb_trap+0xc7
trap() at trap+0x238
--- trap (number -1769486) ---
Bad frame pointer: 0xd5d7bffe
0:
ddb ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
  1637   3787   3787 70  3   0  biowait   named
  3787   5609   3787  0  30x80  netio named
  5609  23313  29579  0  30x80  piperdnamed
 23313  24670  29579  0  30x88  pause sh
 24670  29579  29579  0  30x88  pause sh
   279  26321  26321 73  3   0  biowait   syslogd
 26321  1  26321  0  30x80  netio syslogd
 29579  1  29579  0  30x88  pause sh
13  0  0  0  30x100200  aiodoned  aiodoned
12  0  0  0  30x100200  syncerupdate
11  0  0  0  30x100200