Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6950144rwd; Mon, 19 Jun 2023 15:32:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XfkF6ZgqJw4SxwTsLI0oQPwvVshc39b6OqoZpixiSk4CMAJCHD/NTdQaJ8Gh5i0kcj2M5 X-Received: by 2002:a05:6870:4c2:b0:1a2:cbdd:c44 with SMTP id u2-20020a05687004c200b001a2cbdd0c44mr6519530oam.9.1687213943555; Mon, 19 Jun 2023 15:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687213943; cv=none; d=google.com; s=arc-20160816; b=aHm9S0+QMHSlLsVH5R/7TeeYlS3huMy4Kphe8uv3ARy+rSd6vF6u2Lc+/oomaYMzsu MHo1I/gai3NKDE+BGjmg8tuyvot3yEUYyqmNrbc1DWGbCdAk9N4tJcVlkKVcdkuGuopc qW47O+hS6IPVfvZn7T6SdPd08EMZwdqyiC+M46qlMU40LeGzJo/95vWflt+7roV8Vvc7 GBHK0s6E7G5iy9uJkm9c6SjInhsjD4xZU2UvoxCPZx8OxveBVf4WZDu3lTzSpxAwmS9S dumYNx+Ce4/loGsX3AbUDHAnKZ7WeOl05tY3HsF3rKARdbbSSp7Yfqwl3yHUUoU75AGz m09w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jVRfJtFn83s1N4xVDwJhe2fgGy5164bT09HyVkzuVvo=; b=BqBpx4+Fw8O0oYvFU7RyDv0RW+HuhKtvmYN2h2i5K8YHxAOCEiX50XL7OCwbfYgYER RvKEle7Aj9+vXigjI4mh9lrwTuDSJZouRqMNwpOgOyS0j63VXk5Cw4aK0PkpGKrvxdV1 mGRDqDVXA2fOuMt/lyLudDdJqrQ6iCJ1U0F7Iz4gk/2qQ2nSTFOx7ZOlgg6FeVW14s9U vu5RyFGZeuP08GRpmnxXqdpg/3P7wsRng97eoPhc6VwHnNfcQ557d1NtWPyNjZ9kpc7F p+pm5F4nOCpRJQP8SFxCiOf6h414SB5f5UduNJ6t3zo53WcHA8VtTjr426JjTuR6FSY6 pPIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=PLXs0hCl; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a639312000000b005538432adcasi432938pge.57.2023.06.19.15.32.09; Mon, 19 Jun 2023 15:32:23 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=PLXs0hCl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbjFSVny (ORCPT + 99 others); Mon, 19 Jun 2023 17:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjFSVnx (ORCPT ); Mon, 19 Jun 2023 17:43:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E078E1BB for ; Mon, 19 Jun 2023 14:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=jVRfJtFn83s1N4xVDwJhe2fgGy5164bT09HyVkzuVvo=; b=PLXs0hClPHjAb9AoBqpIgt1qXX v4Xvi0KjORPJHXyRrIbeE5R78IIL9SsgdzYzfzaqoDb1oWExXlHbtX9rP+SPkME7BJ4lmVQK3HTrp fZFySv1MgkAnvTUlM9hV0FDK82DymeuNgT/Wf2q3cF/5SanivFlLsJrUlLVVYqVxf+FmZv8KXVC6y VEAflJfKIa69Vf2rlgE4XjjquS3wsMb2kNzkCos4gjkzkAmtccI5pWFO31KqQol5/ozQha6Q1b4lt g7hSyzEnbf/O1uYJEsv9KVBual8PAQ0304LjbeBZ+h8mvivPABU+oSvlv2Z5r6DWQY/1mmLBdjXdI DBZBZHLg==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qBMf6-009XdE-2l; Mon, 19 Jun 2023 21:43:49 +0000 Message-ID: <95f4416d-854e-c91d-c401-2ef9488d83ba@infradead.org> Date: Mon, 19 Jun 2023 14:43:47 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v3 1/5] x86: Make IA32_EMULATION boot time configurable Content-Language: en-US To: Nikolay Borisov , x86@kernel.org Cc: linux-kernel@vger.kernel.org, mhocko@suse.com, jslaby@suse.cz References: <20230616125730.1164989-1-nik.borisov@suse.com> <20230616125730.1164989-2-nik.borisov@suse.com> From: Randy Dunlap In-Reply-To: <20230616125730.1164989-2-nik.borisov@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 6/16/23 05:57, Nikolay Borisov wrote: > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 53bab123a8ee..8bec431c97ce 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -3038,6 +3038,15 @@ config IA32_EMULATION > 64-bit kernel. You should likely turn this on, unless you're > 100% sure that you don't have any 32-bit programs left. > > +config IA32_EMULATION_DEFAULT_DISABLED > + bool "IA32 emulation disabled by default" > + default n > + depends on IA32_EMULATION > + help > + Make IA32 emulation disabled by default. This prevents loading 32bit 32-bit > + processes and access to 32bit syscalls. If unsure, leave it to its 32-bit > + default value. -- ~Randy