Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7106491rwb; Wed, 23 Nov 2022 02:09:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7CwtkhqU8VWdfCLow+Hh8pfWS45O9RckmzCytIGEriqrNv9yIuW41yEao1Cni4R4c66eTl X-Received: by 2002:a17:906:3b88:b0:7ae:83:5be7 with SMTP id u8-20020a1709063b8800b007ae00835be7mr22576947ejf.139.1669198143021; Wed, 23 Nov 2022 02:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669198143; cv=none; d=google.com; s=arc-20160816; b=IkzKEt+HHTH9FVh9LfjxrJSyBDzFCzkMA2NI57yxu+7MMSj4HJK6oWQrwRPO7nf1K/ OHwfLFRujEENlkE9GBODQqw+IFeqUSBeE0IVYsz8bqsHJsPbqaZnuf5cG+4nq7j/c38G YeZ5gxrPimXpbrRdo+MFLmDnPPGcCI7H3jjzRMcV62pEI/rrZGglzdnUyTExXRX0kXvF O4mzrYpLQkYMX77OnWmF6PYXA+E0rIKziyEDm4mO1nF2t7h/PjsfDtrsxgeq9dVOVDrC b1iA0SMQwtjb0bLbyLrbu64iiMIimuD639q6oitBHBc0xAatgmPAwIJfPMlns1/8XuZd K8nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/JvhkIMHaE9tMvv7uV8gHbGibKRYLhWKCV1r10ib1SI=; b=Qu0JacmGIdBD6dsZ4aBGQl3yXqnH3nmyBlAcVTm6YLZCeL+WTlifZCsLw+93a80tHz 6jGA2y4TjMfqpUIX2ZqmcX7ZargiPzjXyQPxdZJYG2VaqiayIU+aytI8Tz7uBzq8n8oW SA9b61znFVN3y/v9x3yyVkEe8DWnkd+cMyFjXKmJ+gbgpwCaVofE6FHFUFwLZT5aMwsq kqtVHmhvPXufaFr+lQ3uraU46fftx5M5VgKQa1qPYaF3YVQIm7SIIiUbrTv3UcxN2AFZ 8oZq1D73L/TJN1nRZ73zvavedKYRZbKITLg6adMJraGu+jwO5ipBGwYnhdMOWjYCM9yx M0lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FxvBzNBm; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv21-20020a17090760d500b007a5cdd9550esi7850061ejc.201.2022.11.23.02.08.38; Wed, 23 Nov 2022 02:09:03 -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=@redhat.com header.s=mimecast20190719 header.b=FxvBzNBm; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236697AbiKWJwN (ORCPT + 89 others); Wed, 23 Nov 2022 04:52:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237282AbiKWJvC (ORCPT ); Wed, 23 Nov 2022 04:51:02 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7BA365D1 for ; Wed, 23 Nov 2022 01:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669196853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/JvhkIMHaE9tMvv7uV8gHbGibKRYLhWKCV1r10ib1SI=; b=FxvBzNBmiZALtlkvEEuBOqLWXyI7iFj2IbfFiZZ1NltqV9KYMQL1KK+D2WeP2YCdcFrgDf 6TI+gMcD7vp0JjlyVJ27GV6JWzimQ6qhFfE3OMsoXv3P1nOGdNGcHEtgT6WKDMLo5o8nAW 8HbdABSm/PwerLNqu1IVjRV8CMAv2tU= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-186-wcLG9FRXPSiJz2FVZjmd8Q-1; Wed, 23 Nov 2022 04:47:31 -0500 X-MC-Unique: wcLG9FRXPSiJz2FVZjmd8Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E70B73C0E460; Wed, 23 Nov 2022 09:47:28 +0000 (UTC) Received: from localhost (ovpn-13-118.pek2.redhat.com [10.72.13.118]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 054CB2166B31; Wed, 23 Nov 2022 09:47:27 +0000 (UTC) Date: Wed, 23 Nov 2022 17:47:20 +0800 From: Baoquan He To: Ricardo Ribalda Cc: Eric Biederman , Jonathan Corbet , Sergey Senozhatsky , linux-kernel@vger.kernel.org, kexec@lists.infradead.org, Ross Zwisler , linux-doc@vger.kernel.org, "Joel Fernandes (Google)" , Steven Rostedt Subject: Re: [PATCH v1 1/2] Documentation: sysctl: Correct kexec_load_disabled Message-ID: References: <20221114-disable-kexec-reset-v1-0-fb51d20cf871@chromium.org> <20221114-disable-kexec-reset-v1-1-fb51d20cf871@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221114-disable-kexec-reset-v1-1-fb51d20cf871@chromium.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 On 11/14/22 at 02:18pm, Ricardo Ribalda wrote: > kexec_load_disabled affects both ``kexec_load`` and ``kexec_file_load`` > syscalls. Make it explicit. > > Signed-off-by: Ricardo Ribalda > > 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, LGTM, Acked-by: Baoquan He > > -- > b4 0.11.0-dev-d93f8 >