Received: by 10.192.165.148 with SMTP id m20csp1850782imm; Sun, 6 May 2018 00:43:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq8MQTD5FqH+jbNeU4Oda94JXA1Z4PbXpkk7WMWj1ip8TBq3oWQq5oeKupzsRje3zGeZqLD X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr19235142plv.176.1525592592039; Sun, 06 May 2018 00:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525592592; cv=none; d=google.com; s=arc-20160816; b=pVuRDpJ2Iq0bvc3lgHIxZDyVgCMG2XuwE9lqcc8O16ravldQqm7eTuxs5oN7eOebJo 1YVf6Giz7cujlVGuoUzslPSGJoJ1eB8yS/HRcQRX3RdRsPqWTuVaf1WCmgts+VKox8Tn 8hZKiPAT7NycgF0Xr3wlv0QIINw/OT2PY4ngNnUJtykw7Kta+xaFkHDoZe6jI3QTe1KC jXQLRImkPoyN6MC8OOLy0c/bTDvue2l4HnOpaD+Owr0dIXFbYZThRT8Zn26c6AjUabiR i4kKfdIpRWuZtjlS7P7qviZ7s1biBv1o2lDUZf0e4jUEkts8FGBSK4X7jx4336wD8GmC A4Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=nXMOpZTdfAwsoSxVZHnU516Oe71BHazE1+BnkwPw+nM=; b=DOig1Q9lRuUZ22qYX4LQvGDK0hpWbliByztoAQtVReMHJOwSoDgKks6HvTFj0INXSl 9vtWMA8AjWMLxHDZGqXJGd5RKqan2CI+ozJcQN0j7GFdZ/HXko6sbtKZJgS6thr7fJvM gMkqP9Au1iLetAdDtVcBsIdz7l4oD09x4oqZiooQLZgAnf5KAPXoh52Yz84JgQxR/jRI G9HZedUXYhAA5qhUcA/h9mmxLyke1QXCNADY5ZbRqq+azmUl1TbpXfcxbYbFHdwxRJ+q 64cTiT+K8d53BhCyVLzKyZQ2Izh5D0DfrZElIC2KimSFJcxojeiuxpf+0OaD5Yjs5Jj4 JwNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UXWXkLMP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3-v6si9170819pld.45.2018.05.06.00.42.57; Sun, 06 May 2018 00:43:12 -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=@google.com header.s=20161025 header.b=UXWXkLMP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751180AbeEFHmk (ORCPT + 99 others); Sun, 6 May 2018 03:42:40 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:38886 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751270AbeEFHmU (ORCPT ); Sun, 6 May 2018 03:42:20 -0400 Received: by mail-pg0-f43.google.com with SMTP id n9-v6so18148748pgq.5 for ; Sun, 06 May 2018 00:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nXMOpZTdfAwsoSxVZHnU516Oe71BHazE1+BnkwPw+nM=; b=UXWXkLMPcptl7n/4KRBk9ZNs4U66k38CtnAnwxvTVV9IhDVbukGEWCVpgPlzl3Opz6 VIvqQ8yaxkzUyqZGiAt71PBGkq10Fp9YEgMq876jjLWlLMDmt6nMsrpp1zupdPZrayd8 NX03wAyoJX8WbLlhXStw3vGW8jKq8NHlaHbiFOKN5EXt99s5NkQFNRrokxeDxuanogiq tdbti+VFwYlGqN1wUQ0bFl2JERh0mZSkVhpInjsCQLJu07dZn3NFPWdLxO5LjUW+iZrC y1SftqC3KrxJXuMNRWsQupBnmc6tHw4rXp5wo7gBSVtdNX3khDQXeQtU85zzXunyX27k 1PZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nXMOpZTdfAwsoSxVZHnU516Oe71BHazE1+BnkwPw+nM=; b=ROmhmmsmHHQTJctcIF7QMB2ludAZGh99jc0YfKIz9PcQCkWwGfOiejOBvD1NaHn6tE 69ksxD5y4Lk/EHlP/JGVkEKNmH0jX1xh9CYi6HQLh1axPkovoz3i62Vi27eLnneKvRaS gcTvJYqEHpCN80LIWKyrVR8YL5fmPDwzugne9axYnxjQ9DDugBsGCZiKJnW4wY9SLGQx R9BwOVdlYvem4drmoD9YVE+h5Zp5Zgz7P/F3auN1IiGEkP3qmAsCf45nTLukVvx3SXg3 cwM1lxTwXtDjOaWXJSB3mdcCOZT8ymihqQpM3ZNP5s+Y9BviSOHl9b0D/Z/oiUwvV5UN vqXA== X-Gm-Message-State: ALQs6tCDfJrSJdxPYIGhgv14gbUCvLl8/OR5etbJqaebfdlBwNdm9sa/ Tsts30doGSoNiiFj2/mb8MqG3PxOhP4el9X8pDhM6g== X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr33700610plc.341.1525592539347; Sun, 06 May 2018 00:42:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.149.24 with HTTP; Sun, 6 May 2018 00:41:58 -0700 (PDT) In-Reply-To: References: <20180423174224.GA243180@google.com> From: Dmitry Vyukov Date: Sun, 6 May 2018 09:41:58 +0200 Message-ID: Subject: Re: Clang patch stacks for LTS kernels (v4.4 and v4.9) and status update To: sedat.dilek@gmail.com Cc: Matthias Kaehlcke , lkml , Arnd Bergmann , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 6, 2018 at 8:35 AM, Sedat Dilek wrote: > On Mon, Apr 23, 2018 at 7:42 PM, Matthias Kaehlcke wrote: > [...] >>> [ ASM-GOTO ] >>> >>> Foremore, I have seen you have a "refs/sandbox/mka/llvm/v4.14" Git branch. >>> Linux v4.14 is also an LTS release. >> >> Yes, there is also a follow up post: >> https://lkml.org/lkml/2017/11/22/943 >> >>> After Linux v4.9 "asm-goto" support was added which is GCC specific. >> >> asm-goto was optional until a few weeks ago, when x86 maintainers >> decided to make it mandatory, and thus break clang builds for x86: >> >> https://lkml.org/lkml/2018/4/2/486 >> >>> Is there a workaround to compile Linux-kernel with any CLANG >>> version? >> >> You could revert the patch that makes asm-goto mandatory. >> >>> You happen to know the status in LLVM upstream? >> >> I know people are actively working on this, but don't know an ETA. >> > > [ CC Dimitry ] > > Sorry for the late response. > This weekend I had some time to play with clang-7 and Linux-4.17-rcN. > > I tried with Linux v4.17-rc3-261-gc1c07416cdd4 and reverted the > mandatory patch [1]. > > commit e501ce957a786ecd076ea0cfb10b114e6e4d0f40 > "x86: Force asm-goto" > > This needed a follow up [2]... > > commit d0266046ad54e0c964941364cd82a0d0478ce286 > "x86: Remove FAST_FEATURE_TESTS" > > ...but breaks my build. > > That seems to be a known issue [3] and Dimitry bisected this to [4]. > Is there a fix for this? > > I have attached my kernel-config and the broken build-log. > > Hope this helps. > > Regards, > - Sedat - > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e501ce957a786ecd076ea0cfb10b114e6e4d0f40 > [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/include/asm/cpufeature.h?id=d0266046ad54e0c964941364cd82a0d0478ce286 > [3] https://www.spinics.net/lists/linux-mm/msg147669.html > [4] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8bf705d130396e69c04cd8e6e010244ad2ce71f4 Hi Sedat, Sorry for the breakage. This was reported and discussed here: https://groups.google.com/forum/#!topic/kasan-dev/oMgCP37n1vw The plan is to make clang behave the same way as gcc wrt asm constraint checking. But I don't know what's the progress.