Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2882881lqo; Mon, 20 May 2024 23:03:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkPk88UpmBMM/innlMTHXdy8ygC4opeGei3CHZP5DLqkjyxA6h1BZXFOEjeg/7G1KKRJapFevOZsxXst/paJSFYp8ZD+x1pnOnZLiO9g== X-Google-Smtp-Source: AGHT+IFBxq3G+9GHZhFPSRFMr2G0bHwDqnu39Y+EYAxviGM4nmBShjhTzdqpaY8JhijA9QOfE7Nk X-Received: by 2002:a05:6a20:d80c:b0:1af:f843:baef with SMTP id adf61e73a8af0-1aff843d657mr32225215637.60.1716271392627; Mon, 20 May 2024 23:03:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716271392; cv=pass; d=google.com; s=arc-20160816; b=Z3uLFFACF64sTwc92GN9AgBJVkkLwr9i4E8pEazhE6z6HJoBo+bngbIXDb81mqhNds wnIcC1lAGbl0Deg8+WDWNz//gVKd9IhCeR90n/Z/zKWlijpdl0IMCDshkHSu3RpECcdA sxS3De91J3Rw/9fgapGfwhohBeGcNsp1XUnPx+THsuF7XA0sXBeuji+NqDKt/DBtj3Bd 6ZKp/+IwdyUDzPmSTbtwiRQyaQTuR0RaUwt60J/rUEWUFtKE3F/oJwOfvLZI3QgjxHEN kPUQNuwT0jWh5bwGmWKKSsGPwNpIU79vLz2rOeu0Q0ZznEazglvFBLFzUcPR75cWnXXk EPbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id :subject:cc:to:from:date:dkim-signature:dkim-filter; bh=lE6WJs8oCEQ7CTqKEXiYkNqhodYrOh5I7S0sTfqEK0U=; fh=/Z3oHvp6VczI5IIi77szI4dK6WJ1I6/x9iyrTHg4rjk=; b=0rSHS1HltLz66n29UYdQVWTpHvjRDVINUDnzf3I5vWR6YzYtE22A0mzeWoZMq1cl9c jqxjn78KtASGMq4aJbBfVoTVA2VEUtX4JHsYOppmeBqC6NbKoddw6n273etWDdPspdqY 8H4zgtB2IzHZx+D1OOPFJATjPc41glY8wNb1pwhNkXM5aQUxDDhxi/YTZ3H3LlIHHhU1 nZnYRkvX4F2fRAAL/hC2hA1Ofn1v9iiB/0ttaboW+BZDQJF2UCbMXnPtEHqovUkfrfXN DoH+u9JVnpiIIRDxjCS7QKdwQsHjrwjyo9wuQZUYH8TrZis7iO3LfU+TVbySCH5Ekk+a XVSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DMIQhl5Y; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-184512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-65d080b1520si4213580a12.488.2024.05.20.23.03.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 23:03:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DMIQhl5Y; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-184512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 41F5C282A1B for ; Tue, 21 May 2024 06:03:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 607A9446B4; Tue, 21 May 2024 06:03:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="DMIQhl5Y" Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BC8B7F; Tue, 21 May 2024 06:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716271383; cv=none; b=hUeGjgGYPkD+8EO0sYjyQ529suleXF4LUaVEFYIEnBcmuUPx+PCU8QQlB/dEOsUL0agPQQTHdJQHd85elc013kpLozn6ve/z4edDMIMNWMubSQuZNua1h5IWkpSHvg/4miAIL3oZrmU9fB4ridTCZ/RWK6kQvV42RoqNVXvl/2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716271383; c=relaxed/simple; bh=REIpe/tsZdnVcKXAJgaW3Cm7pKrMgd6soEuZTFKGyJE=; h=Date:From:To:CC:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:References; b=gWTw+7nzEGTFKyl0ep/BgAIo6ofAiSn4DG800kgikRU8KtNlS4Uk1ESAyh/kpSow4vVJr5hvVA8Uxc5lcFaSPDXJIkhfnI+wq75a6Q3PTkldx/JQJqaiXq2A4T2J7NS80hcQ5rU6YMD04QZwTrY1Lp1A5unVh3n/4L31S3Eg4Ww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=DMIQhl5Y; arc=none smtp.client-ip=210.118.77.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20240521060251euoutp017901cb39dc50381b35b95a06dd1d4037~Ra7gk3pWL1236312363euoutp01R; Tue, 21 May 2024 06:02:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20240521060251euoutp017901cb39dc50381b35b95a06dd1d4037~Ra7gk3pWL1236312363euoutp01R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1716271371; bh=lE6WJs8oCEQ7CTqKEXiYkNqhodYrOh5I7S0sTfqEK0U=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=DMIQhl5YnnCJZOtM4LPXsa3k1z3v9M0m3/R88cHWmqtWHFfgTGLbsW0E7DWScfenY nPgNQNrwFU4OmYaLqTikUU9JGSq/8UMyxGmcqI4SNCRHC9Oxjjmjju4YbBsQ7sFukz YsaxwVFjzcJtJMpWHfjEb4ChKW7tXoe9eW6qvPj0= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240521060251eucas1p2432364034bbb322edcc56f5a79ce51ed~Ra7gW_YWf2617026170eucas1p2V; Tue, 21 May 2024 06:02:51 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id FC.FE.09624.B093C466; Tue, 21 May 2024 07:02:51 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240521060250eucas1p215702fa50b4832b69071816982ef5721~Ra7fzcD5z0966409664eucas1p2H; Tue, 21 May 2024 06:02:50 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240521060250eusmtrp29eb31c409deb8d963f2095fdc12d2cea~Ra7fy0DyF3234432344eusmtrp2B; Tue, 21 May 2024 06:02:50 +0000 (GMT) X-AuditID: cbfec7f2-c11ff70000002598-f0-664c390b425f Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 61.A1.08810.A093C466; Tue, 21 May 2024 07:02:50 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240521060250eusmtip1fc4e4d0c4500d9ce1e854e625b276327~Ra7feqPDG1533715337eusmtip1F; Tue, 21 May 2024 06:02:50 +0000 (GMT) Received: from localhost (106.210.248.3) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 May 2024 07:02:49 +0100 Date: Tue, 21 May 2024 08:02:43 +0200 From: Joel Granados To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= CC: Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , , , Luis Chamberlain Subject: Re: [PATCH] bpf: constify member bpf_sysctl_kern::table Message-ID: <20240521060243.w2g57rrdjvi7biol@joelS2.panther.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="d6hc32oq7mipiuho" Content-Disposition: inline In-Reply-To: <20240518-sysctl-const-handler-bpf-v1-1-f0d7186743c1@weissschuh.net> X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphk+LIzCtJLcpLzFFi42LZduznOV1uS580g6ZtIhbff89mtvjy8za7 xecjx9ksFi/8xmxxY8UMZotDx/ezWzTtWMFkcWTKLGaL5/t6mSwu75rDZvH7xzMmizWdK1kt bkx4ymhx6cdrFovjy/+yWTxYvY3VQcBj56y77B4LNpV6dN24xOyxaVUnm8fChqnMHp83yXn0 dx9jD2CP4rJJSc3JLEst0rdL4Mp4OekCe8ExgYqDV16yNzDu4eti5OSQEDCROHvtGksXIxeH kMAKRon2X5uYIZwvjBJzp95hg3A+M0r8+tbODNNyqPUQE0RiOaPEnsV9CFW73/xghXA2M0r0 L/oDVMbBwSKgKvF3oRBIN5uAjsT5N3fAJokI2Eis/PaZHaSeWWAui8Sc3jusIAlhAQeJp09m sIH08gLZ0zrUQcK8AoISJ2c+YQGxmQUqJF6smw5WwiwgLbH8HwdImFMgUOLXsZ1QhypKrDt/ hQXCrpU4teUW2NESAq84JbYuWcwOkXCR2HP9P5QtLPHq+BYoW0bi/875UA2TGSX2//vADuGs ZpRY1viVCaLKWqLlyhOoDkeJd9/eg10kIcAnceOtIMShfBKTtk1nhgjzSnS0CUFUq0msvveG ZQKj8iwkr81C8toshNcgwnoSN6ZOwRTWlli28DUzhG0rsW7de5YFjOyrGMVTS4tz01OLDfNS y/WKE3OLS/PS9ZLzczcxAhPn6X/HP+1gnP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mOcwCg8C8mkWUgmzUKY BBHWkdi59Q4bhrC2xLKFr5khbFuJdevesyxgZF/FKJJaWpybnltsqFecmFtcmpeul5yfu4kR mDy2Hfu5eQfjvFcf9Q4xMnEwHmJUAep8tGH1BUYplrz8vFQlEd5NWzzThHhTEiurUovy44tK c1KLDzGaAgNxIrOUaHI+MK3llcQbmhmYGpqYWRqYWpoZK4nzehZ0JAoJpCeWpGanphakFsH0 MXFwSjUwrZ2zz+L3ce413zreuy7c8XLZ9UV7SixSLde1Vv9ZuHenRYnbNfHaN/0cM/81/nFz 9nR5/Tt48uEerty11wPVLn010vloFmh9qGNdEO/JT/E8S7coF212Z117SO4t89zV79ukr00s fKh9Wc5u16O8EJvb20OZukW1JHWSneNWfpke8Ho2+/fHP2yKFs1oTpJLt8yZoXM88T37o5DA rxv3Bu/c3tfms2lF7aFrzcpbdmucu6a7YJbVkkOByxcxMemfOiEjaDV5fnUXU+XaReGz3lhW Cz4NbWBObmRzyvm0rLzev1WJs/nfu19TF7Gn2NjIl7/vVX9Uqv+GXZD73YXQZA7dyK1HM4/O felxNiSiTImlOCPRUIu5qDgRAI0ZxgSzAwAA X-CMS-MailID: 20240521060250eucas1p215702fa50b4832b69071816982ef5721 X-Msg-Generator: CA X-RootMTR: 20240518145935eucas1p160af103aca811919cc3f0b47626ed7ec X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240518145935eucas1p160af103aca811919cc3f0b47626ed7ec References: <20240518-sysctl-const-handler-bpf-v1-1-f0d7186743c1@weissschuh.net> --d6hc32oq7mipiuho Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 18, 2024 at 04:58:47PM +0200, Thomas Wei=DFschuh wrote: > The sysctl core is preparing to only expose instances of > struct ctl_table as "const". > This will also affect the ctl_table argument of sysctl handlers, > for which bpf_sysctl_kern::table is also used. =2E.. > Cc: Joel Granados > Cc: Luis Chamberlain > --- > include/linux/filter.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/include/linux/filter.h b/include/linux/filter.h > index 0f12cf01070e..b02aea291b7e 100644 > --- a/include/linux/filter.h > +++ b/include/linux/filter.h > @@ -1406,7 +1406,7 @@ struct bpf_sock_ops_kern { > =20 > struct bpf_sysctl_kern { > struct ctl_table_header *head; > - struct ctl_table *table; > + const struct ctl_table *table; > void *cur_val; > size_t cur_len; > void *new_val; >=20 > --- > base-commit: 4b377b4868ef17b040065bd468668c707d2477a5 > change-id: 20240511-sysctl-const-handler-bpf-bec93a18ac68 >=20 > Best regards, > --=20 > Thomas Wei=DFschuh >=20 Reviewed-by: Joel Granados --=20 Joel Granados --d6hc32oq7mipiuho Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmZMOQMACgkQupfNUreW QU92cwv6A3Q54H1yWAu0kZl0kwaEfyuJ8P0cdishMdjgVnPLUhbT+lDcuom2KU0c zgxj40U08H7GnVNorLYKKhSYqbNTRpJwgZ+59QRSFB/U4EEc+7IWKUhCyZO/ED1K X5NND5rUJudBey0MsUrUqLfswzurzG4/44lG+wdxfVcYuPt6cBySW5YlA7jC5QZ7 OvB/TJJg2H1zN9tIsmfRdqw+cgkN/ifl7M+195+ivGP2Yn2PnvntG8qGDiaKmx6t QiMkOUSrOn1p1q/gTVAq9IlN/q5mbAunmmSxK4npyK7pT8THp63/0ZSb5CJvepVF EvpK/nEr8XHFJ5vN03uvcOOxB/oP1zNxfBAkR9swQ7Roa2M2fpUR/kEuZrXp5fst 2V1X0JBu4oaKBxg7YiJ+h8JMrwimld7BgZscrQRfRhfQdZNQhXrfyIlV2DENp6HX 8d6a4QoeDNyl4WQnhGQdExNnI+37iH2oRDhTPO55Wy8yxJOAW/TrSgeUxBTFPlD/ eQnplWZQ =QnWQ -----END PGP SIGNATURE----- --d6hc32oq7mipiuho--