Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp506354lqp; Thu, 21 Mar 2024 07:42:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5Ylgg0jMeg09XUG+bLiFNLTerbSWqMHTMfHZzEup6MQzXQB43MGJfqBZhg2WnRRxC5IXi4puw6qHxydlQVLSe6TmQBBhakapH1FK/jw== X-Google-Smtp-Source: AGHT+IEAeb/qYpzt9Hi/oRhUmxX7F3DzFyVU4ED6dJWInhrTUzGBZUas4/4fnBOvgpdCIKBpD5PQ X-Received: by 2002:a05:6358:5242:b0:17e:68ad:18ae with SMTP id c2-20020a056358524200b0017e68ad18aemr24689934rwa.1.1711032127938; Thu, 21 Mar 2024 07:42:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711032127; cv=pass; d=google.com; s=arc-20160816; b=snXkizwHuc2TwmnIFchIvCCN+vSmjPJOI00CJTqIC0ORjVCdR96FqQCzCzCl9X9lXE 9tkPuVT87mvovkYcd4LOkWNbC/X9o/ANpS+msyOdIIZUh5Zpt7JLx9G612KL0Gf222uX N5ElCcXYZONgDZfldiQM3NUr5yqkXynLaygA1MxDsWmrGWfhy3tI++5xEkYgcYSFVsa9 ald09/mbrs9sptiCNVmtTrAMNMz2e4whyOncVkT+KdGE/BFh9M8vTNZvDs7rihzfXAjr Jq8IyRTOK5gaEIonRa5G1nHwEFzR9vk28GO9RsHY33tQJ4x+2Erji2B5xOHs02Yn0tBH ej7Q== 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=WlR7t/ZFKS6OjGYjMpOV4h/ihJmeFKSCx/COvD0pVMg=; fh=EJZf4/GZDudb05sjzJWXdVS5GUbI8LeHyCuhjwyXGS4=; b=LNrtLuchYFKwdA065B8cvuoUlFN4fMYqWiKaT5tI+rkIHrepgkG5fkBBmK6b+35aov Fyeqb+bJ4yJLGOGhCzqJ2XTnba/SrhzxeVYFxwIXXsxF2RrerZWuZOejVKdRTI3iO/Mf yfU0o2qLMolIxVpTMjf+5lzFOWqtWCxs8giQeXtNoRjDrQpEyjJDfHacFRZsIohygCB3 RSE9QSnXEB9RlaQ40qpGt1EJacQPdLyIO1V5acC6Qf6rdq+UR2QKNMa5RAtqhzy/BOtT YaHIgTjOoK1hrDAKTCF3o9xlp57T7rmzw+Kn5ca24VA/dUX3jRaMJgilM9m4didf/A6+ 3X8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Fqt1R7IU; 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-110151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110151-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i16-20020a6561b0000000b005cdf37c9c29si15258253pgv.703.2024.03.21.07.42.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Fqt1R7IU; 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-110151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110151-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9B3F7B2424A for ; Thu, 21 Mar 2024 14:30:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D34B086AE9; Thu, 21 Mar 2024 14:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Fqt1R7IU" 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 98E9D84A4E for ; Thu, 21 Mar 2024 14:28:59 +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=1711031342; cv=none; b=Z2jJ/hxoAEV99co/1joyxdvmoLsXA8qoukEF2IibRIXiujETD3BrmjKHvTcA6ySBKzgUa8K57L/pAievw7iHn47lpVVJ/0wuns7lUBwV6Vpk4SORtoxXaXNMSjhgb7pwAWpMDivhdQP3ZHAvkPl2rfP7LjrqisJSetoApOwbYLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711031342; c=relaxed/simple; bh=v+xOyKjeU5rktvRgco68fNb6UlXYyNsjO9f6LvYOvHA=; h=Date:From:To:CC:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:References; b=ioLVYcT/9MfUdYFB2BqeuUdd9UJBjW9yYzTrqt9iUh9n7MCQDpkqulE11HVhqS5UBPVpevc7ghUx/2uUZ2EPtbmhtZFE9V3DiRB75PRAF9owLscsmVWBUXRPJrE30WqCBmtFoN35a/amljys5I/RSalY9SubTyM1cTyqKEfhXsM= 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=Fqt1R7IU; 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 eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20240321142851euoutp01ef543ca11c314d7bbb8e485580c6f7ec~_ze5AhtH91723517235euoutp01B; Thu, 21 Mar 2024 14:28:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20240321142851euoutp01ef543ca11c314d7bbb8e485580c6f7ec~_ze5AhtH91723517235euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1711031331; bh=WlR7t/ZFKS6OjGYjMpOV4h/ihJmeFKSCx/COvD0pVMg=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=Fqt1R7IUWnMBAGTZUdzwcwtXahP8Rr/PVmd44D+AE3mfaZBC98ZInZ76ZW2FzmOFG v4SdE/4Zloqo+Kz+OJhJtNu3hqNEr/jRxAFBixSyWOUX3ktctH+wDR0yd+pJtqNvui pOGiK31l/CGoMZAzot6kG9r8SKkZr4AMP2nkVdfY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240321142851eucas1p216e6cb9973e59a3ddfd6346d71e2dcff~_ze4xvCOA1852118521eucas1p2f; Thu, 21 Mar 2024 14:28:51 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id F8.18.09552.3244CF56; Thu, 21 Mar 2024 14:28:51 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240321142850eucas1p1abb6869b4b30dc128e0f54ecfa7e56a8~_ze4ScEwo2307023070eucas1p1B; Thu, 21 Mar 2024 14:28:50 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240321142850eusmtrp219a72be70ad37d87b225023dd8db4594~_ze4RwsoY0424704247eusmtrp21; Thu, 21 Mar 2024 14:28:50 +0000 (GMT) X-AuditID: cbfec7f5-83dff70000002550-44-65fc4423a1e2 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 0A.82.10702.2244CF56; Thu, 21 Mar 2024 14:28:50 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240321142850eusmtip11a853c02413adef14b05cd1c229d0b73~_ze4GR7W11382813828eusmtip1b; Thu, 21 Mar 2024 14:28:50 +0000 (GMT) Received: from localhost (106.210.248.248) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 21 Mar 2024 14:28:50 +0000 Date: Thu, 21 Mar 2024 15:28:48 +0100 From: Joel Granados To: "Eric W. Biederman" CC: , Luis Chamberlain , Kees Cook , Christian Brauner , , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Subject: Re: [PATCH 8/8] ucounts: delete these duplicate static variables ue_zero and ue_int_max Message-ID: <20240321142848.qh4jsp5j2ict2ar3@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="lwua24korejtob7w" Content-Disposition: inline In-Reply-To: <875xyczpzm.fsf@email.froward.int.ebiederm.org> X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJKsWRmVeSWpSXmKPExsWy7djPc7rKLn9SDe7u57d4ffgTo8Wc8y0s Fut2tTJZ/N/Wwm7x9Ngjdosz3bkWF7b1sVpc3jWHzeLGhKeMFt9Ov2G02Dt9GatFy+pdrA48 HrMbLrJ4bFl5k8ljQc95Zo8Fm0o9Nq3qZPPYP3cNu8f7fVfZPD5vkvOYcqidJYAzissmJTUn syy1SN8ugSvj6+2igulCFfdafzI1MG7k72Lk5JAQMJG48m41YxcjF4eQwApGiYMzrrJAOF8Y JaYdXcYO4XxmlDj9ezEjTMuRlYfYIBLLGSXOt31ghKuaMm8DM4SzlVHi192pTCAtLAKqEnee PWUHsdkEdCTOv7nDDGKLCOhL3Hw/iQ3EZhZoYpZ4vQvsKmGBJIkFj1aC1fMKOEhsv3mAEcIW lDg58wkLRH2FxOzv24FsDiBbWmL5Pw6QMKeAjcSKJXfYIS5Vlri+bzEbhF0rcWrLLSaQ2yQE rnFKnOi4A5Vwkbj7fR6ULSzx6vgWqGYZif8750M1TGaU2P/vAzuEs5pRYlnjVyaIKmuJlitP oDocJXbdeQ12kYQAn8SNt4IQh/JJTNo2nRkizCvR0SYEUa0msfreG5YJjMqzkLw2C8lrsxBe gwjrSCzY/YkNQ1hbYtnC18wQtq3EunXvWRYwsq9iFE8tLc5NTy02zkst1ytOzC0uzUvXS87P 3cQITJGn/x3/uoNxxauPeocYmTgY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5m hrBtJdate8+ygJF9FaNIamlxbnpusZFecWJucWleul5yfu4mRmCi2Hbs55YdjCtffdQ7xMjE wXiIUQWo89GG1RcYpVjy8vNSlUR42bl/pgrxpiRWVqUW5ccXleakFh9iNAWG4kRmKdHkfGAK yyuJNzQzMDU0MbM0MLU0M1YS5/Us6EgUEkhPLEnNTk0tSC2C6WPi4JRqYBKYbHpQ2NvGYbLG tpUP/5zv+KtpFba8Sc996f9Gpw/+iY9+2vPfrXhSMuPADvuPTccP9khs5PNMLzqd9GZn9OwP XMJcE5IvfWiuTxXdr/vpvmhBVu3XO32O+1yPM83IO7n8Vt3RrqOPZzW8YGq1+X42pHThmutr 5Wcdnfwnnj1vd/fSC9r/vh9JZdw0syl8jXKoidmquzOjmSZliaafvBC0kvP9A9ldfUnHYop9 tQ9e9YqpXTT/UL6TfvgZR/3vhQe+CsqpzO07tEFVvPEye93C3euOHr141/dtlbiI+uaHXS7h D9LvVjiYzRC99P93uIyfBQ9D5ndD+flhDye61yreDOZzT1pucy1mpfDGwholluKMREMt5qLi RAA+0vqcqQMAAA== X-CMS-MailID: 20240321142850eucas1p1abb6869b4b30dc128e0f54ecfa7e56a8 X-Msg-Generator: CA X-RootMTR: 20240225123015eucas1p2e13b3b1eb009f5d30e662fee25515b1d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240225123015eucas1p2e13b3b1eb009f5d30e662fee25515b1d References: <20240225040538.845899-1-wenyang.linux@foxmail.com> <875xyczpzm.fsf@email.froward.int.ebiederm.org> --lwua24korejtob7w Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 25, 2024 at 06:29:33AM -0600, Eric W. Biederman wrote: > wenyang.linux@foxmail.com writes: >=20 > > From: Wen Yang > > > > Since these static variables (ue_zero and ue_int_max) are only used for > > boundary checks and will not be changed, remove it and use the ones in > > our shared const array. >=20 > What happened to the plans to kill the shared const array? I agree with removing sysctl_vals. I wanted to get more info but was not able to find much in lore.kernel.org. I was wondering if the push towards removing it had been discussed in the lists? Or was it more like a conference hallway discussion? Best >=20 > You can still save a lot more by turning .extra1 and .extra2 > into longs instead of keeping them as pointers and needing > constants to be pointed at somewhere. >=20 > As I recall the last version of this actually broke the code, > (but not on little endian). >=20 > This one if the constants are properly named looks better > than that, but I don't see any reason why you want shared > constants for such a handful of things. Especially when > it has proven to be error prone in the past. >=20 > The only people I can see who find a significant benefit by > consolidating all of the constants into one place are people who know > how to stomp kernel memory. >=20 > Eric >=20 --=20 Joel Granados --lwua24korejtob7w Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEErkcJVyXmMSXOyyeQupfNUreWQU8FAmX8RB8ACgkQupfNUreW QU9fSgwAlbWex7MGOQ7kR1UgahM25aVbA4W6xidoG8TRcCy2hWHTfvVx88Jv8c9n nxUe00W5BJwV6cgalwrqD0X/YOCsJQfH1TvWqdJB25LzqmrQdm/PKaHAWu5j7jAt k8RTQdGh/X9PNwuf1P+yatuemBkHbJmAfDYt+bHf+8+rmz+iJn5MPFiysRfy3u7w SLkHLg1xZqydT++WXQ6ZnDY0L5InVGxo/ZjpYuG27zxQdCa/ngt7fp0tVAzJB9+K u9DnMtR3c8SRRpB/ClmeZuDma7ayom+hVG5Gyjxocm9mnwuZ2wYssgKhOPnx3ufC M21PiqKgxdcgNmo+ma2E/biEn3WDwGFi1q1LzZUsEwp4CIbpcWg5+Gq4wFEn8MgZ GgDPIyNHN91Kp3ZcdTqH54/iv+S3zdMzQc0C4SEo1EJHGT+0iSPvM7/Fog90kqbK mhFOrh6B6kMIEyyiUa40UVeXzWHDhAMribxCihfE2tno4x2RRrdEOxOXcXmoFwJ+ M/lAdy8p =F3Hy -----END PGP SIGNATURE----- --lwua24korejtob7w--