Kernel Oops - unable to handle kernel NULL pointer dereference at 0000000000000002; IP is at mmc_ioctl_cdrom_read_audio+0x212/0x3b0

Bug #1580776 reported by Dave Brown
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

While playing around with the CDROM API found in linux/cdrom.h I encountered a kernel oops when my program stalls. My code can be found at https://github.com/bigdavedev/audiorip.

My program simply examines the ToC and then begins reading the PCM data track-by-track. I would expect it to complete without any major issue

At first I assumed it was the CD, but after switching CDs several times I noticed that the oops happens at around frame 170925, reading CD_FRAMES (75) per ioctl. At this point, the disc is spinning at full speed. I have not yet tried reading fewer frames, nor have I tried setting the speed to something not max to see if I still receive a kernel oops. This would not be problematic to try.

I have attached the output from `ubuntu-bug linux` to this issue.
---
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: dabr 2430 F.... pulseaudio
DistroRelease: Ubuntu 16.04
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-01-29 (102 days ago)
InstallationMedia: Ubuntu-Server 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
MachineType: ASUSTeK COMPUTER INC. K55VD
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic.efi.signed root=/dev/mapper/primary_lvm_volume-root ro
ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-22-generic N/A
 linux-backports-modules-4.4.0-22-generic N/A
 linux-firmware 1.157
RfKill: Error: [Errno 2] No such file or directory
Tags: xenial
Uname: Linux 4.4.0-22-generic x86_64
UpgradeStatus: Upgraded to xenial on 2016-04-19 (22 days ago)
UserGroups: adm audio bumblebee cdrom dialout dip kvm lpadmin plugdev sambashare sudo video
_MarkForUpload: True
dmi.bios.date: 03/11/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: K55VD.411
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: K55VD
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrK55VD.411:bd03/11/2013:svnASUSTeKCOMPUTERINC.:pnK55VD:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnK55VD:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: K55VD
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Dave Brown (bigdavedev) 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 1580776

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
Dave Brown (bigdavedev) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Dave Brown (bigdavedev) wrote : CRDA.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : IwConfig.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : JournalErrors.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : Lspci.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : Lsusb.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcEnviron.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcModules.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : PulseList.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : UdevDb.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
Dave Brown (bigdavedev) wrote : AlsaInfo.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : CRDA.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : IwConfig.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : JournalErrors.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : Lspci.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : Lsusb.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcEnviron.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : ProcModules.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : PulseList.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : UdevDb.txt

apport information

Revision history for this message
Dave Brown (bigdavedev) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
description: updated
Revision history for this message
Dave Brown (bigdavedev) wrote :

Tested with reading 25 frames per ioctl and the freeze happens at roughly the same frame region.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.6 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.6-rc7-wily/

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

I have tested against both 4.4.0-21.37 and 4.4.0-22.39 on two laptops with the same results.

I will test with an upstream kernel and get back to you.

/Dave

Revision history for this message
Dave Brown (bigdavedev) wrote :

Alas, the exact same result on the exact same frame in the upstream mainline kernel...

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

Being the tired and daft bugger that I am, I failed to convert minutes and seconds to frames properly resulting in trying to consume several hours worth of PCM data per track. Not my brightest moment and I would like to apologise for wasting your time...

/Dave

Changed in linux (Ubuntu):
status: Confirmed → Invalid
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.