Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3792841pxk; Tue, 29 Sep 2020 06:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxwrm3bDwiGoAvQy8VaxEHNT1qF2P2rol/fakS3pHcsupaBvDcr4IC5UzbQVK6H9WhmNIi X-Received: by 2002:a50:bb0d:: with SMTP id y13mr3367460ede.317.1601386186840; Tue, 29 Sep 2020 06:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601386186; cv=none; d=google.com; s=arc-20160816; b=R5wFlAcoWpQwXipSZNZ9TT5TlPfEJfX1n5fMHXcFB1nP94Ai/ICcbmzEro/8FEqEcH oKp94yUrnAe6owHnNL5XgmwwuDnzfEyyS5rUVn0cAVrBmPgrjiHPbxWKZgZlgapZNgA4 QzzahvbPUkD4VtMDuS2MdSO3GCnHDfjFQw/zgqI3nwHXvaK//vXVPaBJxvw/vaWuUrO0 MH5gQB4mJl6s79QcIiS04bDDyI3TX4+0vNwIVv4hQ+sTdX2W/cM8fe1gywTWXl47PKwO sLEV7CN+F/ZN0yggGx4FhC0u7GaZhuojqyTSTv4eDyj60r4aChnMOijJuw/PY45sftgw 0Y9g== 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=H4Xu8v2b9D8UwDOHwcV+mRXvAw3A7ucBPwQFn9EiYDM=; b=PgIq2YcuCB7LD16gev33+Fiot/DNc/NYSZskxW6MMm/yzx7Lmk67Opr2ngCCxyk4C8 1Ae6iYL1xZjCn5LriIQpYbGjgNxvYnsuFsTJKf9WFvc0w+TyxXC3KDAzivcmioStU1qw laQsKgSgN7tcva3dh5wyM6xgDOXYmx0bD8e9xX6tgN+/CPYWWUCiTbwk9/yxHjrwY5uA jUUDZ3rv21R64y/ofDmR7kDUFaklTO5FuMZWM1RQ0MC8SIRVgVYc1e/HTXsiPWtvOnY4 4icwd6bAZTD57SniC2FD8E2wv9KqanUx5P3SyGRd5ILoFOWcU8WdR57+4IWtV/kxEp+z aEvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pChmh01B; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si2620569ejg.212.2020.09.29.06.29.19; Tue, 29 Sep 2020 06:29:46 -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=@google.com header.s=20161025 header.b=pChmh01B; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728617AbgI2N2K (ORCPT + 99 others); Tue, 29 Sep 2020 09:28:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbgI2N2J (ORCPT ); Tue, 29 Sep 2020 09:28:09 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7651AC061755 for ; Tue, 29 Sep 2020 06:28:09 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id g72so4233643qke.8 for ; Tue, 29 Sep 2020 06:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H4Xu8v2b9D8UwDOHwcV+mRXvAw3A7ucBPwQFn9EiYDM=; b=pChmh01BoZcT4vmvwK257DST5eFUknl+gpWQyWDhLe1dJQKgXd3zUDHErRScSGFjyc weu+dYY509lgKO5ocKe4sGRcpSoXr2wOraKtGYsgfrYBKw6yk9vjRJLVswcMrs9dho4l r/hstXOeL1qKzT9/EHqw4bXSzQ+Johei+yyF8cMokxLjXgmUBTTato1xnljmdijsbAqe SrNx+3p72y6bm1vLXptouWCvHhrxCiuxfAILykN+BXIl96lmpivYcE18NetGFo5RqDxW BOSwbGy7gVjOkwOxQ73rfHgsURfMEb72CeVsikgA1x56QlEKDmWlRrP+Z/DEO7zG+fwr TArQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H4Xu8v2b9D8UwDOHwcV+mRXvAw3A7ucBPwQFn9EiYDM=; b=WtoMMuqpuN9cfSF/sc1B3eRHhDa3EMg3LYWijzb/U/ydae++3BRR1QHG35KJMN3EC9 hD/cKs0C6C1jmgXfVFav/4BlMPmD4hCE3G2dcxI2VTGHTCDbO9gnYxLnB9/qDHZFaa+6 4fV2bA8MBxhYsoBm32vvG9fntRWNDWPgw2Rmye2q2+UVvqfjaByjMTPK36iZicgIcQez eDmwJSiwo3j+zAv1QHEauo2MkMTK7H2FmIcdHcEqjllhlInt9YO30HpSLO9EEQK/GepM /PQkKM3hI9pLbdkzppSlCzFBesly0zqaUUahzmYl9t2LUcmcOHMspSAHSYGVcYmwPF7a +s8w== X-Gm-Message-State: AOAM5331TX8mrTgzZBzcUG2LzS7ZJ6YPUxZohO/IecQvrD6yegh0aglq I1VIE2JkXeaDHeSd1W1yHnu3RW0MaZr150db2kwhmg== X-Received: by 2002:a37:5684:: with SMTP id k126mr4127853qkb.43.1601386088243; Tue, 29 Sep 2020 06:28:08 -0700 (PDT) MIME-Version: 1.0 References: <00000000000052569205afa67426@google.com> <20200927145737.GA4746@zn.tnic> In-Reply-To: From: Dmitry Vyukov Date: Tue, 29 Sep 2020 15:27:56 +0200 Message-ID: Subject: Re: general protection fault in perf_misc_flags To: Nick Desaulniers Cc: Borislav Petkov , Alexander Potapenko , Marco Elver , syzbot , Arnaldo Carvalho de Melo , Alexander Shishkin , "H. Peter Anvin" , Jiri Olsa , LKML , Mark Rutland , Ingo Molnar , Namhyung Kim , Peter Zijlstra , syzkaller-bugs , Thomas Gleixner , "the arch/x86 maintainers" , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 10:33 PM Nick Desaulniers wrote: > > On Sun, Sep 27, 2020 at 10:18 PM 'Dmitry Vyukov' via Clang Built Linux > wrote: > > > > On Sun, Sep 27, 2020 at 4:57 PM Borislav Petkov wrote: > > > > > > On Sat, Sep 19, 2020 at 01:32:14AM -0700, syzbot wrote: > > > > Hello, > > > > > > > > syzbot found the following issue on: > > > > > > > > HEAD commit: 92ab97ad Merge tag 'sh-for-5.9-part2' of git://git.libc.or.. > > > > git tree: upstream > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=1069669b900000 > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=cd992d74d6c7e62 > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=ce179bc99e64377c24bc > > > > compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) > > > > > > All below is AFAICT: > > > > > > This compiler you're using is not some official release but some random > > > commit before the v10 release: > > > > > > $ git show c2443155a0fb245c8f17f2c1c72b6ea391e86e81 > > > Author: Hans Wennborg > > > Date: Sat Nov 30 14:20:11 2019 +0100 > > > > > > Revert 651f07908a1 "[AArch64] Don't combine callee-save and local stack adjustment when optimizing for size" > > > ... > > > > > > $ git describe c2443155a0fb245c8f17f2c1c72b6ea391e86e81 > > > llvmorg-10-init-10900-gc2443155a0fb > > > > > > The v10 release is: > > > > > > $ git show llvmorg-10.0.0 > > > tag llvmorg-10.0.0 > > > Tagger: Hans Wennborg > > > Date: Tue Mar 24 12:58:58 2020 +0100 > > > > > > Tag 10.0.0 > > > > > > and v10 has reached v10.0.1 in the meantime: > > > > > > $ git log --oneline c2443155a0fb245c8f17f2c1c72b6ea391e86e81~1..llvmorg-10.0.1 | wc -l > > > 7051 > > > > > > so can you please update your compiler and see if you can still > > > reproduce with 10.0.1 so that we don't waste time chasing a bug which > > > has been likely already fixed in one of those >7K commits. > > Oh, shoot, sorry I didn't catch that. Good find. My next question was > going to be if this is reproducible with a newer compiler release or > not (later emails make this sound like it's no longer considered clang > specific). > > Generally we want coverage of unreleased compiler versions to ensure > we don't ship a broken release. Once the release exists, it's of > questionable value to continue to test a pre-release version of that > branch. > > This isn't the first time where we've had syzcaller reports that were > testing old releases of clang. Maybe we can establish a process for > upgrading the toolchain under test based on some time based cadence, > or coinciding with the upstream LLVM release events? The current hypothesis is that this bug is not related to clang (there are similar crashes with gcc as well). We use unreleased versions of clang as we frequently need recent fixes/features. And then later nobody usually has time to update, if things work. Based on offline discussion with Marco, we probably need to update KMSAN and KASAN to 11 release when it's released. > > +Alex, Marco, > > > > There is suspicion that these may be caused by use of unreleased clang. > > Do we use the same clang as we use for the KMSAN instance? But this is > > not KMSAN machine, so I am not sure who/when/why updated it last to > > this revision. > > I even see we have some clang 11 version: > > https://github.com/google/syzkaller/blob/master/docs/syzbot.md#crash-does-not-reproduce > > > > Is it possible to switch to some released version for both KMSAN and KASAN now? > -- > Thanks, > ~Nick Desaulniers