Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp225797pxm; Wed, 2 Mar 2022 14:01:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVO3ZhYnb69nun3o+kEaZV/Q+3+oEFlNqSinZ3xW6d7lE1YuXr6Q7/7r7zYnh8w17hQ8nh X-Received: by 2002:a50:9986:0:b0:413:bbdd:d5a1 with SMTP id m6-20020a509986000000b00413bbddd5a1mr16589834edb.26.1646258469872; Wed, 02 Mar 2022 14:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646258469; cv=none; d=google.com; s=arc-20160816; b=sHeyC2WYhW3K5FiT12b3zvmuFzwaJTn9DU0Zg2o7b0a85AHqOwrs56wqiexA3zy4KY 9mCzYNZkbX+8e0uAt2jacW2GnN2nSqOILKpy0lrJ1oaXf6e7lwjplOnB4uBb78mnSHft QNJOaHF5M0h5wGOoLr0heFxriTqMyZ9V9AUXKBz7NSJMbfftYNR4Y6aJB/TDoegEcNJy iqrCpkw9lNMd4wSGprONQu6hoJbj2VVyCgKLcXQIZ1iKSpb2SGDVgUo0IfziC8+4QINW NRENyJibcSvsT++ScTaoBWB9exNLJYuZFsgOlkZMM9zNMWXYgDFr14HC9Ew3qRw9bxYJ qgoA== 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=h/juSED0BY9xQegEP1aVPjnNsSWTmusjEfk83FwsvqM=; b=zzv5mOmIN5fRsTGek9yv3v4BhZKajHCEVopLYnVGvtzcAJzg14sZfBwr+L64OQezpz bnV1BA3XRheSUWT7EKvcu3YX4AVn1pWLmMsPnlmKhLXgxdLcijSUuIkPHVn481zMj491 guRoj8jj6m9g1Nj0zWaTdyeI8BV5tgjhC26psrblexS3M5f1RKmd1Sgsq4n1jxiwBT9d AxbKQhYoV1xyCHDLpaLXxwrFdmzy+Bg1QazDyZP4FTk5pQ36YQkylW/hrMaf5q3S6N8Y FwWuCzDHCZMvtfep1VJsJLz7IPAvt4n4WVGdZPOsKZmr0vT5t7a6kP4gjmL4jNHLchWB o4iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Fs1OmRa2; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv17-20020a170906b1d100b0069bbb44ce91si170908ejb.167.2022.03.02.14.00.46; Wed, 02 Mar 2022 14:01:09 -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=@alien8.de header.s=dkim header.b=Fs1OmRa2; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233363AbiCBMO4 (ORCPT + 99 others); Wed, 2 Mar 2022 07:14:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241700AbiCBMOx (ORCPT ); Wed, 2 Mar 2022 07:14:53 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D11A23968E for ; Wed, 2 Mar 2022 04:14:01 -0800 (PST) Received: from nazgul.tnic (nat0.nue.suse.com [IPv6:2001:67c:2178:4000::1111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5B15C1EC0453; Wed, 2 Mar 2022 13:13:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1646223236; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=h/juSED0BY9xQegEP1aVPjnNsSWTmusjEfk83FwsvqM=; b=Fs1OmRa2nBarNzvmGsMx5J0+XU7Cj2px3qzr9GEBikZ2ERAwGPc8rWnM5fx9BY+DJc+hNQ cQK+WxT/5qAnoLq3hfRnGwH81WkMr26DllBxUDFT41ynxvowwLbAbLsnV7Oe+tKgnTKuNC WpARMEJ4GWJNaiV6BhIvg6tg5eptj3A= Date: Wed, 2 Mar 2022 13:14:01 +0100 From: Borislav Petkov To: "Dr. David Alan Gilbert" Cc: dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, jeremy.fitzhardinge@citrix.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/mm: Use strtobool for noexec parsing Message-ID: References: <20220227201356.241452-1-linux@treblig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220227201356.241452-1-linux@treblig.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Sun, Feb 27, 2022 at 08:13:56PM +0000, Dr. David Alan Gilbert wrote: > Use strtobool to parse the 'noexec' parameter rather than open coding > it. > 'disable_nx' is changed to a bool and flipped to 'enable_nx' > so it's meaning follows the command line option. > > There's no change in behaviour for noexec=on/off. > noexec=junk will now warn > strtobool allows 0/1 and y/n (etc) as well as the on/off. > > Signed-off-by: Dr. David Alan Gilbert > --- > arch/x86/mm/setup_nx.c | 16 +++++----------- > 1 file changed, 5 insertions(+), 11 deletions(-) https://lkml.kernel.org/r/20220127115626.14179-6-bp@alien8.de -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette