Kernel Oops - unable to handle kernel NULL pointer dereference; RIP is at xpad_probe+0x33d/0x9d0

Bug #1514505 reported by Jonathan
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Running Ubuntu 15.04 with 3.19.0-32-generic if I plug in my original Xbox controller xpad crashes.

Steps to reproduce (at least for me):
1. Normally boot system
2. Login
3. Plug in controller

Lsusb stays stuck when running it after plugging it in.

I also found the exact same error from some time ago: http://pastebin.com/aNQKyeBh
---
ApportVersion: 2.17.2-0ubuntu1.7
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: jonathan 3375 F.... pulseaudio
 /dev/snd/controlC0: jonathan 3375 F.... pulseaudio
CurrentDesktop: Unity
DistroRelease: Ubuntu 15.04
HibernationDevice: RESUME=UUID=d3c87867-e47b-4ca6-ab1c-7ddd09c7a10e
InstallationDate: Installed on 2013-10-05 (769 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20130925.1)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
MachineType: ASUS All Series
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.19.0-33-generic root=UUID=94f5fea5-c5f6-4c3b-a766-df3a19779e4e ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.19.0-33.38-generic 3.19.8-ckt7
RelatedPackageVersions:
 linux-restricted-modules-3.19.0-33-generic N/A
 linux-backports-modules-3.19.0-33-generic N/A
 linux-firmware 1.143.6
RfKill:

Tags: vivid
Uname: Linux 3.19.0-33-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin plugdev sambashare sudo wireshark
_MarkForUpload: True
dmi.bios.date: 10/28/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2102
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: H87M-PRO
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2102:bd10/28/2014:svnASUS:pnAllSeries:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnH87M-PRO:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: All Series
dmi.product.version: System Version
dmi.sys.vendor: ASUS

Revision history for this message
Jonathan (greenbigfrog) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1514505

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jonathan (greenbigfrog) wrote :

apport-collect doesn't work: "dpkg-query: no packages found matching linux"

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.3 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3-wily/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Jonathan (greenbigfrog) wrote :

Gonna do that!

Issue doesn't exist on a 14.04 system.
uname -a: Linux mango 3.13.0-67-generic #110-Ubuntu SMP Fri Oct 23 13:24:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Jonathan (greenbigfrog) wrote :
Revision history for this message
Jonathan (greenbigfrog) wrote :

linux-headers-4.3.0-040300-generic_4.3.0-040300.201511020949_amd64.deb

Is this the right kernel?

Revision history for this message
Jonathan (greenbigfrog) wrote :

Also exists with the upstream kernel. Wasn't able to boot into graphical interface but in workspace 1 (ctrl+alt+F1) I got the same error after plugging the controller in. I also confirmed with uname -a that I was running 4.3

tags: added: bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Jonathan, please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 1514505

tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-4.3 regression-release
removed: bug-exists-upstream
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jonathan (greenbigfrog) wrote :

As I already wrote further up https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1514505/comments/6

I know it would be useful but it's not possible!

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Jonathan, then boot with an alternative environment instead. For example, http://cdimage.ubuntu.com/daily-live/current/ .

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jonathan (greenbigfrog) wrote :

If I boot a live system and then plug the controller in, the system freezes/crashes. Switching onto workspace 1 also isn't also possible.

tags: added: apport-collected vivid
description: updated
Revision history for this message
Jonathan (greenbigfrog) wrote : AlsaInfo.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : CRDA.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : JournalErrors.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : Lspci.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : Lsusb.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : ProcEnviron.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : ProcModules.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : PulseList.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : UdevDb.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : UdevLog.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote : WifiSyslog.txt

apport information

Revision history for this message
Jonathan (greenbigfrog) wrote :

hmm... now it somehow worked on my main system...

Revision history for this message
Jonathan (greenbigfrog) wrote :

But only as long as I haven't plugged the controller in.

Revision history for this message
Jonathan (greenbigfrog) wrote :

After plugging the controller in, the apport-collect doesn't work. It's already running for 5+ minutes now... I'm gonna let it run/collect infos and see if it is finished in 1h.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jonathan (greenbigfrog) wrote :

What could be causing apport-collect to not work after plugging the controller in could be that lsusb gets broken. (If I run lsusb in a terminal, lsusb doesn't output anything and also doesn't stop running and it isn't possible to kill lsusb.)

Revision history for this message
penalvch (penalvch) wrote :

Jonathan, the next step is to fully commit bisect from kernel 3.13 to 3.19 in order to identify the last good kernel commit, followed immediately by the first bad one. This will allow for a more expedited analysis of the root cause of your issue. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection ?

Please note, finding adjacent kernel versions is not fully commit bisecting.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

tags: added: latest-bios-2102 needs-bisect
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jonathan (greenbigfrog) wrote :

Oops.. just realized that what I wrote in #8 and #9 is wrong. Xpad doesn't crash because it doesn't even know that the new device is a Xbox controller.

The following commit adds my controller USB Id as a controller detectable by Xpad: https://github.com/torvalds/linux/commit/39a7a88872df98f0c3c50fe278fd1a1f597afd95

So we were running in the wrong direction...

Revision history for this message
Jonathan (greenbigfrog) wrote :

With every kernel that includes commit 39a7a8 the controller will crash Xpad when plugging it in. "Older" kernels will just not detect the controller as a controller and Xpad just "ignores" it.

Or in other words:
My controller gets only detected since commit 39a7a8 and causes Xpad to crash. "Older" kernels just don't "see" the controller as such.

Revision history for this message
Jonathan (greenbigfrog) wrote :

https://github.com/torvalds/linux/commit/39a7a88872df98f0c3c50fe278fd1a1f597afd95
It's included in the "newer" ubuntu kernels as well as in the upstream (I don't know how to check in which "pre-built" kernels it's included)

Revision history for this message
penalvch (penalvch) wrote :

Jonathan, the issue you are reporting is an upstream one. Could you please report this problem following the instructions verbatim at https://wiki.ubuntu.com/Bugs/Upstream/kernel to the appropriate venue (TO Pavel Rojtberg, and Dmitry Torokhov CC linux-input))?

Please provide a direct URL to your newly made report when it becomes available so that it may be tracked.

Thank you for your understanding.

tags: added: bisect-done
removed: needs-bisect
Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Jonathan (greenbigfrog) wrote :

I had issues getting my message on the mailing list...

https://<email address hidden>/msg20607.html

Somehow only the reply of Dmitry got on the list.

Revision history for this message
penalvch (penalvch) wrote :

Jonathan, as noted in https://wiki.ubuntu.com/Bugs/Upstream/kernel that link isn't the official archives of linux-input. Instead you would want to review http://vger.kernel.org/vger-lists.html .

Revision history for this message
Jonathan (greenbigfrog) wrote :
Revision history for this message
penalvch (penalvch) wrote :

Jonathan, to clarify https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1514505/comments/39 which newer Ubuntu kernel is this available in?

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Jonathan (greenbigfrog) wrote :

None... Dimitry said he had opened a pull request for rc3 (No idea what that exactly stands for)

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Jonathan (greenbigfrog) wrote :

The original issue has been fixed already.

Now it's just that the Input is static but it has nothing to do with the original issue so I'm gonna close this.

Revision history for this message
penalvch (penalvch) wrote :

Jonathan:
>"The original issue has been fixed already."

Where precisely, in the Ubuntu kernel from Vivid?

Revision history for this message
Jonathan (greenbigfrog) wrote :

https://github.com/torvalds/linux/commit/39a7a88872df98f0c3c50fe278fd1a1f597afd95

This commit fixes the crashing. It isn't included anywhere yet (AFAIK) so I'm running my own custom build.

But:
The Input isn't correct yet but I don't think this would belong to this bug report. https://<email address hidden>/msg20758.html

penalvch (penalvch)
tags: added: cherry-pick reverse-bisect-done
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.