From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 075647F7FA for ; Mon, 15 Apr 2024 16:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197202; cv=none; b=H7VE8ym8Y2xDRQQC7KvDQ+VI0ZD+//5AOjn5A+69xhuyqRnSPXnBoCOjWoE2vLEytVtSwDJS5k4daVi1Bv/SmUjc5qznSbVoXKYnQPRoiGVT6SJUNjqXqes+OZs+Qe/s7OrRezogzYNHdio60Twww+Ha6RAzbts+OjUXAHmYB6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197202; c=relaxed/simple; bh=TbkoZcrC73ReILBlLCzDk8hBya5REumqV3/XGRD0RBM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A7XbET735NBV4hX/BC+Rjd9FjFKY540VcYxb1AlqokU8sggVSR/DN8dkup/s6pmMbdbtgQxbF5nmA0fkmbESq07arJ7C9DUVOt/Qwg93j8dTLIyq+sjfe1wmDTXkkoQTu3F7WDxyQtX+mAbuFPm8DReJNFBRjUD2jotT3mudpJo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=O8xv1am3; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="O8xv1am3" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5ce9555d42eso2059631a12.2 for ; Mon, 15 Apr 2024 09:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713197200; x=1713802000; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=W9YkT2PBxlsTiQpc9k80Xb2w2qGzzlQLFXvx15ENFSo=; b=O8xv1am3Lk+DQ59W9cNWa2OG2Fks5PZkZcv6Z6Pfi7Uv5Oy1Av7RnTmnxj3FUYOm5V yx4o1he5W90asuV36XyOe0antbXBxeK6gi/EVqhCphP56lqegAsztJrs5wGp912uqAFQ L131duRGarDG1vumEdOdHiU0czbOW9+JxRfTA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713197200; x=1713802000; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W9YkT2PBxlsTiQpc9k80Xb2w2qGzzlQLFXvx15ENFSo=; b=JJycNPGsOaXvA6D38A/FNVj/XR2nZl5KQf8j/8o6gupKVcp6clJix7ocjllEJbwO3v QW2FuNuS2izjkIy30LJyhtGtscBN+L82awfQpZdQEdk2JnemXRs8YfKZ5PvKFx2GZXvl HiH3AaiDJi5rxS/kauQ52wABtoTn/cFIQ52WkW2H4xLLoHRfNa0Cp9WTSYYkrkrjS7Ez 1iiS+il9qNhvGlOy6z5KSLNksYrOMKPN/z8GiSNzjaav95+IAqehSt2dccFVq875S+re VhV8v4MPtSgvJxt73+TUHcmv+wvgaOqa9YNtTDyMDo6NV4C7exdePm4Y6gec0BGP6AIu qCFw== X-Forwarded-Encrypted: i=1; AJvYcCWcUtnPZFsJlueNkhYi5OnRaeOOR3hw4fc1mvB2tmhkNicgHwhG06HoYAbM2OlUsOMrsFY+ZIDLvzxRtsRRyneWtY3Gd8Uub0g= X-Gm-Message-State: AOJu0YzVteJwy7aWHWVTs8h/8hscbQEFAijqDNwDbeM3jH02rCdOSqwM U5CAJYnMXFL+Q6RaGbYd7wpgmAA1aS6jj0+vsBe0ooQ1Dslw9nl3nmFOuPejYA== X-Google-Smtp-Source: AGHT+IEOd/x1N/CPtx25Nf+PUqf1rfZqa2mTy1XxaxcS7HXEzP+ucQDv/NhrafY/fDlqqKtbbV3LWA== X-Received: by 2002:a17:90b:3d3:b0:2a5:ba9d:a06b with SMTP id go19-20020a17090b03d300b002a5ba9da06bmr10113697pjb.5.1713197200332; Mon, 15 Apr 2024 09:06:40 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id l6-20020a17090a49c600b002a46b925e99sm8796108pjm.18.2024.04.15.09.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:06:39 -0700 (PDT) Date: Mon, 15 Apr 2024 09:06:39 -0700 From: Kees Cook To: j.granados@samsung.com Cc: Andrew Morton , Muchun Song , Miaohe Lin , Naoya Horiguchi , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , David Howells , Jarkko Sakkinen , Herbert Xu , "David S. Miller" , Jens Axboe , Pavel Begunkov , Atish Patra , Anup Patel , Will Deacon , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Luis Chamberlain , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, io-uring@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/7] security: Remove the now superfluous sentinel element from ctl_table array Message-ID: <202404150906.C37D8D9DA1@keescook> References: <20240328-jag-sysctl_remset_misc-v1-0-47c1463b3af2@samsung.com> <20240328-jag-sysctl_remset_misc-v1-2-47c1463b3af2@samsung.com> Precedence: bulk X-Mailing-List: keyrings@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240328-jag-sysctl_remset_misc-v1-2-47c1463b3af2@samsung.com> On Thu, Mar 28, 2024 at 04:57:49PM +0100, Joel Granados via B4 Relay wrote: > From: Joel Granados > > This commit comes at the tail end of a greater effort to remove the > empty elements at the end of the ctl_table arrays (sentinels) which will > reduce the overall build time size of the kernel and run time memory > bloat by ~64 bytes per sentinel (further information Link : > https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) > > Remove the sentinel from all files under security/ that register a > sysctl table. > > Signed-off-by: Joel Granados Acked-by: Kees Cook # loadpin & yama -- Kees Cook