Message ID | 20240130104543.28840812.hanno@hboeck.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-44316-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1107632dyb; Tue, 30 Jan 2024 01:55:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzqqc3rc/Mzc1S2N8mfphycGL4nx3/fJkdpNO76LdAN441VQw4C0kQ/RIFvvET+HXq+ox4 X-Received: by 2002:a17:906:f9c3:b0:a31:63eb:5ede with SMTP id lj3-20020a170906f9c300b00a3163eb5edemr7223063ejb.51.1706608530816; Tue, 30 Jan 2024 01:55:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706608530; cv=pass; d=google.com; s=arc-20160816; b=kKlwdsize0xC6fp656ix8FrlhYyEkgZWCZ8EUUCP1qxmi47LzI4sEveD4qnWFgmaRn 0PpvVGpbg7Bj2479W9PCvVNNyatE2SAjf8Adcwk5Px/RutjXJwMy59tbdUPhnVT5f+pn 0OpCviblRYX7LIOA/VxGYBJb6d4mZMShat4HC1Ottah6QFkfm/pF8eOmLbUPXKT8KaqO lMpXTDUB8sjgx3DXiP5z+ciEcuH17xarASDXkbev1FTotCik01VjrZAeB1cEOmiyzL2C l35GEossvD5Je4VcHR5rhs11mjoJqhNYI2KU/dncL8WTQjUSvSlrG5Z84wi4xe3E/8+L M1ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:original-cc:author:original-subject:dkim-signature; bh=trYWNAUV0wSUcmXctj60BCLcFrht8FOcYWG35FtbyNs=; fh=0jXjllVfjnXxplG9DNbjwm1atnl9iVaJxmue2xnv4ck=; b=sjrvf1onbfoBAWzlY+22cgL3Uf5niro2TuNOiDTkwYW148bf61LTe+Zlnww3gSr6By n/MT2NdbknSO+7o6/oJ5e1bEpvIzOC8eHSkIlcUc0n+2ppecfx7XcTHn5Nz2QiaSQF1h 2YzUscTmPx3Xm+OOHirA2zes8H3kYQQliFfxi+AMw0WgSFXs5lq+AhywrI9R2REJTKst cclb7pRw43hPwnS3eSiqY88Vz0MZWjwkmxpvFMZiZ/Md7MfoajQGC4kQd1HmkVTFBa+x 5xRPaQ5vt4mVerahyuZRU4hwp0fW01Bqs38n0NowXBpPd2sMadhfF5O+upzt9gvXyZ+j 0PwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hboeck.de header.s=key1 header.b=WS6HwZcH; arc=pass (i=1 spf=pass spfdomain=hboeck.de dkim=pass dkdomain=hboeck.de dmarc=pass fromdomain=hboeck.de); spf=pass (google.com: domain of linux-kernel+bounces-44316-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44316-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hboeck.de Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q19-20020a170906771300b00a2d224dd5f1si4347027ejm.417.2024.01.30.01.55.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 01:55:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44316-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@hboeck.de header.s=key1 header.b=WS6HwZcH; arc=pass (i=1 spf=pass spfdomain=hboeck.de dkim=pass dkdomain=hboeck.de dmarc=pass fromdomain=hboeck.de); spf=pass (google.com: domain of linux-kernel+bounces-44316-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44316-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hboeck.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6BF781F23847 for <ouuuleilei@gmail.com>; Tue, 30 Jan 2024 09:55:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B8F460B9A; Tue, 30 Jan 2024 09:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hboeck.de header.i=@hboeck.de header.b="WS6HwZcH" Received: from zucker.schokokeks.org (zucker.schokokeks.org [178.63.68.96]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 917B9605D6 for <linux-kernel@vger.kernel.org>; Tue, 30 Jan 2024 09:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.63.68.96 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706608261; cv=none; b=nTuyWSzlx0VSHbPtM+ATsdd0ZShPVhLFBPZgKd9CmXVX8FTGJdFb39eJF2luzisnrZLqkAkNbJAp9IVNXFeMfKf6j9gx+PGMMmOLEUEXV5CkXyAkr7dkumgW++foLng4E/CEvue2A0ft9sBsiZ7RCgzq/ddTLqiy0edn/EIyhqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706608261; c=relaxed/simple; bh=ZQRIYuoVdGBY3FYjM+SKKH2fMwbpdB+uPgmzsErs/zg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=FTV/xxKYBWC+0MXes60aXdzsDCViZwc+tfCbqkN1dGfw0qr3ZKw9vcd+BSy3e1unrEih5F81o/0qSLxpWQ4jw559WEDta2U+BQar0JitZINtt09DLhFVMx47dFD3IDZYYldTL5xDPSX4rupKz8npScXbbCZ59OvzLpO4iX8/VKE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hboeck.de; spf=pass smtp.mailfrom=hboeck.de; dkim=pass (2048-bit key) header.d=hboeck.de header.i=@hboeck.de header.b=WS6HwZcH; arc=none smtp.client-ip=178.63.68.96 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hboeck.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hboeck.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hboeck.de; s=key1; t=1706607945; bh=trYWNAUV0wSUcmXctj60BCLcFrht8FOcYWG35FtbyNs=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=WS6HwZcHIOtytoJP+WpQ2LDHfPR3at5pFhpIMhqc/I7l3Gw8MUFWhAMMV3uxb68L7 n0EhK+TmQabxQwO6yXbiTHp5l00JC8aleaKudL7KvA4ljCk4gqTwiE+5bJSoAHhfHb zMm6Y0bHrWYPl2voMpBGpUluPtNbpRFtITJDNm6wcrH8ugR5ZHB32oxYWYN5KBiTMr yGAzyTsVeve+jremtgeVmdyuAtrrcRbidI/6CMDvDgqvBVBZCRKunfV+34xEtQzciB gAMSSp9hi/aS5DzTUpGmJlTvklzoj1Q6oyECUvwgnLOFaFNKOwQy602FvT+KqHYT68 qGi/ANi/fUCag== Original-Subject: [PATCH] x86: Improve description of IA32_EMULATION_DEFAULT_DISABLED Author: Hanno =?utf-8?b?QsO2Y2s=?= <hanno@hboeck.de> Original-Cc: x86@kernel.org, linux-kernel@vger.kernel.org Date: Tue, 30 Jan 2024 10:45:43 +0100 From: Hanno =?utf-8?b?QsO2Y2s=?= <hanno@hboeck.de> To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86: Improve description of IA32_EMULATION_DEFAULT_DISABLED Message-ID: <20240130104543.28840812.hanno@hboeck.de> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.40; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789508746490588086 X-GMAIL-MSGID: 1789508746490588086 |
Series |
x86: Improve description of IA32_EMULATION_DEFAULT_DISABLED
|
|
Commit Message
Hanno Böck
Jan. 30, 2024, 9:45 a.m. UTC
The description of the option disables a default, but does not mention
how to change that default. To make it easier to find out, mention boot
parameter ia32_emulation.
Signed-off-by: Hanno Böck <hanno@hboeck.de>
---
Comments
On Tue, Jan 30, 2024 at 10:45:43AM +0100, Hanno Böck wrote: > The description of the option disables a default, but does not mention > how to change that default. To make it easier to find out, mention boot > parameter ia32_emulation. > > Signed-off-by: Hanno Böck <hanno@hboeck.de> > --- > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 5edec175b..a65ff33e0 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -3006,8 +3006,10 @@ config IA32_EMULATION_DEFAULT_DISABLED > depends on IA32_EMULATION > help > Make IA32 emulation disabled by default. This prevents loading 32-bit > - processes and access to 32-bit syscalls. If unsure, leave it to its > - default value. > + processes and access to 32-bit syscalls. If set, IA32 emulation can be > + re-enabled with the boot parameter ia32_emulation=true. That sentence should say one can enable it *dynamically* with the cmdline param. But this text reads weird: if I want to enable it, then I won't set IA32_EMULATION_DEFAULT_DISABLED in the first place and I won't have that problem. So the use case must be something along the lines of, ia32 emu is default-disabled at build time but for certain cases where one wants it, one can still enable it per-boot with a cmdline param. So what's the story here? Thx.
On 6.02.24 г. 16:58 ч., Borislav Petkov wrote: > On Tue, Jan 30, 2024 at 10:45:43AM +0100, Hanno Böck wrote: >> The description of the option disables a default, but does not mention >> how to change that default. To make it easier to find out, mention boot >> parameter ia32_emulation. >> >> Signed-off-by: Hanno Böck <hanno@hboeck.de> >> --- >> >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index 5edec175b..a65ff33e0 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -3006,8 +3006,10 @@ config IA32_EMULATION_DEFAULT_DISABLED >> depends on IA32_EMULATION >> help >> Make IA32 emulation disabled by default. This prevents loading 32-bit >> - processes and access to 32-bit syscalls. If unsure, leave it to its >> - default value. >> + processes and access to 32-bit syscalls. If set, IA32 emulation can be >> + re-enabled with the boot parameter ia32_emulation=true. > > That sentence should say one can enable it *dynamically* with the cmdline > param. > > But this text reads weird: if I want to enable it, then I won't set > IA32_EMULATION_DEFAULT_DISABLED in the first place and I won't have that > problem. > > So the use case must be something along the lines of, ia32 emu is > default-disabled at build time but for certain cases where one wants it, > one can still enable it per-boot with a cmdline param. > > So what's the story here? The use case is if a distribution wants to disable ia32 emu by default but at the same time wants to give users the ability to override it. Which is pretty much the use case you presented. > > Thx. >
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5edec175b..a65ff33e0 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -3006,8 +3006,10 @@ config IA32_EMULATION_DEFAULT_DISABLED depends on IA32_EMULATION help Make IA32 emulation disabled by default. This prevents loading 32-bit - processes and access to 32-bit syscalls. If unsure, leave it to its - default value. + processes and access to 32-bit syscalls. If set, IA32 emulation can be + re-enabled with the boot parameter ia32_emulation=true. + + If unsure, leave it to its default value. config X86_X32_ABI bool "x32 ABI for 64-bit mode"