[Kernel-packages] [Bug 1190120] Re: Kernel Oops - unable to handle kernel NULL pointer dereference; after unbind of a PCI device
** Tags removed: bios-outdated-1.60 ** Tags added: latest-bios-1.60 ** Tags removed: needs-saucy-test ** Description changed: I am trying to unbind a PCI device I received a kernel Oops. I was following instructions described in this KVM document: http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM When I get to the unbind step: - echo :01:00.0 /sys/bus/pci/devices/:01:00.0/driver/unbind I get a kernel Oops. Please note at this point I am not running the kvm guest, just trying to unbind the PCI device. I do have VT-d enabled in - the bios and a processor that supports IOMMU. - - This problem is repeatable and appears to be isolated to the unbind - command. - - Ubuntu 3.8.0-23.34-generic 3.8.11 - - 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX - 660] [10de:11c0] (rev a1) (prog-if 00 [VGA controller]) - Subsystem: eVga.com. Corp. Device [3842:2660] - Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step - ping- SERR- FastB2B- DisINTx- - Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- - MAbort- SERR- PERR- INTx- - Latency: 0, Cache Line Size: 64 bytes - Interrupt: pin A routed to IRQ 16 - Region 0: Memory at ea00 (32-bit, non-prefetchable) [size=16M] - Region 1: Memory at e000 (64-bit, prefetchable) [size=128M] - Region 3: Memory at e800 (64-bit, prefetchable) [size=32M] - Region 5: I/O ports at e000 [size=128] - Expansion ROM at eb00 [disabled] [size=512K] - Capabilities: [60] Power Management version 3 - Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot - -,D3cold-) - Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- - Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ - Address: Data: - Capabilities: [78] Express (v2) Endpoint, MSI 00 - DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited - , L1 64us - ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- - DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupporte - d- - RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+ - MaxPayload 256 bytes, MaxReadReq 512 bytes - DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPe - nd- - LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Latency L0 - 512ns, L1 4us - ClockPM+ Surprise- LLActRep- BwNot- - LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+ - ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- - LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActiv - e- BWMgmt- ABWMgmt- - DevCap2: Completion Timeout: Range AB, TimeoutDis+ - DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- - LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-, S - electable De-emphasis: -6dB -Transmit Margin: Normal Operating Range, EnterModifiedC - ompliance- ComplianceSOS- -Compliance De-emphasis: -6dB - LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete - +, EqualizationPhase1+ -EqualizationPhase2+, EqualizationPhase3+, LinkEqualizat - ionRequest+ - Capabilities: [b4] Vendor Specific Information: Len=14 ? - Capabilities: [100 v1] Virtual Channel - Caps: LPEVC=0 RefClk=100ns PATEntryBits=1 - Arb:Fixed- WRR32- WRR64- WRR128- - Ctrl: ArbSelect=Fixed - Status: InProgress- - VC0:Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans- - Arb:Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256- - Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff - Status: NegoPending- InProgress- - Capabilities: [128 v1] Power Budgeting ? - Capabilities: [600 v1] Vendor Specific Information: ID=0001 Rev=1 Len=02 - 4 ? - Capabilities: [900 v1] #19 - Kernel driver in use: nouveau + the bios and a processor that supports IOMMU. This problem is repeatable + and appears to be isolated to the unbind command. ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: linux-image-3.8.0-23-generic 3.8.0-23.34 ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11 Uname: Linux 3.8.0-23-generic x86_64 ApportVersion: 2.9.2-0ubuntu8.1 Architecture: amd64 AudioDevicesInUse: - USERPID ACCESS COMMAND - /dev/snd/controlC2: bruzer 2169 F pulseaudio - /dev/snd/controlC1: bruzer 2169 F pulseaudio + USERPID ACCESS COMMAND + /dev/snd/controlC2: bruzer 2169 F pulseaudio + /dev/snd/controlC1: bruzer 2169 F pulseaudio CRDA: Error: command
[Kernel-packages] [Bug 1190120] Re: Kernel Oops - unable to handle kernel NULL pointer dereference; after unbind of a PCI device
I obtained the Live CD for 13.10 amd64. uname -a = Linux ubuntu 3.11.0-4-generic #9-Ubuntu SMP Mon Aug 26 15:21:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux I was following instructions described in this KVM document: http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM root@ubuntu:/home/ubuntu# dmesg | grep -e DMAR -e IOMMU [0.00] ACPI: DMAR bc843878 000B8 (v01 INTEL HSW 0001 INTL 0001) [0.020006] dmar: IOMMU 0: reg_base_addr fed9 ver 1:0 cap c020660462 ecap f0101a [0.020009] dmar: IOMMU 1: reg_base_addr fed91000 ver 1:0 cap d2008020660462 ecap f010da [0.020080] IOAPIC id 2 under DRHD base 0xfed91000 IOMMU 1 root@ubuntu:/home/ubuntu# modprobe pci_stub root@ubuntu:/home/ubuntu# lspci -n ... 01:00.0 0300: 10de:11c0 (rev a1) ... root@ubuntu:/home/ubuntu# echo 10de 11c0 /sys/bus/pci/drivers/pci-stub/new_id root@ubuntu:/home/ubuntu# echo :01:00.0 /sys/bus/pci/devices/\:01\:00.0/driver/unbind ubuntu@ubuntu:~$ I no longer get the kernel oops probelm, but the unbind operation kicks me out of super user and back to the regular user. After goign back into the super user, I am not able to perform the next step to bind the device. root@ubuntu:/home/ubuntu# echo :01:00.0 /sys/bus/pci/drivers/pci-stub/bind bash: echo: write error: No such device So again no more kernel oops, but I don't think the unbind is workign correctly. The apport-collect command is not included on the Live CD/DVD so I had to install it to get it to run. ** Tags added: apport-collected saucy ** Description changed: I am trying to unbind a PCI device I received a kernel Oops. I was following instructions described in this KVM document: http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM When I get to the unbind step: echo :01:00.0 /sys/bus/pci/devices/:01:00.0/driver/unbind I get a kernel Oops. Please note at this point I am not running the kvm guest, just trying to unbind the PCI device. I do have VT-d enabled in the bios and a processor that supports IOMMU. This problem is repeatable and appears to be isolated to the unbind command. Ubuntu 3.8.0-23.34-generic 3.8.11 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1) (prog-if 00 [VGA controller]) Subsystem: eVga.com. Corp. Device [3842:2660] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step ping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at ea00 (32-bit, non-prefetchable) [size=16M] Region 1: Memory at e000 (64-bit, prefetchable) [size=128M] Region 3: Memory at e800 (64-bit, prefetchable) [size=32M] Region 5: I/O ports at e000 [size=128] Expansion ROM at eb00 [disabled] [size=512K] Capabilities: [60] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot -,D3cold-) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: Data: Capabilities: [78] Express (v2) Endpoint, MSI 00 DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited , L1 64us ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupporte d- RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+ MaxPayload 256 bytes, MaxReadReq 512 bytes DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPe nd- LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Latency L0 512ns, L1 4us ClockPM+ Surprise- LLActRep- BwNot- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActiv e- BWMgmt- ABWMgmt- DevCap2: Completion Timeout: Range AB, TimeoutDis+ DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-, S electable De-emphasis: -6dB Transmit Margin: Normal Operating Range, EnterModifiedC ompliance- ComplianceSOS- Compliance De-emphasis: -6dB LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete +, EqualizationPhase1+ EqualizationPhase2+, EqualizationPhase3+, LinkEqualizat ionRequest+ Capabilities: [b4] Vendor
[Kernel-packages] [Bug 1190120] Re: Kernel Oops - unable to handle kernel NULL pointer dereference; after unbind of a PCI device
Matt Bruzek, could you please confirm this issue exists with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ . If the issue remains, could you please run the following command in the development release from a Terminal (Applications-Accessories-Terminal), as it will automatically gather and attach updated debug information to this report: apport-collect -p linux replace-with-bug-number ** Tags added: bios-outdated-1.60 ** Changed in: linux (Ubuntu) Status: Confirmed = Incomplete ** Tags added: needs-saucy-test regression-potential ** Tags removed: kernel-fixed-upstream ** Tags added: kernel-fixed-upstream-v3.10-rc5 -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1190120 Title: Kernel Oops - unable to handle kernel NULL pointer dereference; after unbind of a PCI device Status in “linux” package in Ubuntu: Incomplete Bug description: I am trying to unbind a PCI device I received a kernel Oops. I was following instructions described in this KVM document: http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM When I get to the unbind step: echo :01:00.0 /sys/bus/pci/devices/:01:00.0/driver/unbind I get a kernel Oops. Please note at this point I am not running the kvm guest, just trying to unbind the PCI device. I do have VT-d enabled in the bios and a processor that supports IOMMU. This problem is repeatable and appears to be isolated to the unbind command. Ubuntu 3.8.0-23.34-generic 3.8.11 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1) (prog-if 00 [VGA controller]) Subsystem: eVga.com. Corp. Device [3842:2660] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step ping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast TAbort- TAbort- MAbort- SERR- PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at ea00 (32-bit, non-prefetchable) [size=16M] Region 1: Memory at e000 (64-bit, prefetchable) [size=128M] Region 3: Memory at e800 (64-bit, prefetchable) [size=32M] Region 5: I/O ports at e000 [size=128] Expansion ROM at eb00 [disabled] [size=512K] Capabilities: [60] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot -,D3cold-) Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME- Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: Data: Capabilities: [78] Express (v2) Endpoint, MSI 00 DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited , L1 64us ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupporte d- RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+ MaxPayload 256 bytes, MaxReadReq 512 bytes DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPe nd- LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Latency L0 512ns, L1 4us ClockPM+ Surprise- LLActRep- BwNot- LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+ ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActiv e- BWMgmt- ABWMgmt- DevCap2: Completion Timeout: Range AB, TimeoutDis+ DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-, S electable De-emphasis: -6dB Transmit Margin: Normal Operating Range, EnterModifiedC ompliance- ComplianceSOS- Compliance De-emphasis: -6dB LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete +, EqualizationPhase1+ EqualizationPhase2+, EqualizationPhase3+, LinkEqualizat ionRequest+ Capabilities: [b4] Vendor Specific Information: Len=14 ? Capabilities: [100 v1] Virtual Channel Caps: LPEVC=0 RefClk=100ns PATEntryBits=1 Arb:Fixed- WRR32- WRR64- WRR128- Ctrl: ArbSelect=Fixed Status: InProgress- VC0:Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans- Arb:Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256- Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff Status: NegoPending- InProgress- Capabilities: [128 v1]