Bug 51391 - BUG: unable to handle kernel NULL pointer dereference
Summary: BUG: unable to handle kernel NULL pointer dereference
Status: REJECTED UNREPRODUCIBLE
Alias: None
Product: File System
Classification: Unclassified
Component: ext4 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: fs_ext4@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-07 11:21 UTC by Karen
Modified: 2016-02-17 18:24 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.2.0-29-generic
Subsystem:
Regression: No
Bisected commit-id:


Attachments
kernel log file (2.98 KB, text/plain)
2012-12-07 16:25 UTC, Karen
Details

Description Karen 2012-12-07 11:21:01 UTC
Architecture :  x86_64 emulated by VirtualBox version 4.1.2_Ubuntu r38459
Distributive : 	Ubuntu 12.04
File System  : 	Ext4
Detected by the Spruce System (http://linuxtesting.org/spruce)
Bug appears when trying to mount a device with MS_NODEV flag attempted.
See the kernel message attached below.
Comment 1 Theodore Tso 2012-12-07 16:15:25 UTC
I don't see the attached kernel logs; can you please attach it to this bug report?

Thanks!!
Comment 2 Karen 2012-12-07 16:25:31 UTC
Created attachment 88611 [details]
kernel log file
Comment 3 Theodore Tso 2012-12-07 17:10:50 UTC
I just built 3.2.29, and running under KVM, I created a file system, mounted it with -o nodev, and then unmounted it.  It didn't crash.

I then mounted it without nodev, ran "mknod /mnt/null c 3 1" to create a /dev/null character device, unmounted the file system, remounted it with -o nodev, tried writing to /mnt/null, which failed as it should, and then unmounted the file system.   Still no crash.

Can you tell me if there was anything else special about how you ran your test?  Did it fail right on the mount?  Was this the root file system that you were testing trying to mount -o nodev, etc.?
Comment 4 Theodore Tso 2012-12-07 17:12:21 UTC
Hmm, I looked at the stack trace again, and I see "sys_inotify_rm_watch" in the stack trace.  I wonder if this is a generic VFS-level inotify bug, perhaps?   I don't have an easy way of setting up an inotify in my bare-bones KVM environment.  Can you tell me a bit more about your environment and what you might be using that might be setting an inotify on something on your file system?
Comment 5 Karen 2012-12-07 17:39:52 UTC
I was executing a system called Spruce(which is performing a verification of Linux file System drivers). The crash come out on the test which is performing a mount of the current device on the current mount point with MS_NODEV flag activated. Also program was compiled as a 32-bit program (with Ubuntu Multilib) but on 64 bit architecture. Hope that helps.
Comment 6 Theodore Tso 2012-12-07 18:04:22 UTC
Well, I was using a 64-bit kernel and a 32-bit mount program, so that replicates what you are doing, and a "mount -o nodev" will use MS_NODEV.  And I'm using a stock 3.2.29 kernel.

At this point I don't know what to tell you.  I can't duplicate the problem here.  If you can give me an easy reproduction that you can run by hand, great.  Otherwise, I'm going to have to close this out as not reproducible.

The other possibility is this is an Ubuntu bug.  Are you using a stock kernel, or is this a kernel with Ubuntu's "value added patches"?   If this is not a stock kernel, I'd advise that you submit this bug to Ubuntu.
Comment 7 Karen 2012-12-07 18:15:41 UTC
I was using a base kernel which is coming with Ubuntu 12.04
Comment 8 Theodore Tso 2012-12-07 20:13:05 UTC
Can you replicate the problem **without** using Spruce?

In any case, I would suggest sending a bug report with Canonical, since this is a Ubuntu kernel --- and despite my best efforts, I can not replicate the problem as you have described it on a stock 3.2.29 or 3.7-rc4 development kernel.
Comment 9 Karen 2012-12-10 08:23:04 UTC
I couldn't replicate the problem without Spruce yet, but still I am trying.

Also I want to notice that You are using 3.2.29 but my kernel is 3.2.0.-29.
I will try to send this problem to Canonical too.
Comment 10 Alexey Khoroshilov 2013-02-11 10:04:51 UTC
(In reply to comment #4)
> Hmm, I looked at the stack trace again, and I see "sys_inotify_rm_watch" in
> the
> stack trace.  I wonder if this is a generic VFS-level inotify bug, perhaps?   

It looks like it is actually a data race in VFS layer:
https://patchwork.kernel.org/patch/1685431/

We observed the same issue with JFS file system.

Note You need to log in before you can comment on or make changes to this bug.