linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: Tejun Heo <tj@kernel.org>
Cc: David Rientjes <rientjes@google.com>,
	Filipe David Borba Manana <fdmanana@gmail.com>,
	Chris Mason <clm@fb.com>,
	linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [btrfs] BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
Date: Mon, 10 Feb 2014 17:25:00 +0800	[thread overview]
Message-ID: <20140210092500.GB7864@localhost> (raw)
In-Reply-To: <20140208201037.GC10975@htj.dyndns.org>

On Sat, Feb 08, 2014 at 03:10:37PM -0500, Tejun Heo wrote:
> Hello, David, Fengguang, Chris.
> 
> On Fri, Feb 07, 2014 at 01:13:06PM -0800, David Rientjes wrote:
> > On Fri, 7 Feb 2014, Fengguang Wu wrote:
> > 
> > > On Fri, Feb 07, 2014 at 02:13:59AM -0800, David Rientjes wrote:
> > > > On Fri, 7 Feb 2014, Fengguang Wu wrote:
> > > > 
> > > > > [    1.625020] BTRFS: selftest: Running btrfs_split_item tests
> > > > > [    1.627004] BTRFS: selftest: Running find delalloc tests
> > > > > [    2.289182] tsc: Refined TSC clocksource calibration: 2299.967 MHz
> > > > > [  292.084537] kthreadd invoked oom-killer: gfp_mask=0x3000d0, order=1, oom_score_adj=0
> > > > > [  292.086439] kthreadd cpuset=
> > > > > [  292.087072] BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
> > > > > [  292.087372] IP: [<ffffffff812119de>] pr_cont_kernfs_name+0x1b/0x6c
> > > > 
> > > > This looks like a problem with the cpuset cgroup name, are you sure this 
> > > > isn't related to the removal of cgroup->name?
> > > 
> > > It looks not related to patch "cgroup: remove cgroup->name", because
> > > that patch lies in the cgroup tree and not contained in output of "git log BAD_COMMIT".

Sorry I was wrong here. I find that the above dmesg is for commit
4830363 which is a merge HEAD that contains the cgroup code.

The dmesg for commit 878a876b2e1 ("Merge branch 'for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs")
looks different, which hangs after the tsc line:

[    2.428110] Btrfs loaded, assert=on, integrity-checker=on
[    2.429469] BTRFS: selftest: Running btrfs free space cache tests
[    2.430874] BTRFS: selftest: Running extent only tests
[    2.432135] BTRFS: selftest: Running bitmap only tests
[    2.433359] BTRFS: selftest: Running bitmap and extent tests
[    2.434675] BTRFS: selftest: Free space cache tests finished
[    2.435959] BTRFS: selftest: Running extent buffer operation tests
[    2.437350] BTRFS: selftest: Running btrfs_split_item tests
[    2.438843] BTRFS: selftest: Running find delalloc tests
[    3.158351] tsc: Refined TSC clocksource calibration: 2666.596 MHz


> > It's dying on pr_cont_kernfs_name which is some tree that has "kernfs: 
> > implement kernfs_get_parent(), kernfs_name/path() and friends", which is 
> > not in linux-next, and is obviously printing the cpuset cgroup name.
> > 
> > It doesn't look like it has anything at all to do with btrfs or why they 
> > would care about this failure.
> 
> Yeah, this is from a patch in cgroup/review-post-kernfs-conversion
> branch which updates cgroup to use pr_cont_kernfs_name().  I forget
> that cgrp->kn is NULL for the dummy_root's top cgroup and thus it ends
> up calling the kernfs functions with NULL kn and thus the oops.  I
> posted an updated patch and the git branch has been updated.
> 
>  http://lkml.kernel.org/g/20140208200640.GB10975@htj.dyndns.org
> 
> So, nothing to do with btrfs and it looks like somehow the test
> appratus is mixing up branches?

Yes - I may do random merges and boot test the resulted kernels.

Thanks,
Fengguang

      reply	other threads:[~2014-02-10  9:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20140207023801.GC11051@localhost>
2014-02-07 10:13 ` [btrfs] BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 David Rientjes
2014-02-07 12:10   ` Fengguang Wu
2014-02-07 15:10     ` Chris Mason
2014-02-07 15:22       ` Filipe David Manana
2014-02-08 13:07         ` Fengguang Wu
2014-02-10  9:12         ` Fengguang Wu
2014-02-07 21:13     ` David Rientjes
2014-02-08 20:10       ` Tejun Heo
2014-02-10  9:25         ` Fengguang Wu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140210092500.GB7864@localhost \
    --to=fengguang.wu@intel.com \
    --cc=clm@fb.com \
    --cc=fdmanana@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rientjes@google.com \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).