Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1707036pxu; Tue, 24 Nov 2020 07:06:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrbSZXGyzbc2eXGJGJYxB9knBzs51MoR0dgya6dxM8VBmqR06dodeV1tk7v0i4Va9Y9ply X-Received: by 2002:aa7:df82:: with SMTP id b2mr4148903edy.251.1606230392385; Tue, 24 Nov 2020 07:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606230392; cv=none; d=google.com; s=arc-20160816; b=r4z0Of2N1IpwMEhwnpVeJSq0fAi3FOv8y1n9yd9nCaF1O6p0Q1/raIobqydr2qmTrv BiddsDJy/+RgJxCWNMkSBqshKUcqfe8HxvEjivaiJk1urDB56cDs7H+gmY4URZ8LnM5n IFBLdlsVdj1k9mG6lPuHSIpBAnuO0YiDA6XiWyxhWauRlMK11LfWeA7splgQaqpO8V7V 2rtiZrS1KuNO74jRe/guFpmq9BuAKY+Qmd6T94IdKi5k+MB3aeYLyUC3W48KgebBlbmP 10Wk6wP8Q6k1iywYh7aquW2UVgMVccOEMTNSxsbagRQ+/uwzosZHaaQB5RaTGnkAuydj jbIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Pq2QjOElY2atSJIbAEqdXL7pcwR7IP+wkCWzqWeTqfM=; b=pDO/HWEjQuFzgeELVSm9DUF7SU3McMjIOJn5UA+mSUz4o9c5XCg/eE+JC8JmHM0Se0 VWtc0HnFHLAWB/Vf4GkhU9cvbQoTkueNh7am2ncgSaf6QwSYncKDUwMRMqSg51SHxosl +sSRt0IjyxYIjSSMDqOawB7im9GGxBjb6a57zF1cYXxeFIdWu/ku4uXZZaHEdn981Wc1 hq+ISPGVPAw9ahCEq/LDqhq6/4pRSObgRkpVacsAD5V6XIwpQMhBX0Ku83E6zculpDd8 IQ+eSEpVw66PCmXcmyPIcqnwXr7V7bCpSw2iOEUzMGWgV/FKQ405DZrkRp38j8ytXpOo XN5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bX331kPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb25si2699097ejb.638.2020.11.24.07.06.00; Tue, 24 Nov 2020 07:06:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bX331kPp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389407AbgKXPBy (ORCPT + 99 others); Tue, 24 Nov 2020 10:01:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:33436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389251AbgKXPBy (ORCPT ); Tue, 24 Nov 2020 10:01:54 -0500 Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C345A20897; Tue, 24 Nov 2020 15:01:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606230113; bh=Pq2QjOElY2atSJIbAEqdXL7pcwR7IP+wkCWzqWeTqfM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bX331kPp58DquCe7eALZNxB6xaKkgQyyygyY/d1M7drF90Hbt4B9Fie/8ZQFgggXi zakAWHGwcNjH1HobJiX/3LfQZNnRmJzhRtcvUe/NmWlD1zl97k3aRtxxOVaMhEsg+3 7rKoDdrtiU7hcYJRM+xRWjeP9QMGhSTTDqvV4Ui8= Received: by mail-oi1-f175.google.com with SMTP id w15so868042oie.13; Tue, 24 Nov 2020 07:01:53 -0800 (PST) X-Gm-Message-State: AOAM532wQNp0xyyvhM4xlViNECWpr8oYgSXCIu+7NHMagxKzivyJxp1A 0koyuh1VlKPshN9VKRnnlrrYSaVWkBLefmE5ntE= X-Received: by 2002:aca:5c82:: with SMTP id q124mr2992989oib.33.1606230111951; Tue, 24 Nov 2020 07:01:51 -0800 (PST) MIME-Version: 1.0 References: <5f31cde519b941308412b3849197ee7c@AcuMS.aculab.com> <3e96bbfe476b4b3d876e480ce6b20b58@AcuMS.aculab.com> In-Reply-To: <3e96bbfe476b4b3d876e480ce6b20b58@AcuMS.aculab.com> From: Ard Biesheuvel Date: Tue, 24 Nov 2020 16:01:40 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Oops (probably) unmounting /oldroot/firmware/efi/efivars. To: David Laight Cc: linux-efi , kernel list , "matthew.garrett@nebula.com" , "jk@ozlabs.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Nov 2020 at 15:58, David Laight wrote: > > From: Ard Biesheuvel > > Sent: 24 November 2020 14:24 > > > > On Tue, 24 Nov 2020 at 15:22, David Laight wrote: > > > > > > I've just updated to the head of Linus's tree (5.10-rc5) and got the following > > > 'splat' during shutdown. > > > > > > Userspace is Ubuntu 20.04. > > > > > > rc4 rebooted fine. > > > > > > I'll try to bisect - but it isn't quick. > > > > > > > Surely caused by > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/efivarfs?id=fe5186cf12e30 > > facfe261e9be6c7904a170bd822 > > Yep, reboots fine with that kfree() commented out. > Thanks for confirming. Does it also work when keeping the kfree() and setting inode->i_private to NULL explicitly afterwards?