From patchwork Sun Mar 26 09:21:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yafang Shao X-Patchwork-Id: 75031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp840523vqo; Sun, 26 Mar 2023 02:24:24 -0700 (PDT) X-Google-Smtp-Source: AKy350bzBrpgyWTPXmA2yXgsBMpLBLqDlmxEulBMgTRSOxerZEUL2TToDd86mbmISGP8bpLzmGdI X-Received: by 2002:a05:6402:74a:b0:4fc:e605:556a with SMTP id p10-20020a056402074a00b004fce605556amr8165269edy.5.1679822663972; Sun, 26 Mar 2023 02:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679822663; cv=none; d=google.com; s=arc-20160816; b=JuVOm6gI/kIi7Ddj2VDY4GQ3BKJjpMu0iNRDEnLzWFv4o30dJvtHwIg6XpgW6oqdHn kLTTMJsSgrO/DoWBhEwkTh77WlPwf+FSJVXn20/YpseUfLTTLpB69ILBLRjnFuHmwK88 TOiI+Tz2lNLTU9PQbeFlTp7kxX8zAbvt7eljJLTxabfjVQAUyKC2xTFTI2F1UUWcKm9z VU+2wTvRUB2gGf9M2G+4FytMKJ63hG2fU6CKK2LKFJZxUeWA2sUl83pmlmrC/o0uN9TQ eszpGo3rGv33Wcw0IS2vw+deTyI8ponEdb4VhLhC7ctVrbrB6SqKAoMXMdTuLkuIQfyJ QNzg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fqlnazOt7kJ3822TP+aL3SiF//u+HTRXad+baVnErHY=; b=WEsga20fCwRNJuKdLUfWJ5mL+fpE9gqFpdGvwtmiBhnb0YdcyOiA+fSOq+bH4VcVki Ef8/vFyiR5hnxqhq1nrvEElnmsMVZwAM8zU1ZSB/3tmKURcX97FK/EzXjQiCrQgR6Yz0 6Nb92QL1wCxJjpjiJrs9SrdJupsNREDYPdH1SaGxZXexttFGoMt8wbnodankku3Pabaj gwMfJkPBP/Q87/KMDofpEsFq/7v9MXcaa+YX6peovHBWyNQapiPueDLDuKNgtENMCF+v WxLfbszrspOafb25haroCuKv5YlQbP2Y3XtIqxlrF20cxjXeJ6/7BtrQRQKq06g3H/1S 7U2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ULRmL+go; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020aa7da99000000b00500351a0ab1si4865740eds.217.2023.03.26.02.24.00; Sun, 26 Mar 2023 02:24:23 -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=@gmail.com header.s=20210112 header.b=ULRmL+go; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231928AbjCZJW2 (ORCPT + 99 others); Sun, 26 Mar 2023 05:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbjCZJWU (ORCPT ); Sun, 26 Mar 2023 05:22:20 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8F099032; Sun, 26 Mar 2023 02:22:19 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id bz27so5883656qtb.1; Sun, 26 Mar 2023 02:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679822539; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fqlnazOt7kJ3822TP+aL3SiF//u+HTRXad+baVnErHY=; b=ULRmL+goUMzVI5YM5Y3Tyb6Q3Ydk4wgw8+6UtQFRH6EdEXFLldFizOc9kXUV0CRl/o OwLu+mZCMJ7VUWMBNtO9bEU3nRuILHZtYR6BYOzE8dPY2AUmKxv9/8WJEF138QpnKxsa +kAu7TUP7430uq1suJArrJQU+HQ+6vvvKQhK6HCCsAovvHrMlr9FG0Xchxfk5jHwV+q/ zmPpsOwGDOG8odIJR86LI5L++nbeSpoPDyXGCHaykARBdbfNBazeOlLoirujo51KSOmN ROb48wG0E2fmz2aBbOsjusCsoJPCq19F3r9/D8m9KLog+wmLgTpS0/8d1C112df0pn8D VmYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679822539; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fqlnazOt7kJ3822TP+aL3SiF//u+HTRXad+baVnErHY=; b=PTi/khpkbT5ftwnbkTRCemBQfJ1QETMY8fksWmgu0Ea1wA3/CO76z9M0RzaeJ+oecj V+BrXn6aDpvF9+RgOjxqjAfxppFjgO+SmHkZDZCMKA8ZD9juXW+N14neuGcLA/XnfArO 8dNucy6Vhp1pMw1dYfMRfDUl7t5SUU3h1c2aquNCmYsv3KveiiaYEkEIVydr9O8p7llJ 33XwS7+1T6ibQYVvtvXNBhuvjU1e9yQpET9VjsqPQc7HqCR54wKnDonPeEzitGt0DIii 0Nu4kRd2kH+BObXj+/64vyR6YE8g+HkTH41CYbTYdkDVRn6BB08evRIBpDzx1XaGmnyo CsVQ== X-Gm-Message-State: AO0yUKXteKmKXvdFMKhTEvIU9GMFO7m3BbS+wv1blKuis2MznGbd/dYx pm7/TDsHDaI3zhWSCqohpXI= X-Received: by 2002:a05:622a:c6:b0:3b6:2c3b:8c00 with SMTP id p6-20020a05622a00c600b003b62c3b8c00mr15120345qtw.66.1679822538836; Sun, 26 Mar 2023 02:22:18 -0700 (PDT) Received: from vultr.guest ([2001:19f0:1000:1a1f:5400:4ff:fe5e:1d32]) by smtp.gmail.com with ESMTPSA id y5-20020ac87085000000b003e014845d9esm10257987qto.74.2023.03.26.02.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 02:22:18 -0700 (PDT) From: Yafang Shao To: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Yafang Shao Subject: [RFC PATCH bpf-next 02/13] proc_ns: Extend the field type in struct proc_ns_operations to long Date: Sun, 26 Mar 2023 09:21:57 +0000 Message-Id: <20230326092208.13613-3-laoar.shao@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230326092208.13613-1-laoar.shao@gmail.com> References: <20230326092208.13613-1-laoar.shao@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1761421729602181419?= X-GMAIL-MSGID: =?utf-8?q?1761421729602181419?= In struct proc_ns_operations, the field 'type' is the new namespace clone flag. As the newly introduced CLONE_NEWBPF is more than 32bit, we need also extend this field from int to long to adapt to this change. Signed-off-by: Yafang Shao --- include/linux/proc_ns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/proc_ns.h b/include/linux/proc_ns.h index 75807ec..555c257 100644 --- a/include/linux/proc_ns.h +++ b/include/linux/proc_ns.h @@ -16,7 +16,7 @@ struct proc_ns_operations { const char *name; const char *real_ns_name; - int type; + long type; struct ns_common *(*get)(struct task_struct *task); void (*put)(struct ns_common *ns); int (*install)(struct nsset *nsset, struct ns_common *ns);