Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp258758pxx; Thu, 29 Oct 2020 01:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUEgMffe+3kx14p4yCcPqPV95N2hHcQmZtkEW7wqLXjbOTKAg6pvgIrDvzFeED/zX5uokk X-Received: by 2002:a17:906:1158:: with SMTP id i24mr2900812eja.304.1603961109170; Thu, 29 Oct 2020 01:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961109; cv=none; d=google.com; s=arc-20160816; b=BXZ+N7AjOPwNRckL5v/XVdToHUGDs4UIvooPRvZg/omAGltg/QLCsU4t6hX5eNBqbL jN3T4v3XUFOvzFC5EZ8AbmPZ/Y0a5K5UJiNJsJiH4nAv/U9qODiHuUDjQbuSIML2khj8 kbmiOc7f3/hQ3M6lHK+h9skOr1PZOwZyrmkaaIZOMzih4nC4MfWztYOVBoatKJjcfaI4 UyKFj15L4cI1DXp87IOxRmtGJRDDGRgGrMsMni8mbTRUTBWVp9OJ9vM6NuAk/74vCJS5 I/zLeyqcktCTQMd/QqMfmYbF4RFhlWvZF7p9m8c+2CnhD1VrmAreVlU9B8zV5FipHa0E MrIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bPMDf0qf5u7i+D1hct4Y8ywTPSNEiqZnANVXp2csHmo=; b=UlquwEgxfye1kPI7aW2HSwZTK/4H6kQlOYaRTciZi7SMqMEDfvVbfGp9Tp2/nQvycJ Lgi7ce/h5sqT/1FtVhlFkLDJ9VhLMD5Rqy1hPkXY3TlNX+k73JKf0crXhxonFq+sPjRc ah4DTtvfQ730C5BkfK4X4mVcN+IG1csarSScOO1wjToJPxhyk8LkQXsTinz9WZVTb8Ch ibKahPvtkOo9PHGtu2vjLDP2oGXvCAJHejJgI6sjcZjFv3+uUi+2v21ypcY0+CAXgq0Q 0OsRAY/XFzu9B5La4ZGh7HsZtmb1rX1HUnzwi4qAAFhEvteBXkeWsLwTy5ZaFPA886x+ Q2ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UDRPLu9m; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc1si1470987ejb.315.2020.10.29.01.44.46; Thu, 29 Oct 2020 01:45:09 -0700 (PDT) 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=@google.com header.s=20161025 header.b=UDRPLu9m; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404178AbgJ2BHB (ORCPT + 99 others); Wed, 28 Oct 2020 21:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404165AbgJ2BGv (ORCPT ); Wed, 28 Oct 2020 21:06:51 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBBEEC0613D3 for ; Wed, 28 Oct 2020 18:06:49 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id l2so1237663lfk.0 for ; Wed, 28 Oct 2020 18:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bPMDf0qf5u7i+D1hct4Y8ywTPSNEiqZnANVXp2csHmo=; b=UDRPLu9msJZF3jU3f0cfRMmMUjv4al6mEdH+doXP3CJs1E+meQHwswUn6FfxeU4M7Y mdjF6dlxs/r9X+nsG+jvBBpuJoeemwz7oZzHEH8cu2FuE4WoJMkmPz/Ji0yhM4+WiFtB rhpBehRSmY/cTeZk76/aJgyzXOLL3NJE1/q4NlCTkpqRI97pcMZ+gNtjS3uoF4nuh7W1 yw24PiXpzrFEiT3OI82ePRsw7PnnCJjT7Cw+g66nh4wZX1yx+HybJu5UCEhtHD658mi+ 886WmiZsQzGj6z4/CpD39D+FU4YLDTEf8HsVVyfPaptpyJrsYS5a5QKE4zded/CZpn7z MwYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bPMDf0qf5u7i+D1hct4Y8ywTPSNEiqZnANVXp2csHmo=; b=YOJXyH22+PrGtlW0NVRnwCF3nN8GUYicXV8tx6qR3bGxsBap9OcuRK6BZMb31/taro wfEvQFyZNjSP3yhy92byX2T3fWuDuywtD6vVdGoKAwNhVylsF7aBPOlMIqH+w9l8fPHW FSiMfLRUxWjORHPzRlU/JT224LPH2ChwXquEXQGEJli3foGq2lfZlGxbBVMmKDojLUfz 2Pxmcl+vlz1Hhjeuk6/lEo42wzFdSrLK4HLdfhLCbNz0KhISIrdV8LJHUrHrbaFd4Kbc yiGbQCzDTjC3VGVQYUHxuxcB5H6Q81j988F4N8Cf43vS3uA4elX4InKVQaWKYmN/K5aE LL8Q== X-Gm-Message-State: AOAM532OkDyXZUgcSnV0a5HIdCInttvttHII892LO8suVXMU4K93MfOI Ils582CxgjmtFi18yzfegLFto1IvU587uJiXcZi3GQ== X-Received: by 2002:a05:6512:1182:: with SMTP id g2mr584148lfr.198.1603933608096; Wed, 28 Oct 2020 18:06:48 -0700 (PDT) MIME-Version: 1.0 References: <20201027200358.557003-1-mic@digikod.net> <20201027200358.557003-7-mic@digikod.net> In-Reply-To: <20201027200358.557003-7-mic@digikod.net> From: Jann Horn Date: Thu, 29 Oct 2020 02:06:21 +0100 Message-ID: Subject: Re: [PATCH v22 06/12] fs,security: Add sb_delete hook To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Cc: James Morris , "Serge E . Hallyn" , Al Viro , Andy Lutomirski , Anton Ivanov , Arnd Bergmann , Casey Schaufler , Jeff Dike , Jonathan Corbet , Kees Cook , Michael Kerrisk , Richard Weinberger , Shuah Khan , Vincent Dagonneau , Kernel Hardening , Linux API , linux-arch , "open list:DOCUMENTATION" , linux-fsdevel , kernel list , "open list:KERNEL SELFTEST FRAMEWORK" , linux-security-module , "the arch/x86 maintainers" , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2020 at 9:04 PM Micka=C3=ABl Sala=C3=BCn = wrote: > The sb_delete security hook is called when shutting down a superblock, > which may be useful to release kernel objects tied to the superblock's > lifetime (e.g. inodes). > > This new hook is needed by Landlock to release (ephemerally) tagged > struct inodes. This comes from the unprivileged nature of Landlock > described in the next commit. > > Cc: Al Viro > Cc: James Morris > Cc: Jann Horn > Cc: Kees Cook > Cc: Serge E. Hallyn > Signed-off-by: Micka=C3=ABl Sala=C3=BCn Reviewed-by: Jann Horn