Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp421037rdb; Thu, 30 Nov 2023 08:09:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLCFuw1uyb4uQhTY4MFpmEKR7KbyYGgz22WDMOn6tmXFmIBev1zIORoxOFxBQupoqfGKZZ X-Received: by 2002:a17:90b:1e0c:b0:285:b69c:cda3 with SMTP id pg12-20020a17090b1e0c00b00285b69ccda3mr19029390pjb.43.1701360562919; Thu, 30 Nov 2023 08:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701360562; cv=none; d=google.com; s=arc-20160816; b=RyhVXWjTEKa0QdRCEHI0l3b6ewdnRoreOYqv5ClI/VAdw/bkStHQ1uaWzcEbmb7eLx LHPJSq27Fz/P9tS6IAXGKtKvwcpTDmMbI3U6SErg1zklmL1Recqng/uRxEz1ciPNV1/Y RrH5qqRIHTWFADUJZQwWjbRqs+7QMyWOiR6DaVrUFS2gf77jZ8+K3FhIsksp9bAhyCqA 5j0pkaZcsbjuPc8o3Mvpp1WSfLwM+9MJJD31hnK/UqQsM3EvK9kS4nu6DukQe8TUZdLY Bw4fiDhBVxq3MGJKgiSH9OVo+JKH86j5YQBS6WKL6VPdReJn4cNaAzdyoyl7Y96DJ1ep 0Ppg== 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=zTZtvACEq3f++TrUvZqGHtgrh6jfU8EyKSKKffsszfg=; fh=x7tgAp3UTdwCJoo3nncPbyjpkD3LzARVzJidJz0MiQY=; b=tFpf9CMXq9eLEpB97Nk1E/+WotM4bpawCI5NunttEQa2lFEUb3NWXTd7cH4ZJ4OaFC 8yQaNzHJ9pVRAbT3kA0md+tsgNQutMT9Q4iOzHgj7MfzM33VNcNW1OE/+qWs8sovEnxK jqjWU3gKvsSK/3uTRzGDhvDcUXxuvVSiSGvHMi3BeLzI+Cyz7B9fnR65vbwj6ttrjHQk FiRx/O50CC4OYkYDKIpy2U95HR/mZWwWA9BwApWhUXGy8tfc+gnbTYzWKnZZTUVKh9c6 kSreNHlY4qowZ3FS4dBasvuri/nbiK7cU1BWFRcIbaOTDK8hA3C9CXOlSk4vEoNmVCvS g2YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="ZmVb/fcO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t13-20020a17090a024d00b00285e003c75csi1588892pje.180.2023.11.30.08.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:09:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="ZmVb/fcO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 43914802EE5C; Thu, 30 Nov 2023 08:09:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjK3QJG (ORCPT + 99 others); Thu, 30 Nov 2023 11:09:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231837AbjK3QJE (ORCPT ); Thu, 30 Nov 2023 11:09:04 -0500 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85DB610D0 for ; Thu, 30 Nov 2023 08:09:11 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id D8C5540E025A; Thu, 30 Nov 2023 16:09:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vmHrqSSke-0k; Thu, 30 Nov 2023 16:09:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1701360547; bh=zTZtvACEq3f++TrUvZqGHtgrh6jfU8EyKSKKffsszfg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZmVb/fcOJfZOj0Ym/Jmy7Yjv+6UCd4lN0F7aglUEE+40lemBTbWTx2PDiJbgG8OBm 00Busuq/B51qRcsDdCuVqsl8f9rX+Ox0Fz8mEXzOlfNL1HkAUvl3y6yyUPcBLvDcbE sq9dUDasOE7PFfM9T6dQCDB5MUrkG5A+oHnBnz66SUb/pTCeLpgXKsppnz4GUXl9xP me7pOFLPolGo+PLEGTBMzkxtgSWJ8n1qlJVFXMdKoVtGy1vwwULkAk2Il5SFgvJCfm He5kctnnJE3lNt7TSha2zcIvYY3Qn3aGPY3/eaE59QO1jQIIrT+23/ThI+tR3Cxp0q PVNaUPO0CmV9MPzwl+HPC86ofPGjjFcqfsPjnQED/EiKGplAhI1UpWtf/RIrOxqru4 AEeSBMowXxlgaM8kHLdTGgusP6fqePOMOfWUwR4ca4GKaRjMvxBi7YxSxKeghhKfTb NmCRwZR15O3OuagrNNmIlSi8wyWc0MFKi1bvLqRID411/mH+HMInY5VVMRHCQNWe35 cDZubK7fRFN6F6/Avckho8LvhQAZDm/ii1KkojAe16PrenvMOzctBZonOUh/wT2TnT o08LcTdhGdR+5f3JGntTkHEo5zXKXGkP4c+YYfs4NvGYOa3OgVMYhNgfS49bS1N+3r DuGsWaQhX3IYNv4kGyDzqqEg= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A9F9D40E01AD; Thu, 30 Nov 2023 16:09:04 +0000 (UTC) Date: Thu, 30 Nov 2023 17:09:03 +0100 From: Borislav Petkov To: X86 ML Cc: LKML , Nikolay Borisov Subject: Re: [PATCH] x86/ia32: State that IA32 emulation is disabled Message-ID: <20231130160903.GJZWizn+dPaaViFVKN@fat_crate.local> References: <20231130155213.1407-1-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231130155213.1407-1-bp@alien8.de> 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 08:09:20 -0800 (PST) On Thu, Nov 30, 2023 at 04:52:13PM +0100, Borislav Petkov wrote: > +static inline bool ia32_enabled_verbose(void) > +{ > +#ifdef CONFIG_IA32_EMULATION > + pr_notice_once("32-bit emulation disabled. You can reenable with ia32_emulation=on\n"); > +#endif > + return ia32_enabled(); > +} As Nik rightfully points out offlist, this should rather be something like: --- bool enabled = ia32_enabled(); #ifdef CONFIG_IA32_EMULATION if (!enabled) pr_notice_once("32-bit emulation disabled. You can reenable with ia32_emulation=on\n"); #endif return enabled; --- Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette