Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15846189rwd; Mon, 26 Jun 2023 02:03:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VxHhijOhssJAHF8JO2bG2kVKd2KGcTLLuvbojN1NaiNlm0NYFwJZ8MSnZURyasySqaSNF X-Received: by 2002:a17:907:d1a:b0:988:e223:9566 with SMTP id gn26-20020a1709070d1a00b00988e2239566mr19684998ejc.62.1687770231558; Mon, 26 Jun 2023 02:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687770231; cv=none; d=google.com; s=arc-20160816; b=R3ZGxB4CKy2ETiG2EezYVB2zX06loD0rv0tAu3E0AE+ShmG2qP5X7etRXgaD/029xc sre0YatQyk9zJ7V938SHkh2yiBihKZ86Z44AlCt1XyyaWKbelrbpxMvWZgrS/6f95dM8 xv1DG+HV4I+hnWsJ8lURT/LtWWmZfzzrDqB88amLDcwlBQ8uNqMABz7gwkBr0oA82DTF vEZEP6tcnHpYW73I5b5NIDgWpAJMSIIcWUzpSyjHP+SHYk/jdCz7IoUHvrx1jlM84V63 mNudADd7wXAMlBPZzR9bDabOffaIDBC15SiLMAHw1zxm5Wkd02iM+3jGyhIEVaEG5F/W pHIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eQBVwyu3uSQibKKM+6BI8QdZ3SzMUyMYDIi6/hYTgPk=; fh=7vhdM52fhxmTVKNB8LJ6A+CnyIb9QwLW84/j7gZiXyI=; b=hTzyRetlJ1sFfhaY4dybW4rwwci15HhXVm4GoSXZ1/d3YVlpkTgvwEtNFA1lDBRDVM 2SmA7K0LDGH7SeM2MBTco5txcMV66787dwqJupq4aMeDm3GA6AVh55Mxfyi6EOcUFwbh VDNH8Mv3DZ4QATbxbvszzt9MEj2TPwTAlCGy9syhryiJDNvRgz0yhFtoKLJU1AyC/KWH 43JQZSqTz2F7v26UwdadgqSDlDvYmzWzMX5943Ey01P1lI8dNS+51tq1SzQwaeGme+L4 ehYEVgvXVJIKhUQM4i8F8yu+YUiNeWT3//8JH19xteUhj1mNUzFgFVVScnuiQqoSHRir Cx3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=MZ7Nlj8e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020a056402071100b0051d91c2832dsi1704131edx.674.2023.06.26.02.03.26; Mon, 26 Jun 2023 02:03:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=MZ7Nlj8e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231451AbjFZIwA (ORCPT + 99 others); Mon, 26 Jun 2023 04:52:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbjFZIvl (ORCPT ); Mon, 26 Jun 2023 04:51:41 -0400 Received: from smtp-42af.mail.infomaniak.ch (smtp-42af.mail.infomaniak.ch [IPv6:2001:1600:3:17::42af]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 517913583 for ; Mon, 26 Jun 2023 01:49:32 -0700 (PDT) Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4QqM2M0mHtzMpqsT; Mon, 26 Jun 2023 08:48:43 +0000 (UTC) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4QqM2L1jyXzMpvVT; Mon, 26 Jun 2023 10:48:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1687769323; bh=aEhUEFjlWBzIziOJJuCpxbJR2jQcCyx7meGNZnSvhvk=; h=From:To:Cc:Subject:Date:From; b=MZ7Nlj8eZb95HPTOedrkSDfhjlo2sRy4yuyIQMydvoqcfNvedTf3b8bIzBMun4lJ1 VtzLHyotWl8rHCLzSE9oT2lbpGtyjenJjAWryvZQttYBXTRLb4HfLl836g8K0x4cVH LFdChgyxRi3Zi+H5y11/TQQRLq5/N2C+qhfgJqf8= From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Linus Torvalds Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Anton Ivanov , =?UTF-8?q?G=C3=BCnther=20Noack?= , Johannes Berg , Konstantin Meskhidze , Richard Weinberger , Thomas Gleixner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-um@lists.infradead.org Subject: [GIT PULL] Landlock updates for v6.5 Date: Mon, 26 Jun 2023 10:48:30 +0200 Message-ID: <20230626084830.717289-1-mic@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, This PR adds support for Landlock to UML. In fact, this fixes the way hostfs manages inodes according to the underlying filesystem [1]. They are now properly handled as for other filesystems, which enables to support Landlock (and probably other features). This PR also extends Landlock's tests with 6 pseudo filesystems, including hostfs. This PR can lead to a trivial merge conflict with tip [2] where one of Thomas's commit adds ARCH_HAS_CPU_FINALIZE_INIT and one of mine removes ARCH_EPHEMERAL_INODES in arch/um/Kconfig. Please pull these changes for v6.5-rc1 . These commits merged cleanly with v6.4, and have been successfully tested in the latest linux-next releases for a few weeks. [1] https://lore.kernel.org/all/20230612191430.339153-1-mic@digikod.net/ [2] https://lore.kernel.org/all/b57481af-5824-72f7-d20f-cfd78fcde519@digikod.net/ Regards, Mickaël -- The following changes since commit 858fd168a95c5b9669aac8db6c14a9aeab446375: Linux 6.4-rc6 (2023-06-11 14:35:30 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git tags/landlock-6.5-rc1 for you to fetch changes up to 35ca4239929737bdc021ee923f97ebe7aff8fcc4: selftests/landlock: Add hostfs tests (2023-06-12 21:26:23 +0200) ---------------------------------------------------------------- Landlock updates for v6.5-rc1 ---------------------------------------------------------------- Mickaël Salaün (6): hostfs: Fix ephemeral inodes selftests/landlock: Don't create useless file layouts selftests/landlock: Add supports_filesystem() helper selftests/landlock: Make mounts configurable selftests/landlock: Add tests for pseudo filesystems selftests/landlock: Add hostfs tests arch/Kconfig | 7 - arch/um/Kconfig | 1 - fs/hostfs/hostfs.h | 1 + fs/hostfs/hostfs_kern.c | 213 ++++++++-------- fs/hostfs/hostfs_user.c | 1 + security/landlock/Kconfig | 2 +- tools/testing/selftests/landlock/config | 9 +- tools/testing/selftests/landlock/config.um | 1 + tools/testing/selftests/landlock/fs_test.c | 387 +++++++++++++++++++++++++++-- 9 files changed, 478 insertions(+), 144 deletions(-) create mode 100644 tools/testing/selftests/landlock/config.um