Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1535062lqp; Mon, 15 Apr 2024 09:07:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGNaKquD7UluZmy+EbolSJMILUyq7YDv2V9P1j4DHjSrpZAImtkkiKIjoHf+/kYsRNLHwXYBnDuPorizoJDJbg7bAiglaslR1XnkiwLQ== X-Google-Smtp-Source: AGHT+IEpn2XZ9SMvqpH/kCaWGDZ7SEXwyDWXKi4n7wljUZIn5Aw9qIzkwrIHJls6NGsYsPl1M45p X-Received: by 2002:a05:6214:4c01:b0:69b:a44:bb71 with SMTP id qh1-20020a0562144c0100b0069b0a44bb71mr8997156qvb.54.1713197236330; Mon, 15 Apr 2024 09:07:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713197236; cv=pass; d=google.com; s=arc-20160816; b=bxpNl8LaW7VSqSYsNcnIna4mIVlgq+7eA21YMicZVIim0E0dI8W7swF8piwHianmlo vH9natBkYkRZ/jb33F/RLpBBjpvstTc3tAIs0U268UejUENPwYl1rZgmkQ1QnZMONl2g zjrhVeBaO1hmqzBCZ1OFTTkxr8ybgPm/BkXwZcT5e6JhiCPT4d+llw9MEAInDoPO3xYn OPIqjD8yzlCw8cc8DYASKom0dXy0gJTa9KIUC1SAkjP9CiUlcKVlEM8fNzBnuSAlkvKD YNS/+5zPxLDkFqrRpqPBJ8t1eiPphpxZHZTZDHT/ZY+Gf8HjmrhvAfBY9g6rq7wkBfYm FkTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W9YkT2PBxlsTiQpc9k80Xb2w2qGzzlQLFXvx15ENFSo=; fh=9nouxcmctuBv6iigYGU6SI3pA78xVJ0/LvKxvl5hSAA=; b=Cd7n8v7qj5XFYXQmUHSDUtFt2RRHLydCwL+fPg9hsaQ7RnNcqOXb4aupmhHDaheVs7 Ks+u9WTxIF7exl3CaBlmzh5fYcEXJQHYkeFVvoFbB8DW94PL2rP/yEfXmY6y+vgYsmAC 9lSVSilbaiq7m3oUXCB0z0ltMnyJMV4EuKluBKb3Q7crZ7e22xqe+YYt0W8Hqf5wTd6x UQ7HLpb1ZYmFwGAWLoKyssCnsREQQyxVuIYzqp+kBnTaRVVce80GXOcUPU2zDysqdfvG cKy686LtXgumhITHhD55Vcdn+0Efxu8r+xkeOw/+5gxymkIazFDKQkZf0cmt/hneD+HM ahXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=O8xv1am3; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-crypto+bounces-3543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jk8-20020ad45d48000000b0069b4fe05694si11221812qvb.483.2024.04.15.09.07.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 09:07:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=O8xv1am3; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-crypto+bounces-3543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 114531C220C7 for ; Mon, 15 Apr 2024 16:07:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B09CB823CA; Mon, 15 Apr 2024 16:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="O8xv1am3" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 0563C7F7EF for ; Mon, 15 Apr 2024 16:06:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197203; cv=none; b=X97v+2wLis4Wrzc8DnGEGosCNMra/mNVHZxqp/HsteKmXQk9wi/YRAq9xX7r4j2oWUMnOwJ9/OmhTE4swpfDwQUsqMVo4vVtRHuDJ8Wxv3oOjzMxSQoTtMM1KOWDhVXCDjpssv2JvS0rbn3vGOK7nqZdSsrxJVvRXVXXNysJ3fw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713197203; 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=sjUBuLajDNfRct5bt91ipaFyORcZ286du7hreCQnYxWxY63A/SOr85qGZ0ZP37f9+jQWTG9DIQvohY9SZ1BqjIkemiIUuCSzlW3a+3TLaCRI3O0iocDdsQ0jkJpUvA4pwOfxuBw8FEBFPfLco8ip3ok0gVoHP+ASHJsiS8/VpNY= 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.171 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 Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5ce9555d42eso2059630a12.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=k4ubs1iTQsQxhXK3mJRoCUOLXVtqsoAlI576haWtGPxfoJNcmPmu0jW2Ox+C/C2xSf NRSMfPYp+Er+WRQhwuFB+vXtaK5uHwqIRzw8URBDd/hyt172J24YL2hdpT+EAKZ7L75Y 2Od/usoblwKvwKxLsUMA+VSO4YDDHKfF26wVIFF8AdUmoOMvRe6wZ3LwP5ySw+xU+MtY AgYJ+DM8EDeuYkYL4DC3nZqkyQBZpxs63cZGRN9a0rQtGDfkuEVzTDFO6UMXQajo3+Yb ueVObWzZxlyvK2HtH2xExz06jXZsRNkyT4ssUeDsvpMfXvlGVFPsU0+lIhA2tzN+8gJq f43A== X-Forwarded-Encrypted: i=1; AJvYcCXAOlyrDwMCM0rPVMFgx0DSn7vwxQrtx3AClvoVE/wHw3N0j3nTCOYttK/v/LsI53jQ7gtg031tOPaAg4ZYj0hBzsMz+Thq97vVyIlA X-Gm-Message-State: AOJu0Yx0ZtvPIrMKfd1W09D310HzZfwcW+E+0XXERS0EKJCYGxGpdTkW IdH9YPf/oHz3I1lc2Nuzb59GAGw3eMfXk3LpWf6sIa2Bu+WxmwetjvG24vl17w== 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: linux-crypto@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