Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4281317pxj; Tue, 8 Jun 2021 10:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOLgr0I2N6Vk7Ndax44qfygaKtlPP9qFROxJOh00KML4lE3uDgM+4zd7BpZtnbF8NkVv/j X-Received: by 2002:a05:6402:510f:: with SMTP id m15mr26816807edd.283.1623173442255; Tue, 08 Jun 2021 10:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623173442; cv=none; d=google.com; s=arc-20160816; b=EDrnzp5JHzKLZYpE3NmPNhzZi/vE9kTN8CP3l4mDbBrm8KrMTm/lplI5RuRY4Nn9br k2mHsMEtHWvLXC3WiUWgRf/um/JBxrmUy1v2XgDvo1EjS9aukj1EEPi9Gbp8vvNsAinQ qyupfJlw0aVgoVTmiDV7iF/ZwrCnpA+Ztie+8bVvyOiwX8zjMupo9cevPkQbpe2dPxYN 61Jrk8DBlk48cQ1RkmaRiAxComKaixpe0i0lZV9x5zy+iVcVe3rN2PA+77onIkCc2Htw +h1IQZAIRHCaBssl6/+L4+eoTQlz8005uDgm1VW9/efye0vELNXgNQf2dXtlNOneF6vA KjdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=X8PdAnx06Q5ehxCqLWdmAN/nGd4D3NI5xu53+ycbS5w=; b=pAFzMX2RuHfsT4ano8oiCchiqT1XMmAKTnSVzacii/gWPKRRjXI6zhk2E1LtFGV4EZ T9DOFL1GtqoOpy+h9atTjOBOqjZGbVNJsxyg9UgKufUrqSa+XSq4YPXJFEAbaZP5EYST wPFQksjpvScsqbG8tqbI3M/Z1DAZB31ZMU5X7Ny8pRqkROCHkrD6grXMW5Gjr/JJVSv5 rH6u5N2ScMBYnZzkHy62B3m5Zy5X2sdOhPN0P/ikvI81XtfDoew5zMauRjIfVj9i5lFB LPdMe7Y8FAbV+jK8Ggn4WBGeHF+pO50BCVsN+QnUwo4HJmzFSb6B0AhnIqWCLMkC9g5n bzkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BzsBwSng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si147821edv.591.2021.06.08.10.30.16; Tue, 08 Jun 2021 10:30:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BzsBwSng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233283AbhFHR20 (ORCPT + 99 others); Tue, 8 Jun 2021 13:28:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:58166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231416AbhFHR20 (ORCPT ); Tue, 8 Jun 2021 13:28:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 752536136D; Tue, 8 Jun 2021 17:26:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623173193; bh=quLPk8hf1rTsI/xDu+n2XJpKuLPzI5budPumpjnNExg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=BzsBwSngPLULxxPD6oB4tsxncLu2Xc8OBaztzdTDKmYZZ5qr1mDI/jNZWGmEW3ynD N4YKqlrlp1/SxNQ2ppnMpRDsl6tIfj18eHsqKOvbuxIa8CrC2takPVQ0yqFfiUO/ls AJhV/UxK5syg4kFKzNGeEdAfxQW6elZBw46CRkAKlg+mumbkoyF9XQGa/H6jOLrZTa BNazLU1YGSeTLVDuLsCTt7vKyMqEs6CovHtqujL7UjMucc23T6hLCbTtFTRtwGzZdZ lpPCIrReBi+xIXYuBUZPXo8WFDfH4Y8RTQyvQ6VOIDDzcOBidx3A/slQvjQw+ufFyh 9e0vUf1WLgbBQ== Subject: Re: [PATCH RFC] x86: remove toolchain check for X32 ABI capability To: Masahiro Yamada Cc: X86 ML , Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" , Peter Zijlstra , Fangrui Song , clang-built-linux , "H . J . Lu" , Andy Lutomirski , Arnd Bergmann , Brian Gerst , "Chang S. Bae" , Chao Yu , "Darrick J. Wong" , Dmitry Safonov <0x7f454c46@gmail.com>, Dominik Brodowski , Gabriel Krisman Bertazi , Ingo Molnar , Jaroslav Kysela , Jason Gunthorpe , Jethro Beekman , Kees Cook , Miklos Szeredi , Nick Desaulniers , Sasha Levin , Sean Christopherson , Takashi Iwai , ALSA Development Mailing List , Linux FS-devel Mailing List , Linux Kernel Mailing List , linux-xfs References: <20210227183910.221873-1-masahiroy@kernel.org> <20210228064936.zixrhxlthyy6fmid@24bbad8f3778> From: Nathan Chancellor Message-ID: <1992c9cf-739e-d98f-85c0-bbcf7df123ea@kernel.org> Date: Tue, 8 Jun 2021 10:26:30 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, On 6/7/2021 12:39 AM, Masahiro Yamada wrote: > On Sun, Feb 28, 2021 at 3:49 PM Nathan Chancellor wrote: >> >> On Sun, Feb 28, 2021 at 12:15:16PM +0900, Masahiro Yamada wrote: >>> On Sun, Feb 28, 2021 at 3:41 AM Masahiro Yamada wrote: >>>> >>>> This commit reverts 0bf6276392e9 ("x32: Warn and disable rather than >>>> error if binutils too old"). >>>> >>>> The help text in arch/x86/Kconfig says enabling the X32 ABI support >>>> needs binutils 2.22 or later. This is met because the minimal binutils >>>> version is 2.23 according to Documentation/process/changes.rst. >>>> >>>> I would not say I am not familiar with toolchain configuration, but >>> >>> I mean: >>> I would not say I am familiar ... >>> That is why I added RFC. >>> >>> I appreciate comments from people who are familiar >>> with toolchains (binutils, llvm). >>> >>> If this change is not safe, >>> we can move this check to Kconfig at least. >> >> Hi Masahiro, >> >> As Fangrui pointed out, there are two outstanding issues with x32 with >> LLVM=1, both seemingly related to LLVM=1. > > Is this still a problem for Clang built Linux? > > > >> https://github.com/ClangBuiltLinux/linux/issues/514 > > I am not tracking the status. > What was the conclusion? This appears to no longer be reproducible so I closed it. >> https://github.com/ClangBuiltLinux/linux/issues/1141 > > > This got marked "unreproducible" I just had a look at this and it is still reproducible (see the bug for details). >> Additionally, there appears to be one from Arnd as well but that one has >> received no triage yet. >> >> https://github.com/ClangBuiltLinux/linux/issues/1205 > > Same as well. Yeah, I cannot reproduce this. It seems like a Kconfig test would still be best for the issue above, if it is not too much to maintain. Cheers, Nathan