Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4884236iob; Mon, 9 May 2022 04:03:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/uvQ77u66hRt3QC9jb22VNV0sQkpFM/OzOvmESFwEl8RSh2LrTZkRDi+f8tVBHW1LeQXL X-Received: by 2002:a63:7d0:0:b0:3c6:77a1:10a4 with SMTP id 199-20020a6307d0000000b003c677a110a4mr8356571pgh.587.1652094231117; Mon, 09 May 2022 04:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652094231; cv=none; d=google.com; s=arc-20160816; b=aILFXUG5ilN8U4NbXUxcV/GOoWt1gASDq2kWNzYE4keUze5qWfDYWr7I9HRtTaPrkt 4fGgEN7JpcI7MQZs7g88O5n0vgOzHTQ6YcCr+kxZ8o8vO7/g6c3OIkCdLxsWm6vfGhCH Iw4hwZt2qKiSR6DpjgsnzVo1rh+G6g4CQXfeXSbkCM9LhcDvuKKjpOu4HEEb9jOpmJGV CRSfj6m371c0pB27DpYL9nM68heLj5Gceg6xnrfT/YStZ0qz6Ez+IKRRfyCGcc8CtwBS P7eV6q/0AOyOvRzmxx/ajLzg5eOucnWSn69U6e87Vk4GbCciar/JRZewYa/pUOODVKZP MXfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=y+oiGSCZb6NX25tsDNXkBW7Afl7nrsXXqru9rnhpvLU=; b=oi79bW+gCWn1HtNKV0sVBh8IvDGQ32zRW2FUEGC+kTjb+AJG0z9nUM0/sacgrM2O2K 5QhZ/o63iG+FlI9qWWv+9jehwNLM6b5t2AH2I1of6FghfzOsUjJR/PS+W05QfgJ0Plxz icFiToblwgtEWsNnDWloVcUl60xBXZWLXQC173nK2v5gT2ujkspa+beLLxxXGid+PT2d tFYbEm6g5QlzjT9Q05QIq2Ep8CtFKA4Xj5NdiZqcW7J+hebxEjeVtgW/gN014462VSR9 iT3TCZRBqnlRZEt+rzct63iUdJ29hM2tagyjEwxwkBn4kfDj2/enivEiJ7gg3pbBDb2M ZMcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EVjVfXPY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k22-20020a056a00169600b0050a92f7d228si14913651pfc.143.2022.05.09.04.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 04:03:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EVjVfXPY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B926B1F68DA; Mon, 9 May 2022 03:19:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391180AbiEGMXE (ORCPT + 99 others); Sat, 7 May 2022 08:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233048AbiEGMXB (ORCPT ); Sat, 7 May 2022 08:23:01 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08CF11A05F for ; Sat, 7 May 2022 05:19:13 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id x9so7858447qts.6 for ; Sat, 07 May 2022 05:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y+oiGSCZb6NX25tsDNXkBW7Afl7nrsXXqru9rnhpvLU=; b=EVjVfXPYIT2pl1sW+WbBkp92OXUctBj433s+LBnmcW97uRKsPbxvx8bTWykOj7zQsr TNnujS8Pb49zFu16u0ddLu3VKMjDcbfC6fXazegN8+f0mE3WAL1eV2SWMZWF3SeBguYU Nhe8OO+Me6dzKehUPX5jOjwosHi9CRmaDd1nwtIKaocOYuFIg+qtpDXGXO+KGeVArJGD 4S9wUxxLXlhiG0VGwFrTLINb08hqJfEyko4cUJi22tnorrbQit3Zk+2z2vPue2U0/7TU w47mD/gDrZ0ugqCxN1epRr3FceAe/MsC6iTsw1NwA52fOki95Q7IIaG1yt4pZR4SesjS Cieg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y+oiGSCZb6NX25tsDNXkBW7Afl7nrsXXqru9rnhpvLU=; b=TSjGa/cGm3pjse+Ih6UEXtDdp++zA3njiG0OwLws07IX6WH4oEvADybN73+lFV9yx9 V5u1oWWpunUZoe36WT7B339wGM3QLZCLrIBS6E8AcnT4Jtx4+GYG8ENOCfndD9TouBPA g8peAf1IEx9hpp7uzjb7rIbSasc2fHEq4nyVPHHcJHP2Ni0Za6EXJpQSGP2ADya1Q41E S+AmPLgGZD5lLOTz1zq9D4a9R1liBcA+rXlVkgdUY0xm0gBOxLwIIzbEJsQDnD+Lu8GZ Rj+u1B3vc7HvMd7q4WLWkKGeogL6UHjfXr9bRPwzrYLBgTm8/XWuUwNGmxV8pA4R6RLX 8Z8w== X-Gm-Message-State: AOAM532vTuou9cpA27gDrACwpN1yUDkFu2m0Og3E54S9V1NNTE+/dres KKkw+/VagEze7Y3FhhOIajLGfOJUF+oHYnh04iw= X-Received: by 2002:a05:622a:134b:b0:2f3:d11e:3865 with SMTP id w11-20020a05622a134b00b002f3d11e3865mr1552279qtk.329.1651925951403; Sat, 07 May 2022 05:19:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mauro Rossi Date: Sat, 7 May 2022 14:19:00 +0200 Message-ID: Subject: Re: arch/x86/entry/entry: RFC on recent kernels building error with llvm 11.0.2 internal assembler To: Nathan Chancellor Cc: luto@kernel.org, Chih-Wei Huang , Linux Kernel Mailing List , clang-built-linux , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 > > Alternatively, you could apply the hack that Nick inserted into Android > > for this issue if upgrading your toolchain or turning off the integrated > > assembler is not possible: > > > > https://android.googlesource.com/kernel/common/+/e58f084735b8abf744d61083b92172ee23d45aae > > > > I really do not mean to sound dismissive or rude, I apologize if it > > comes off that way, but we have worked quite hard to avoid inserting > > unnecessary workarounds, as they are ultimately technical debt that can > > be hard to manage over the long term. > > > > Cheers, > > Nathan > > Thanks a lot Nathan > > It is definitely the clang version 11.0.x which is not updated in aosp > Android 11 production tags > > I will use Nick's workaround which works since only lsl %rax, %rax is > currently happening > > Many thanks, problem solved Hello, I'm back again because I was assuming that Nick's workaround was working ok, but I have found that ARCH=x86_64 i.e. 64bit built kernel is causing an immediate hard reboot at initrd execution, just after hitting [ENTER] at grub/efi menu. ARCh=x86 i.e. 32bit kernel binary is not affected, but is Nick's workaround targeting 32 bit kernel builds? Should it be modified to work for 64bit kernel binary? How do aosp android-mailine kernels avoid this instantaneous hard reboot issue? Mauro