From patchwork Mon Apr 24 04:25:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Viro X-Patchwork-Id: 86835 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2506128vqo; Sun, 23 Apr 2023 21:53:05 -0700 (PDT) X-Google-Smtp-Source: AKy350Z15s+buQ0bxIcZ6x/3huoTOPdrLKX5vGyl8MNVakkF7Q26K0GIMrkYUwEH4lnKnGfgirTX X-Received: by 2002:a17:903:189:b0:1a6:4c34:98bb with SMTP id z9-20020a170903018900b001a64c3498bbmr13648923plg.57.1682311984796; Sun, 23 Apr 2023 21:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682311984; cv=none; d=google.com; s=arc-20160816; b=iW+K4kTb4MJKZJMkPZ3k2kSF5OjwJe0qYG84VJ7Zzyoo55IigYaPIoBGFSlW1NCd6W xZJXuFDOJhfT6r1OmvWd1kYu0wUUib6GogucJg8pgyzuHL+2IDFRhc07lMAelwvBd8d6 LetmF1dZQvMzs6PsSv/7sYwY9MPoN34lgM7FlvqebTLA3JR7PM3ecXetQBLzOA/ckPVr zzSi3FupCyhJ3iomVhT44zAp8JS01XdR8WQk8C0AqNAnfkJv9rvQhI0OO/ORc2xnH/nt 44+tAx0OEtoqXLue5mx1mXvKc4jSPAG6NMttQmzp37JM78Y9uYKd6a/agywh5JTVTE7F JMIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=2Qb4zQ9ksN8MuZZ+mD1yaDjq361e0yne8EL9nnCgEYs=; b=JhGY98z5Ca9MbRJ+3/Z1e1BTZjYTziZyplrMSZ8VUdfmzIqbIQ2VgaI8Cxv6SZG4fk HF1yAShoVWczr7LkGSRBshUt8fYtGm0kHulnJPAgdkLkBwv0eaWffdx2KHVVf4V/TE80 2YEN8SpdhRJQrVUpXfc4pEzUR3hRI/WEAWvS4/aOAyNXXrxrTtixgPkug13GaGSeBl9K 6KZUmnqoTu2Oyr/RC5XzogZOqebRPdqTpTqd7u0hQLwZsAWg/I/Bhll54kRyJmjZrfBp d7xx38HTuBr0Bc+H5SwNJV56ZQiumAv3yo9noOdLrasi/MBptUgVHaSrHphswJycMOQk dBmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=V75BRYun; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a17090ab90700b0024765bb4f7esi12940745pjr.25.2023.04.23.21.52.52; Sun, 23 Apr 2023 21:53:04 -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=@linux.org.uk header.s=zeniv-20220401 header.b=V75BRYun; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230364AbjDXEZf (ORCPT + 99 others); Mon, 24 Apr 2023 00:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjDXEZe (ORCPT ); Mon, 24 Apr 2023 00:25:34 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC27919A4; Sun, 23 Apr 2023 21:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=2Qb4zQ9ksN8MuZZ+mD1yaDjq361e0yne8EL9nnCgEYs=; b=V75BRYunrNqwadwy7gWSnNakAf mxgw3trke8W5Cg+rsq5VCWKcqIPAnxF6HiWGMfUH+M0dD+waeVM4yr2iOTYKlG0ITNrA9S1XFw6yZ j7Em9nOpgqlxXvff/2GdTdcEfOlFDZfYRPwO6OxqmrzqGVKRpwf5mHikW5V9tKCknfwIbCFpoj9mz cx/hksa1ClBAp0/nT5gaPsMsWGwrsPqsCugETaXEDCYa9H8WFEgO6pwXWOY6d+/LVmuOecZQYYYYF Aizu4UtfCsqy+3HnC/NX3xm3uXdcdEt2vNA66JqVAIJr8eDQobylnnp+9cIUbrhXy9KRT/78UumfO sKN8pqJQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1pqnlZ-00C0Fe-0y; Mon, 24 Apr 2023 04:25:29 +0000 Date: Mon, 24 Apr 2023 05:25:29 +0100 From: Al Viro To: Linus Torvalds Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [git pull] fget() whack-a-mole Message-ID: <20230424042529.GI3390869@ZenIV> MIME-Version: 1.0 Content-Disposition: inline Sender: Al Viro X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764031971856813304?= X-GMAIL-MSGID: =?utf-8?q?1764031971856813304?= The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6: Linux 6.3-rc1 (2023-03-05 14:52:03 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git tags/pull-fd for you to fetch changes up to 4a892c0fe4bb0546d68a89fa595bd22cb4be2576: fuse_dev_ioctl(): switch to fdget() (2023-04-20 22:55:35 -0400) ---------------------------------------------------------------- fget() to fdget() conversions Signed-off-by: Al Viro ---------------------------------------------------------------- Al Viro (8): convert setns(2) to fdget()/fdput() convert sgx_set_attribute() to fdget()/fdput() SVM-SEV: convert the rest of fget() uses to fdget() in there kill the last remaining user of proc_ns_fget() build_mount_idmapped(): switch to fdget() bpf: switch to fdget_raw() cgroup_get_from_fd(): switch to fdget_raw() fuse_dev_ioctl(): switch to fdget() arch/x86/kernel/cpu/sgx/main.c | 11 +++++------ arch/x86/kvm/svm/sev.c | 26 ++++++++++++++------------ fs/fuse/dev.c | 41 +++++++++++++++++++++-------------------- fs/namespace.c | 12 ++++++------ fs/nsfs.c | 18 ------------------ include/linux/proc_ns.h | 1 - kernel/bpf/bpf_inode_storage.c | 38 +++++++++++++++----------------------- kernel/cgroup/cgroup.c | 10 ++++------ kernel/nsproxy.c | 17 ++++++++--------- net/core/net_namespace.c | 23 +++++++++++------------ 10 files changed, 84 insertions(+), 113 deletions(-)