From patchwork Wed Jan 4 14:38:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 38959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5178549wrt; Wed, 4 Jan 2023 06:42:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSVQgxPYZopx3NWbHWCe69OP36nD7nPqIisoBsQPnknwmkA0iP+Bb2vgU7Y8Sw6BuGeubU X-Received: by 2002:a05:6a21:3294:b0:9d:efbe:a122 with SMTP id yt20-20020a056a21329400b0009defbea122mr74173374pzb.50.1672843378655; Wed, 04 Jan 2023 06:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672843378; cv=none; d=google.com; s=arc-20160816; b=X3nSqWVr+wrPx87v7AF6JdmcuOUsB/LTXTosO2OMfXFUGNltbEBpqlyHs1b1D3apTE bx06ceesKIFdxSTRqOpVAwaxQOLsTUxQNiNhqJRiJfCy/fetTJ36Pd3Pl3adavX1qskk If3GAzXEuNxrDcrnhusim2XrmQA+1PXB47QnZAdSZwTb8qMfxN/gja5bC7fxPKUyz0Q5 gjvtSRKpvpmQk+3BFNHD7Sacg2XEw1cSv2wZRqEB718yvoYBRkdh7zGzQcPwD7lVu3RN RnMbSXdYhLI6UfkfTJStIQ9TdwKJmEn0SA3nQpmYQ0TI2z/hrC9SmZaK7b12MlEGtfFX vXEw== 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=CYYQgh/lv3T9poZ9Kbn1xfKKla/OcUPaY2NVZr8/1wI=; b=I/IesttV7gWm4FOaRPKNQYHtNF6nth0TPidCwlm+iXCY2BCBfcl50J0Y2YCYTzKSd+ rRWmYcckWteJEU7trHrCcQ2yzrF+C5Y6vexwtpn3d68ltg+8a0TZJWwAMdr8kv6uiPs4 9yIucS/VNgUOP/Ro46JpZsQZ2vS2UeOLcgBeNOs9oXpXktdQvib+njOgnZug6HFpxpH2 Xv/OOLizqI/pEuDjMLRZZyu6VJXebzVl+yXPSVbhaGgnThoQx1a1hNPOV+PQWVEYdgDl VMDxQ5yOoR+x5sFz9usvJZZkyhCNK6U7VGy3UVzWpduPxQmvFSMTenW17gEaMhvT3EgE ssjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TPhzP6VD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm18-20020a656e92000000b0049ca23dd532si20925053pgb.109.2023.01.04.06.42.45; Wed, 04 Jan 2023 06:42:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TPhzP6VD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239354AbjADOjP (ORCPT + 99 others); Wed, 4 Jan 2023 09:39:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239301AbjADOjM (ORCPT ); Wed, 4 Jan 2023 09:39:12 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F4E26167 for ; Wed, 4 Jan 2023 06:39:10 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id tz12so83091307ejc.9 for ; Wed, 04 Jan 2023 06:39:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CYYQgh/lv3T9poZ9Kbn1xfKKla/OcUPaY2NVZr8/1wI=; b=TPhzP6VDMUU3QtDkGKBz2ODkHY5IHPZJLk2AHghZRhDppkwIzHLh+ClSZSi7dOkdEO djNbFLbX/qbVhko5HtmYgh+KwUPHIj6YbIq8IfqKDrqPxZwEVo1ZnOcnm84WOikjUIXN 84Nn49z3bmZGZyGjFWM0g31CC5lEjul+7e7vQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CYYQgh/lv3T9poZ9Kbn1xfKKla/OcUPaY2NVZr8/1wI=; b=4/5lzIax1ZRT/pm98zsO57kdRzz3uKB+Kw0fsLGOHHZa6PrPJgXAHLbyCDyiJNErm8 jkcrpB3f+BBJj8psFa6uRFB1yO08D3NhucCofMEBXG7+Qz6zonOB9aoWSk/j7mcseVLm 65r0rApw+ad4u5YprQLl+haiky1M5CVdaB/K1h0XsQIozLh+IZysYFie6c/iiTIPoKUb d5Cz2D6aEZUOafKgVDo+2jK3SGKEXCkJeh3t9SLnpiwfkrKYDTn092tCzBOwcVvFoMBo cLme7dItgzeJr0/ZdaUW9cJnNmwoLPPcD7rQD1I0WplsTawxy9G3Qbv2zc7H2myl5iQe vRyQ== X-Gm-Message-State: AFqh2kq0DjqVSqT5nshLilaCboBojsa3q+kXd/VlhmkonPlTGybpuV/M aTlJtfSAUOhafVNgx+m3AWo2HQ== X-Received: by 2002:a17:906:5dd2:b0:7c1:7010:f413 with SMTP id p18-20020a1709065dd200b007c17010f413mr44805532ejv.19.1672843148794; Wed, 04 Jan 2023 06:39:08 -0800 (PST) Received: from alco.roam.corp.google.com ([2620:0:1059:10:a438:c7da:62e0:36f4]) by smtp.gmail.com with ESMTPSA id c8-20020a170906924800b0078de26f66b9sm15386659ejx.114.2023.01.04.06.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 06:39:08 -0800 (PST) From: Ricardo Ribalda Date: Wed, 04 Jan 2023 15:38:46 +0100 Subject: [PATCH v6 1/3] Documentation: sysctl: Correct kexec_load_disabled MIME-Version: 1.0 Message-Id: <20221114-disable-kexec-reset-v6-1-6a8531a09b9a@chromium.org> References: <20221114-disable-kexec-reset-v6-0-6a8531a09b9a@chromium.org> In-Reply-To: <20221114-disable-kexec-reset-v6-0-6a8531a09b9a@chromium.org> To: Philipp Rudo , Eric Biederman , "Guilherme G. Piccoli" , Jonathan Corbet Cc: Ricardo Ribalda , linux-doc@vger.kernel.org, Sergey Senozhatsky , "Joel Fernandes (Google)" , Baoquan He , Petr Tesarik , kexec@lists.infradead.org, Bagas Sanjaya , Steven Rostedt , linux-kernel@vger.kernel.org, Ross Zwisler X-Mailer: b4 0.11.0-dev-696ae X-Developer-Signature: v=1; a=openpgp-sha256; l=1318; i=ribalda@chromium.org; h=from:subject:message-id; bh=2pZFS+1BHtUlFuNmvm1mTYxkgU9yharonO0OzNd1vYM=; b=owEBbQKS/ZANAwAKAdE30T7POsSIAcsmYgBjtY+EP67lwRrCO5L5k4Dp6xvXVoYkuhFXhgRbt/kG 8bQ+rx2JAjMEAAEKAB0WIQREDzjr+/4oCDLSsx7RN9E+zzrEiAUCY7WPhAAKCRDRN9E+zzrEiEwYD/ 4usIWKfOuuGi8xYMQsTa952RC/Gqq3NLfoSqb13IPaxmQxqWWUjQ9uDtxl6QD90QnBoAjD/tSFebtK EapNZosQxrdc+t7axxND9uY17FhOJIKscuu90wrCExbOXav9p2pBlZVk1U8k/WwDAJrH5qMpt7pUvw pGRdxVE80sFSCeFSJCcuNrY0XeAYjO2cxzIuLxLSx7O9za8wFCZF4BMRohyc7tsSyl2EVdZYcemr0R 4z2XLsWYVQRXjtccMgFRkfCGOOmNW/hXVuV11qDDGyf5CSjfO9R7+6laH01SA3fF0Uk/E8Q+3LCu59 6F5RMHfOoXh38K58UOC8w/U2l5RjiRF2XC4yfmrobAdgnYqmutRHi+Lug8kNkWndLNlewOVKt3Cd63 wlBc/bMdd6ccRlzZ1pU8IMBsdVp1LCIUWq+IttQU61DODNb9Eatwj6wxBX8Qnhg0PvGrK8Cvsaamfp bYOMgQZU49QK2hsbc/aWhMe4mAt26NsDxp87ifiQjgWtpCkBYvj6Su8gg8VEAehX3Nl/1FxQA05HsT xSHhehNI5G5pHHslJ5HupPSSbvcOEZO5knYX2C0pCmWn3Gji43SAmKZSHJ3DE3zeUe5bJZlTJLZHBw XTSGECyozGv6ERamTopSA8x3YabJeqxtU79aXb9q9mYqfk5MxwYuXUKki4aw== X-Developer-Key: i=ribalda@chromium.org; a=openpgp; fpr=9EC3BB66E2FC129A6F90B39556A0D81F9F782DA9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754103418335566930?= X-GMAIL-MSGID: =?utf-8?q?1754103418335566930?= kexec_load_disabled affects both ``kexec_load`` and ``kexec_file_load`` syscalls. Make it explicit. Reviewed-by: Steven Rostedt (Google) Signed-off-by: Ricardo Ribalda --- Documentation/admin-guide/sysctl/kernel.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 98d1b198b2b4..97394bd9d065 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -450,9 +450,10 @@ this allows system administrators to override the kexec_load_disabled =================== -A toggle indicating if the ``kexec_load`` syscall has been disabled. -This value defaults to 0 (false: ``kexec_load`` enabled), but can be -set to 1 (true: ``kexec_load`` disabled). +A toggle indicating if the syscalls ``kexec_load`` and +``kexec_file_load`` have been disabled. +This value defaults to 0 (false: ``kexec_*load`` enabled), but can be +set to 1 (true: ``kexec_*load`` disabled). Once true, kexec can no longer be used, and the toggle cannot be set back to false. This allows a kexec image to be loaded before disabling the syscall,