Bug 42783
Summary: | Kernel ooops when disconnecting the USB flash disk, in which I've just modified partition table | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | WZab (wzab) |
Component: | SCSI | Assignee: | linux-scsi (linux-scsi) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | bvanassche, mlambda, stefanr, stern |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.2.2 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
WZab
2012-02-16 14:50:34 UTC
In the console there was an additional information, which was not stored in /var/log/messages: [ 5021.465121] usb 4-1.3: USB disconnect, device number 4 [ 5021.465800] scsi 7:0:0:0: killing request [ 5021.465869] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008 [ 5021.465942] IP: [<ffffffffa00bf7f4>] sd_revalidate_disk+0x39/0x1603 [sd_mod] [ 5021.466008] PGD 1b9242067 PUD 1b3401067 PMD 0 [ 5021.466052] Oops: 0000 [#1] PREEMPT SMP [ 5021.466093] CPU 3 [ 5021.466110] Modules linked in: nls_utf8 nls_cp437 vfat fat snd_hrtimer tun ebtable_nat ebtables acpi_cpufreq mperf cpufreq_conservative cpufreq_userspace ... For bug reports like this, it's generally more useful to attach the output from the "dmesg" command rather than copying the system log file or the contents of the console directly into the text of the report. Also, when tracking down problems in the kernel, it helps to build your kernel with CONFIG_FRAME_POINTER enabled. Why are you running hald-addon-stor? hal has been obsolete for some time. It would help if you could test whether this patch helps: http://www.spinics.net/lists/linux-scsi/msg57426.html This patch may be a better solution: http://marc.info/?l=linux-kernel&m=132935572612353&w=2 hal was probably installed by my distribution Debian/testing. it's installation was forced by gnome-volume-manager also the libthunar-vfs-1-2 requires libhal-storage1 package and libwine requires libhal So it seems, that I can't get rid of hal. Whether you have hal or not does not really matter. More recent userland without hal but with udisks-daemon triggers an oops at unplug of removable-media drives too. This is meant to be addressed by the patch from comment 4. I hit the same (?) bug, but without modifying the partition table: https://bugzilla.kernel.org/show_bug.cgi?id=42951 This bug should have been fixed between v3.3-rc7 and v3.3 by commit fe316bf2d5847bc5dd975668671a7b1067603bc7 and 9f53d2fe815b4011ff930a7b6db98385d45faa68. *** Bug 42951 has been marked as a duplicate of this bug. *** Please re-open if you still encounter this bug with kernel v3.3 or later. PS, the two patches were also backmerged into v3.2.12 and v3.0.25. |