Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1634325

RE: [PATCH] pstore: Solve lockdep warning by moving inode locks

From "Lofstedt, Marta" <marta.lofstedt@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH] pstore: Solve lockdep warning by moving inode locks
Date 2017-05-02 12:20 +0200
Message-ID <tCD4u-5hm-25@gated-at.bofh.it> (permalink)
References <tB11f-7CQ-1@gated-at.bofh.it> <tB8YO-4q5-17@gated-at.bofh.it> <tBa4y-5m0-27@gated-at.bofh.it> <tBjKy-3t4-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



> -----Original Message-----
> From: keescook@google.com [mailto:keescook@google.com] On Behalf Of
> Kees Cook
> Sent: Friday, April 28, 2017 10:22 PM
> To: Lofstedt, Marta <marta.lofstedt@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>; linux-kernel@vger.kernel.org;
> Anton Vorontsov <anton@enomsg.org>; Colin Cross <ccross@android.com>;
> Luck, Tony <tony.luck@intel.com>; Namhyung Kim <namhyung@kernel.org>
> Subject: Re: [PATCH] pstore: Solve lockdep warning by moving inode locks
> 
> On Fri, Apr 28, 2017 at 2:00 AM, Lofstedt, Marta <marta.lofstedt@intel.com>
> wrote:
> >
> >
> >> -----Original Message-----
> >> From: Chris Wilson [mailto:chris@chris-wilson.co.uk]
> >> Sent: Friday, April 28, 2017 10:53 AM
> >> To: Kees Cook <keescook@chromium.org>
> >> Cc: linux-kernel@vger.kernel.org; Anton Vorontsov
> <anton@enomsg.org>;
> >> Colin Cross <ccross@android.com>; Luck, Tony <tony.luck@intel.com>;
> >> Lofstedt, Marta <marta.lofstedt@intel.com>; Namhyung Kim
> >> <namhyung@kernel.org>
> >> Subject: Re: [PATCH] pstore: Solve lockdep warning by moving inode
> >> locks
> >>
> >> On Thu, Apr 27, 2017 at 04:20:37PM -0700, Kees Cook wrote:
> >> > Lockdep complains about a possible deadlock between mount and
> >> > unlink (which is technically impossible), but fixing this improves
> >> > possible future multiple-backend support, and keeps locking in the right
> order.
> >>
> >> I have merged your for-next/pstore branch (which included this patch,
> >> so I hope I chose correctly ;) into our CI. That should exercise it
> >> on the machines that we originally found the lockdep splat.
> 
> That's the branch, yes, thanks!
> 
> >>
> >> Thanks,
> >> -Chris
> >>
> >
> > Chris, I tested this on drm-tip after you merged for-next/pstore.
> > EFI_VARS_PSTORE is enabled.
> > I deliberately cause kernel panic and reboot, but unfortunately that kernel
> doesn't reboot properly. On display I see a bunch of:
> > "Cleaning orphaned inode ...", but then kernel boot  is stuck.
> > I run this on a BDW NUCi5, which I have been using successfully with
> pstore-efi for weeks.
> > Fortunately I had some other pstore enabled kernels, so if I clean out
> /sys/fs/pstore/* with one of them I can boot above kernel again.
> 
> Hrmm... if you isolate this down to a different pstore issue, please let me
> know. I haven't seen filesystem corruption in my tests yet. :P
> 
> Thanks for testing!
> 
> -Kees


Hi Kees,

I can't reproduce above issue with your:
"
  git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/pstore-v4.12-rc1

for you to fetch changes up to 3a7d2fd16c57a1ef47dc2891171514231c9c7c6e:

  pstore: Solve lockdep warning by moving inode locks (2017-04-27 20:35:34 -0700)"


BR,
Marta
 

> 
> --
> Kees Cook
> Pixel Security

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] pstore: Solve lockdep warning by moving inode locks Kees Cook <keescook@chromium.org> - 2017-04-28 01:30 +0200
  Re: [PATCH] pstore: Solve lockdep warning by moving inode locks Namhyung Kim <namhyung@kernel.org> - 2017-04-28 05:20 +0200
  Re: [PATCH] pstore: Solve lockdep warning by moving inode locks Chris Wilson <chris@chris-wilson.co.uk> - 2017-04-28 10:00 +0200
    RE: [PATCH] pstore: Solve lockdep warning by moving inode locks "Lofstedt, Marta" <marta.lofstedt@intel.com> - 2017-04-28 11:10 +0200
      Re: [PATCH] pstore: Solve lockdep warning by moving inode locks Kees Cook <keescook@chromium.org> - 2017-04-28 21:30 +0200
        RE: [PATCH] pstore: Solve lockdep warning by moving inode locks "Lofstedt, Marta" <marta.lofstedt@intel.com> - 2017-05-02 12:20 +0200

csiph-web