sisnk...@gmail.com (Stefan Kempf), 2016.02.01 (Mon) 19:13 (CET): > Marcus MERIGHI wrote: > > sisnk...@gmail.com (Stefan Kempf), 2016.01.30 (Sat) 10:49 (CET): > > > We need to see how it looks like from within the kernel (and whether > > > the illegal instruction is really raised from within sendsig()). Can you > > > try the diff below? > > > > > You should get a kernel panic now instead of an illegal instruction > > > signal if you try running ping or top. We need the output of the panic > > > message and the output of the following commands: > > > > ping(1), top(1) messed up the screen. > > > > # ping 192.168.188.189 > > PING 192.168.188.189 (192.168.188.189): 56 data bytes > > 64 bytes from 192.168.188.189: icmp_seq=0 ttl=255 time=166.533 ms > > panic: sendsig 1: fxsave 0xffff800032c8a000, sp 0x7f7fff0d20b1, > > fxave_size 512, savefpu_size 832, fpu_save_len 15773951, tf_rsp > > 0x7f7ffffdd238, userstack 1 > > fpu_save_len is way too large (0xf0b0ff in hex). It should be 832 at > most. And that causes the kernel to attempt writes outside of the > process stack (and/or to read beyond the saved FPU state). > > Either the value we get from CPUID is strange (or we handle CPUID > wrongly), or something trashes fpu_save_len. > > Can you try this diff and paste the "cpuid1:" "cpuid2:" lines? Please > revert the previous diff. That will show us what CPUID returns. Twice in dmesg:
cpuid1: ebx: 0xf0b0ff cpuid2: fpu_save_len: 0xf0b0ff, ebx: 0xf0b0ff cpuid1: ebx: 0xf0b0ff cpuid2: fpu_save_len: 0xf0b0ff, ebx: 0xf0b0ff Full dmesg attached. Thanks once more, Marcus
OpenBSD 5.9 (GENERIC.MP) #3: Tue Feb 2 10:31:48 CET 2016 fifi@dax:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4161052672 (3968MB) avail mem = 4030750720 (3844MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb530 (73 entries) bios0: vendor American Megatrends Inc. version "1.03" date 08/09/2013 bios0: Shuttle Inc. DS47D acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT MCFG SLIC HPET SSDT SSDT SSDT acpi0: wakeup devices P0P1(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USB7(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Celeron(R) CPU 847 @ 1.10GHz, 1097.68 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC cpu0: 256KB 64b/line 8-way L2 cache mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpuid1: ebx: 0xf0b0ff cpuid2: fpu_save_len: 0xf0b0ff, ebx: 0xf0b0ff cpu0: apic clock running at 99MHz cpu0: mwait min=23041, max=45311 (bogus) cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Celeron(R) CPU 847 @ 1.10GHz, 1097.51 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC cpu1: 256KB 64b/line 8-way L2 cache ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (P0P1) acpiprt2 at acpi0: bus 1 (RP01) acpiprt3 at acpi0: bus 2 (RP02) acpiprt4 at acpi0: bus 3 (RP03) acpiprt5 at acpi0: bus 4 (RP04) acpiprt6 at acpi0: bus -1 (RP05) acpiprt7 at acpi0: bus -1 (RP06) acpiprt8 at acpi0: bus -1 (RP07) acpiprt9 at acpi0: bus -1 (RP08) acpiprt10 at acpi0: bus -1 (PEG0) acpiprt11 at acpi0: bus -1 (PEG1) acpiprt12 at acpi0: bus -1 (PEG2) acpiprt13 at acpi0: bus -1 (PEG3) acpiec0 at acpi0: not present acpicpu0 at acpi0: C1(@1 halt!), PSS acpicpu1 at acpi0: C1(@1 halt!), PSS acpipwrres0 at acpi0: FN00, resource for FAN0 acpipwrres1 at acpi0: FN01, resource for FAN1 acpipwrres2 at acpi0: FN02, resource for FAN2 acpipwrres3 at acpi0: FN03, resource for FAN3 acpipwrres4 at acpi0: FN04, resource for FAN4 acpitz0 at acpi0: critical temperature is 101 degC acpitz1 at acpi0: critical temperature is 101 degC acpibat0 at acpi0: BAT0 not present acpibat1 at acpi0: BAT1 not present acpibat2 at acpi0: BAT2 not present acpibtn0 at acpi0: PWRB acpibtn1 at acpi0: LID0 acpivideo0 at acpi0: GFX0 cpu0: Enhanced SpeedStep 1097 MHz: speeds: 1100, 1000, 900, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09 inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 2000" rev 0x09 drm0 at inteldrm0 inteldrm0: msi inteldrm0: 1280x1024 wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) "Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16 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 7 Series HD Audio" rev 0x04: msi azalia0: codecs: Realtek ALC662, Intel/0x2806, using Realtek ALC662 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi pci1 at ppb0 bus 1 iwn0 at pci1 dev 0 function 0 "Intel Wireless WiFi Link 4965" rev 0x61: msi, MIMO 2T3R, MoW2, address 00:21:5c:04:ca:5f ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), msi, address 80:ee:73:77:d5:a9 rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0 ppb2 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi pci3 at ppb2 bus 3 xhci0 at pci3 dev 0 function 0 "ASMedia ASM1042A xHCI" rev 0x00: msi usb1 at xhci0: USB revision 3.0 uhub1 at usb1 "ASMedia xHCI root hub" rev 3.00/1.00 addr 1 ppb3 at pci0 dev 28 function 3 "Intel 7 Series PCIE" rev 0xc4: msi pci4 at ppb3 bus 4 re1 at pci4 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G (0x4c00), msi, address 80:ee:73:77:d5:a8 rgephy1 at re1 phy 7: RTL8251 PHY, rev. 0 ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23 usb2 at ehci1: USB revision 2.0 uhub2 at usb2 "Intel EHCI root hub" rev 2.00/1.00 addr 1 pcib0 at pci0 dev 31 function 0 "Intel NM70 LPC" rev 0x04 ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3 ahci0: port 2: 3.0Gb/s scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 2 lun 0: <ATA, TS8GMSM610, 2013> SCSI3 0/direct fixed t10.ATA_TS8GMSM610_A93797112253B1000021 sd0: 7641MB, 512 bytes/sector, 15649200 sectors ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 2 int 18 iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0xa30 uhub3 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 run0 at uhub3 port 1 configuration 1 interface 0 "Ralink 802.11 n WLAN" rev 2.00/1.01 addr 3 run0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T2R), address 00:1b:11:c6:b1:45 uhub4 at uhub2 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2 umass0 at uhub4 port 2 configuration 1 interface 0 "Generic USB Storage" rev 2.00/94.54 addr 3 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd1 at scsibus2 targ 1 lun 0: <Generic, STORAGE DEVICE, 9454> SCSI0 0/direct removable uhidev0 at uhub4 port 3 configuration 1 interface 0 "Jing Mold Rx504B Ver:3.03" rev 2.00/3.10 addr 4 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd0 at ukbd0: console keyboard, using wsdisplay0 uhidev1 at uhub4 port 3 configuration 1 interface 1 "Jing Mold Rx504B Ver:3.03" rev 2.00/3.10 addr 4 uhidev1: iclass 3/1, 5 report ids ums0 at uhidev1 reportid 1: 3 buttons, Z dir wsmouse0 at ums0 mux 0 uhid0 at uhidev1 reportid 2: input=2, output=0, feature=0 uhid1 at uhidev1 reportid 3: input=2, output=0, feature=0 uhid2 at uhidev1 reportid 4: input=2, output=0, feature=0 uhid3 at uhidev1 reportid 5: input=7, output=7, feature=0 umass1 at uhub4 port 4 configuration 1 interface 0 "Generic Mass Storage" rev 2.00/1.0e addr 5 umass1: using SCSI over Bulk-Only scsibus3 at umass1: 2 targets, initiator 0 sd2 at scsibus3 targ 1 lun 0: <Generic, Flash Disk, 8.07> SCSI2 0/direct removable sd2: 7680MB, 512 bytes/sector, 15728640 sectors vscsi0 at root scsibus4 at vscsi0: 256 targets softraid0 at root scsibus5 at softraid0: 256 targets root on sd2a (21f0b3cdd8d0af2e.a) swap on sd2b dump on sd2b cpuid1: ebx: 0xf0b0ff cpuid2: fpu_save_len: 0xf0b0ff, ebx: 0xf0b0ff arp: attempt to add entry for 192.168.188.103 on iwn0 by 00:21:6a:8c:3d:9c on run0