Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2246613rwd; Fri, 9 Jun 2023 08:33:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6SekVaI4nOmDGKMucU8r2QiL4qVUcxiPVwu5vXu3fgteYt82x2A4aBq3aw0g0YwUXezAUw X-Received: by 2002:a05:6a20:394c:b0:10c:edb:3e09 with SMTP id r12-20020a056a20394c00b0010c0edb3e09mr1310438pzg.25.1686324785203; Fri, 09 Jun 2023 08:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686324785; cv=none; d=google.com; s=arc-20160816; b=RFVAuQy8TC3Lx3iVCKLzhnihW76f2yyC/erTGHkrlwCcPMdFuzBGblWPSkZkg5+Asm r44hnpH3cvbFy86RVBx/mxiLXbWvEbJMVUjpjk1CqyQdDpDzn1lIPd4/J6wmL5Oa1w0A i1ZF7Kt6n8owkFjyvF0E1fl/gYQkASMlWgDikR4MsE9TKolq2Th2AYrYXFEateGNB62s W6phX6fbo+HoxTHEym7B7eCyRPXnsYPid5H59yyjytzEOhqEoBhtq2QgODzxzObnvre1 rGlppoEViEdd4dZ2uS/XOAPS47w4HB+r1XXuVgKykFfp51nW1HQPxGeMTic1HM3ZP98C MALQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=97eIlmVHHiXKUyciMmtc/hv+PsyVp2v+mcQ37Qjk6dU=; b=JNO/y3Vh1p+bHQ81yUoYnsuKi3fdNgmki0bgyTT6AaKbaDrx6nRw9SHiwU0aq8aRQs uYNTAEDfuwv4ipXmHg0CZeRMXmISS1BBVePwec+fPoO/uCC8phf8u7ogxU8gKGeT+isP TR/tWqSQ6SvreSxgB3LHg/EM1dePB5WORqsYZKRArOJxJB2I2jqnfVG7F+8gzbn53kug HK/CkhwpaEpsyEx63llgi0uES2OAQdCCrLVN6lYlE/cEGNksY/+o4dRhhHtTv9a4eT5W 3DZLanDV31exv3a8/hJhcud/B/1EtNFCH3QC6mf1oH3+xEpgaO/UKnFEjBBmiMsRpLEc J0lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=e+Iiazwj; dkim=neutral (no key) header.i=@linutronix.de header.b=1GDIMJG5; 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=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h62-20020a638341000000b0054aa3971f92si302655pge.212.2023.06.09.08.32.50; Fri, 09 Jun 2023 08:33:05 -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=@linutronix.de header.s=2020 header.b=e+Iiazwj; dkim=neutral (no key) header.i=@linutronix.de header.b=1GDIMJG5; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241052AbjFIP1C (ORCPT + 99 others); Fri, 9 Jun 2023 11:27:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241869AbjFIP0m (ORCPT ); Fri, 9 Jun 2023 11:26:42 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D58A3C11 for ; Fri, 9 Jun 2023 08:26:24 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686324382; 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: in-reply-to:in-reply-to:references:references; bh=97eIlmVHHiXKUyciMmtc/hv+PsyVp2v+mcQ37Qjk6dU=; b=e+Iiazwjdi0sSxQOkSd63xWdxVQpwfjV8PlWhPv5HyrT7kfAquJkI8QAFEI7ZU+bv9Jfjq k128Ic2mKAGIbPBAl9jAhGdHuOnW70t/711Y25HHD4Jz6AuRgOW/v13To1nVq50f3scVVL F8zCFCM8w+d0Az32OpuNuWudCDJbi/oFzh+WZDxjtelrYD7GtTTJiR/ZlfwO49NjRI3u/M Nn0crU6QRv+LrPq0OnJdtt7nJ5U7ue/lcC2xKzyCHDiPH/KHEhjm1PeSBsJtmqCpEx6DoB Ewf8MM4b6vshkW/XvNaU5X0NEwIQ8IfMUFziyZFXuUbyZRcJZAPCSZZblWFFuA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686324382; 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: in-reply-to:in-reply-to:references:references; bh=97eIlmVHHiXKUyciMmtc/hv+PsyVp2v+mcQ37Qjk6dU=; b=1GDIMJG5h0PhIqh4dL5/8yYRO5/HJLJPSR5lFrxvRuupX0B8QfLyZYdkj9lJDoFoQKJQKW 1V52IvTSK0YWo2Bg== To: Nikolay Borisov , x86@kernel.org Cc: linux-kernel@vger.kernel.org, mhocko@suse.com, jslaby@suse.cz, Nikolay Borisov Subject: Re: [PATCH v2 4/4] x86: Disable laoding 32bit processes if ia32_disabled is true In-Reply-To: <20230609111311.4110901-5-nik.borisov@suse.com> References: <20230609111311.4110901-1-nik.borisov@suse.com> <20230609111311.4110901-5-nik.borisov@suse.com> Date: Fri, 09 Jun 2023 17:26:21 +0200 Message-ID: <87bkhoirmq.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 09 2023 at 14:13, Nikolay Borisov wrote: > diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h > index 18fd06f7936a..0fa49388ff16 100644 > --- a/arch/x86/include/asm/elf.h > +++ b/arch/x86/include/asm/elf.h > @@ -148,9 +148,16 @@ do { \ > #define elf_check_arch(x) \ > ((x)->e_machine == EM_X86_64) > > +#ifdef CONFIG_IA32_EMULATION > +extern bool ia32_disabled; > #define compat_elf_check_arch(x) \ 1) Your keyboard clearly has a broken newline key. 2) Why is there still a duplicated declaration? 3) This #ifdeffery is not needed if this is done right. Thanks, tglx