Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2547998rdb; Sun, 3 Dec 2023 23:53:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEphJvx5Kp3yhNNWIOFEJgqpCoVe1h06I8bovwGM7T8AzVyc7/fSZOWm+T/3vjjP1vVtNQK X-Received: by 2002:a17:903:1104:b0:1d0:6ffd:6e71 with SMTP id n4-20020a170903110400b001d06ffd6e71mr1650197plh.105.1701676410792; Sun, 03 Dec 2023 23:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701676410; cv=none; d=google.com; s=arc-20160816; b=DiSY7/Z0tK/bJYf/Gjh9YK47gYMzLYli5wIWT1U+l4bbZI48btuH1POsj+VjPmTCiy u1q3MtP7XETZCfEkjFHzYk90tgkFuDAdixBsKfqsbxPEwXdZqo/ZBV6G7v09KRASLR5C rSE2K1/hSbpQsVl0q4C8TbxT4t/Vwhl5YvineDpjyLSrAf51+bVwKXEtIrC6Af+dR7Ij leSObMPwXbk2J32NVzBYwpox9SczvzgUWtKAn46Wro8Ipp+tavmpvoWFMNcnPnINhybQ ivUET5ke+YoeRvGLVeEU34QQjvP3ChS0QZSxZzdjGVPXqRCN+WL3XdU2wph5mA/XtdCV l5fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=6Yqqui9bXg1aZZph40lrWAW+x9l5M+Lv4jgShBjVIEw=; fh=1v5zqbO9sIGUc9bsdyhYE0zxdK1knZz2xnJYWUWMFKo=; b=wqaU4AiH/bpMrfEU+DMk8EusrxWwmdEteyPZbsXuHk8dA/fAhYWuOWmPySvZc4m3OI F+AMrV9OxPgPSPAB+z0nlf1eX2BcufLgkauPjBaPT2PnxrK/j6R4mBacViju7QqptiIo JVl52RxWQvKxDqGz+SVmKGxs9DrWjDzLdIgkAZPJKRY6JWaOiMtrRbWR974Rzd8jiXJk isXkxZUqGgmDrA3A4hlECfQz7+wRimspDtSggsIcxZm63C3jWp6LGqjgL3cE/XuoBAN4 memK96kTSrx3iiLA09lFQTwoDZqK7W986GGWcLUhvBTQmba13O/TJWChlFh4xYzdjlW8 dntA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=STO8kui6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z6-20020a170902834600b001cf9e86314dsi7166753pln.637.2023.12.03.23.53.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 23:53:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=STO8kui6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5EEE480659BA; Sun, 3 Dec 2023 23:53:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343614AbjLDHxK (ORCPT + 99 others); Mon, 4 Dec 2023 02:53:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234745AbjLDHwr (ORCPT ); Mon, 4 Dec 2023 02:52:47 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 989AA1A7; Sun, 3 Dec 2023 23:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1701676352; bh=iOBuDxNgWayHfZg8ll4jl4+gQO+POEL5ZSXO0IYskQo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=STO8kui6mbh1g6598MiaxLRX5mQc341d0YjLWS7Nqws1kfRzH1lwxwoSt5ziD1VFK aSwpZnNYfLd9cTApCGEXs0XYNCcDuD8ICVixi2JcvAH+kMfhWhB0uQW14hHfUy14Br 1s7Tge5tpoCyCqnF10AtWRGzNJCAb5+Q0gLsx8Ms= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 04 Dec 2023 08:52:31 +0100 Subject: [PATCH v2 18/18] sysctl: constify standard sysctl tables MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231204-const-sysctl-v2-18-7a5060b11447@weissschuh.net> References: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> In-Reply-To: <20231204-const-sysctl-v2-0-7a5060b11447@weissschuh.net> To: Kees Cook , "Gustavo A. R. Silva" , Luis Chamberlain , Iurii Zaikin , Greg Kroah-Hartman , Joel Granados Cc: linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701676350; l=624; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=iOBuDxNgWayHfZg8ll4jl4+gQO+POEL5ZSXO0IYskQo=; b=bcxZcbAl3IUbAiyq3MmFXuykvVpQnzM+YWbExIJXohNBpBz3JEWJo7sT7X/oXLjwCNCq/Uf7w /af+RETE8JFBNjQumlPQ165901a6AM1OKKo8JHVeUGKYxVfkiX6XZfN X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 03 Dec 2023 23:53:26 -0800 (PST) Recent changes in the sysctl allow sysctl tables to be put into .rodata. Signed-off-by: Thomas Weißschuh --- kernel/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index d60daa4e36fc..e48a60887c7e 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1615,7 +1615,7 @@ int proc_do_static_key(const struct ctl_table *table, int write, return ret; } -static struct ctl_table kern_table[] = { +static const struct ctl_table kern_table[] = { { .procname = "panic", .data = &panic_timeout, -- 2.43.0