Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2396144rwd; Fri, 9 Jun 2023 10:31:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4flHS6UaMOYEC+u6ZwVHleztJLUSRKdjaCmDup7GD/HMstQv3dPT/ZrNv8Z7JXV3GC75yu X-Received: by 2002:a17:903:22cf:b0:1b3:7de7:f845 with SMTP id y15-20020a17090322cf00b001b37de7f845mr2470674plg.23.1686331864855; Fri, 09 Jun 2023 10:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686331864; cv=none; d=google.com; s=arc-20160816; b=TO2zTO9DLuUdzSuH13i3o56eGKCBgm19BghItZF9itF/wpHQT6MGaheoMjd3vdk30C PCYgcD7d1gYcIvUL2yhitCniFP2ennBGbCyGgw5RsqdnioXLd9ZgoZNtqkhSD9bcNTyT 4azqO/qm3CeXO0vSdRd6h4dyJTejmmkPBXnBDbo/bkO+HratCfPBJ9EdE64UjU7FnxyS IDEZx4ekv29o3Svjl0YQm235wv/zf6Xv9f6Hxvw8lVpi2ra81eYNCZdn9cbXpI4SCgur L0WJFLxHaB0Hv+3ogmrZDhX047jI1UDt5RyiROFyqSMFQ89MxDhWTMkbSEnXY1OXhFrd 01uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IZjXEvXuS9StX8at+0nJXz5jAwtpZ32DN9Ij1o6mQDo=; b=Yff1f9xH4+os08VTF5877UBi+QhZfsEYCZUa0BQRDdJoZ4Yk1pfqnQuk+ON2Vlpk0Z OOOp4Hwntz2OUoehrtZ1yEv0okqOg77UikcoXHJ/N4IIn3sostSZusImj/lwv3NiA0Sk nPEVo6+gkJumupNIZwJ/WQsOpN32+Ykc/wjteQiB+8nozzrQlp89DmGTDNmNUcuFQJzt 2oBhF7oSYTi6FgrRoNPo6pyhQNQidK2grtD/onDnmvKMX/LujFevsfZy4ZxhYmcKRDRh b37EnuhVHIC25Sbb6HuOB3RqH5BRZmAXdRUodLm2qypf3WmMzUJNft1rujaJT7Q4Yn3U Ec9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=RzSMFnJs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a170902740700b001ae5e5c275asi2915357pll.364.2023.06.09.10.30.09; Fri, 09 Jun 2023 10:31:04 -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=@gmail.com header.s=20221208 header.b=RzSMFnJs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbjFIQqI (ORCPT + 99 others); Fri, 9 Jun 2023 12:46:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjFIQpv (ORCPT ); Fri, 9 Jun 2023 12:45:51 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F98DF5 for ; Fri, 9 Jun 2023 09:45:50 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-bacf9edc87bso1887284276.1 for ; Fri, 09 Jun 2023 09:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686329149; x=1688921149; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IZjXEvXuS9StX8at+0nJXz5jAwtpZ32DN9Ij1o6mQDo=; b=RzSMFnJsQBAKuquKcRuuVfqAQuY8kw0oLICOKzOQnGixgM1JKtRvs6MUOpybRwUEPx vpEe1c8weGnPCYRbbWf2V05c1D2DFt9WNcgPLu/2cAVo4Y9SMM1ontcuAfSIrvKJQ7/e mYTvpLht+6FPK/AwfVqWQ/wQQAFXpypV1LWUnhFG7cgd96EUImL15x/gFBSnBAjhEFMQ PuvwpG5Aa7Zu2sqXfgCDqAFOr+Nk6CXNRKzhUD18BqfPArBQk9+nX97Ti5huIrB7S/d/ wSwAmk4Vc5sUns8EXhk5QbJ3WO4KACfkMrq+UDvf87ll7mK03x1XxQwaWZ/DWPnMm3+Z ICrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686329149; x=1688921149; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IZjXEvXuS9StX8at+0nJXz5jAwtpZ32DN9Ij1o6mQDo=; b=j6oi0Vcc7whxTMeR7+mw3GhL39iAnpglSqep03PEJ9ixDrOMwJoMac3gDSjn69wzJd 0PchmujjhuZ6MSs+n4bF3qVD/5OdXGrOrmLkopCpwkweHISa7R9vkbPi+sHaUTApW9xp jRzpbqZpPtYVLJdF2EimveUeCGlbkNBz2GUC5PEppsBpevkt+EQOKpbbG+vii0+oyU1K 7YhSpiixo7vwKey/FyLkAGoRWuOFnv2r79D49ko8zRs9n/4x3htrEa0T7VQfwmgG4vpE QwKvlYxI0RFZf4crjbThCDnewztRX8iggfmsdDSm0myMit2su9CTuFTaqS/K2eugYUt5 5PMA== X-Gm-Message-State: AC+VfDwlkhJ3BL2BgDfJcru4lFF6fkU66uquAHyCRj3e6KHta8zIwZlp 2fuQF41bqa6OTYlQzZ+ydsmYtkqsXzLx6FUQNg== X-Received: by 2002:a81:a082:0:b0:568:f405:cbfe with SMTP id x124-20020a81a082000000b00568f405cbfemr1667688ywg.47.1686329149556; Fri, 09 Jun 2023 09:45:49 -0700 (PDT) MIME-Version: 1.0 References: <20230609111311.4110901-1-nik.borisov@suse.com> <20230609111311.4110901-5-nik.borisov@suse.com> In-Reply-To: <20230609111311.4110901-5-nik.borisov@suse.com> From: Brian Gerst Date: Fri, 9 Jun 2023 12:45:38 -0400 Message-ID: Subject: Re: [PATCH v2 4/4] x86: Disable laoding 32bit processes if ia32_disabled is true To: Nikolay Borisov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, mhocko@suse.com, jslaby@suse.cz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Fri, Jun 9, 2023 at 8:07=E2=80=AFAM Nikolay Borisov wrote: > > In addition to disabling 32bit syscall interface let's also disable the > ability to load 32bit compat processes. > > Signed-off-by: Nikolay Borisov This patch needs to come beforethe patch that disables 32-bit syscalls. It makes no sense to be able to load a 32-bit executable that cannot make syscalls. Brian Gerst