Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1193938ybl; Fri, 30 Aug 2019 13:26:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjwofH2dN2uMoWKWe2gyda4RsQduHAB+oS9e3zQvkiW39s5orPax+ll0irZxogz6Fi271s X-Received: by 2002:a17:90a:6349:: with SMTP id v9mr409005pjs.20.1567196801230; Fri, 30 Aug 2019 13:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567196801; cv=none; d=google.com; s=arc-20160816; b=et6MiTD32lJavHAHOZXJzncjV5vS/joswEnyc8qVUBZVkVGvSHeHrddwHY4Gq4oQf4 ez46j5KCtBNV8oT/7sEwvfWIuIILyTV/T47pBL9E9FDf8jH33FNvYwkMDyaAnJV6IQ11 9RsX2MehmKmIiKx4YaVcy1tTjvarrPl41QlGS+miwWCK8Hm28MRNInbMdYUd1LQN9s5h yVt0cwnhoy2slYNy+E/hLvba103aBf9MYVoY9dClDsg8+9IhTXIoDr1dysAgkXj+FueU SrHzGoZcd5od2SXY9Re9jDsC2Qr0RVHlkMd2Lyp86yH0skc1pCMm+KH2lffgbEZrnkUq GZig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=UgwxLUs4u6Sh8OD5zo6PgM/AnxALlgnMTsxPNdaKZsE=; b=dwfbUEumJvPpTLJ+hQaBhCd/hrxuWJnbQD7RMPSkUMwY2kxMSoXDmXDKAWwkwIjwQj AcS7UvE0R3Ox2+82VkteM6QYgB65MUpzPl139uqkX2j5xvI1rMLxPY+Xb4bq4gDJvbUU 6naHUB+EwLbTGwJSmLreQNvLwtTwXf/62YVcGI5g0d3rPQYegsFDUrGwb5MoTA8odP/z vG+xnOYQVBrQrgSX+cp56mWOcvLt0Jn/ozWfYv5/mPzQNgn7P4GY+VMfOavRNPZ3f6zF 3NH4iBHNC/3jBDV5vnJ1DCOyCTHg2YqlWAif81SRtneW++nxLWQvVLYyL/hW0hasgocZ YS8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=rbZ8hJa3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si5612373pjq.52.2019.08.30.13.26.23; Fri, 30 Aug 2019 13:26:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=rbZ8hJa3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728257AbfH3UXm (ORCPT + 99 others); Fri, 30 Aug 2019 16:23:42 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:35555 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728079AbfH3UXg (ORCPT ); Fri, 30 Aug 2019 16:23:36 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46KrXQ3nFMz9v7DV; Fri, 30 Aug 2019 22:23:34 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=rbZ8hJa3; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id ODbiOs4J1zxq; Fri, 30 Aug 2019 22:23:34 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 46KrXQ2gp9z9v7DT; Fri, 30 Aug 2019 22:23:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1567196614; bh=UgwxLUs4u6Sh8OD5zo6PgM/AnxALlgnMTsxPNdaKZsE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=rbZ8hJa3TCltezr70eDq6/qwUbFCM8AK3bY2SuvEWI4wK9lP77fPooJZaZxT2KKDx 0gMwAF3PWE/rYyBJrQOrvFHTYKnOPh97G6xw1ZlCuKcIIOiyhldYQMbgxmol4+vsCd 6Hk7l+gR/dRuXk+WrEJ9W5qc2ub3Thc4AE/vi+Gc= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id A639E8B911; Fri, 30 Aug 2019 22:23:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Nb9esVOMa_TC; Fri, 30 Aug 2019 22:23:34 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 746798B90B; Fri, 30 Aug 2019 22:23:33 +0200 (CEST) Subject: Re: [PATCH v6 5/6] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default. To: Michal Suchanek , linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nicholas Piggin , Hari Bathini , Joel Stanley , Andrew Donnellan , Firoz Khan , Breno Leitao , Russell Currey , Nicolai Stange , Michael Neuling , "Eric W. Biederman" , Thomas Gleixner , Arnd Bergmann , Geert Uytterhoeven , Heiko Carstens , Christian Brauner , David Howells , Greg Kroah-Hartman , Allison Randal , David Hildenbrand , linux-kernel@vger.kernel.org References: From: Christophe Leroy Message-ID: <6e362534-e764-0290-c868-30e4ae542678@c-s.fr> Date: Fri, 30 Aug 2019 22:23:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 30/08/2019 à 20:57, Michal Suchanek a écrit : > On bigendian ppc64 it is common to have 32bit legacy binaries but much > less so on littleendian. > > Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy > --- > v3: make configurable > --- > arch/powerpc/Kconfig | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 5bab0bb6b833..b0339e892329 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -264,8 +264,9 @@ config PANIC_TIMEOUT > default 180 > > config COMPAT > - bool > - default y if PPC64 > + bool "Enable support for 32bit binaries" > + depends on PPC64 > + default y if !CPU_LITTLE_ENDIAN > select COMPAT_BINFMT_ELF > select ARCH_WANT_OLD_COMPAT_IPC > select COMPAT_OLD_SIGACTION >