Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425201AbdD1JAq convert rfc822-to-8bit (ORCPT ); Fri, 28 Apr 2017 05:00:46 -0400 Received: from mga07.intel.com ([134.134.136.100]:7161 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1164381AbdD1JAf (ORCPT ); Fri, 28 Apr 2017 05:00:35 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,387,1488873600"; d="scan'208";a="254536446" From: "Lofstedt, Marta" To: Chris Wilson , Kees Cook CC: "linux-kernel@vger.kernel.org" , "Anton Vorontsov" , Colin Cross , "Luck, Tony" , Namhyung Kim Subject: RE: [PATCH] pstore: Solve lockdep warning by moving inode locks Thread-Topic: [PATCH] pstore: Solve lockdep warning by moving inode locks Thread-Index: AQHSv6z0E1GHq1Vv+k6AN71cJXaIqaHaWKyAgAAfxvA= Date: Fri, 28 Apr 2017 09:00:32 +0000 Message-ID: References: <20170427232037.GA98375@beast> <20170428075233.GI3390@nuc-i3427.alporthouse.com> In-Reply-To: <20170428075233.GI3390@nuc-i3427.alporthouse.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTY2OWNhY2UtOTMxMC00ZDVhLWJhYTYtMzMzZjI3YTk2YzlmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IldPMUxEVStNNWRNQnVHSWl1bCtyeFc2XC9pb1drNDJ5QURZRE5XVE5cLzJIYz0ifQ== x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1571 Lines: 37 > -----Original Message----- > From: Chris Wilson [mailto:chris@chris-wilson.co.uk] > Sent: Friday, April 28, 2017 10:53 AM > To: Kees Cook > Cc: linux-kernel@vger.kernel.org; Anton Vorontsov ; > Colin Cross ; Luck, Tony ; > Lofstedt, Marta ; Namhyung Kim > > 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. > > 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. BR, Marta > -- > Chris Wilson, Intel Open Source Technology Centre