Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp494787pxk; Wed, 23 Sep 2020 08:21:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYj0RZZs37ROxqVf1z9u41CbAd9wyKMZznfySf/Mbt7lVXvVsaM8XI/uT3eIgiMO/nphf0 X-Received: by 2002:a17:906:af92:: with SMTP id mj18mr176835ejb.242.1600874498422; Wed, 23 Sep 2020 08:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600874498; cv=none; d=google.com; s=arc-20160816; b=UCRCz1aWdC22fHiVxdDCmI3FK/c1PFydfca86bxaWPGT5c+cnuuDYWjtaAMUIzfLLz qVzevHmmMRvjrUtEsaKBseU7wFu8AzaR5mbmnpqNmjvWFT6Q1W+njUKq0DSiyn8C9EuJ CCuq53JJ4ePSPKvpy+kMmfXLNnH2byCI0D64sOqrhFDz72l7sVpEvt2TYLAZ+ueoIFaI /xLu4Vp5GUqqpFDq5DWfeDWDXoVUwdX3ZBcAUxpA1PXHw8PoFF1TqhFszAJ99NJHQdOx wW37nljs+PWuQYuaVPR8l2ZRMuvCr9LCqZiSv3NRoElWY28OPypgZ2lDxgUOJISJKl/8 DEnA== 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=lTeQf/iiIfTaaX6G70ASCG2VDP9jJjAH1D6D+4QSlxU=; b=S8upwEQYYIZwVaomc0d7KJG1bw1Z2PG0KxTjQtoVP2MuXFof9WfCaUxnnpPN5skJKV QtwDX6dxPb9XilETKE7g8A5Vm3zCD0U3VPT5FSe3F/oAyAifDBqeCw6AHIJtWTdEpgva 8t04pCh1WWnDbonwEIaAZMoLZ9p46gByPdNxthPNP7W/IJRmsSsBDuDaQoSQW/PP+3nI sXteUkU5+Yo+hxFahRNqDbY2l05Yc4RxIPo1nPOC+I6l6tfDjYYiaAz5VDMdur/Yr9xM DFxCgJRLoxDVCXUmKDnI0jwLuytqMcktBzgvYXFhF7kyHBcYKngj2IPaVvq4rsuHCoxs PcXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=G7Jy7Xyx; 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 r25si85334edo.12.2020.09.23.08.21.14; Wed, 23 Sep 2020 08:21:38 -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=G7Jy7Xyx; 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 S1726770AbgIWPUT (ORCPT + 99 others); Wed, 23 Sep 2020 11:20:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgIWPUT (ORCPT ); Wed, 23 Sep 2020 11:20:19 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08892C0613CE for ; Wed, 23 Sep 2020 08:20:19 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id ef16so150799qvb.8 for ; Wed, 23 Sep 2020 08:20:18 -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=lTeQf/iiIfTaaX6G70ASCG2VDP9jJjAH1D6D+4QSlxU=; b=G7Jy7Xyxk2moVyIN3RSXtONJjkbRXAqVY345iwtIqc9zIxIcQLNCl0CygkRLmK7eLH gOoFQvsui2zCaH59wJi0E+/HJ531+pftSyoVq6COZu9x2J9rmk/Gjs3e1PAE/cxViWnt MIDk3jFqqTdbT329SR/p7+UYstc3kG5Jlbqresvlv2Qrkld1Lk404zDKgTMhIVhZLMOM Zrf/9uZ+EkyO6Qa4x/TCeMqZgIbhtUmpLeHWLk62x45yK0SNGSwS+0+UVRMw0kqOXycZ g7xq/da0ESu0DZcRLUSoTPN3R2KxcWRh3RA1ITw3RjHKbBHASoOWBxlWahezB9sFj81h P/Ng== 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=lTeQf/iiIfTaaX6G70ASCG2VDP9jJjAH1D6D+4QSlxU=; b=oIinut+3AUhKbmK0szMzZJQcljznSfJlaAAxe95YYFsIgs6aXXdR3NCmYpzXpmrO6p FdH+n3Zrxrh+YPSri69K+6p0Az58VS63rLbGJZSYOEnvzMig99cswZ3065cAbBJBUcs3 wJ+dLbLp/5VGo+dRwZYlo45FvCltHS3mXje6I2ZzmmlMkHS97TAav+gg36IMHP3dAN0y Tu5Ar2ym3IS77SEs+qIKTd++JXVl+edFkm3CCtXRuak1Hsc6oJHzxMrajt8U0xP6rmCV DUl+RAHGddlc+2HdT31XlB4YQ7Eo9o9CvCdfeYWVEow9zyebZYHjI/A7lJEeaX4g0kmB BClw== X-Gm-Message-State: AOAM532w12MBJa6/zjDUZRSStqPcyiW4s0gFONB++O7son6ycFJXR4aN lKupyhRc3veoLJ5nXoPUgWnG+ElS5LPyPdUCD5w2sw== X-Received: by 2002:ad4:47cc:: with SMTP id p12mr403443qvw.26.1600874417945; Wed, 23 Sep 2020 08:20:17 -0700 (PDT) MIME-Version: 1.0 References: <00000000000052569205afa67426@google.com> <20200919110831.GD7462@zn.tnic> <20200921221336.GN5901@zn.tnic> <20200923090336.GD28545@zn.tnic> <20200923103431.GF28545@zn.tnic> In-Reply-To: <20200923103431.GF28545@zn.tnic> From: Dmitry Vyukov Date: Wed, 23 Sep 2020 17:20:06 +0200 Message-ID: Subject: Re: general protection fault in perf_misc_flags To: Borislav Petkov Cc: Nick Desaulniers , Josh Poimboeuf , 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 Wed, Sep 23, 2020 at 12:34 PM Borislav Petkov wrote: > > On Wed, Sep 23, 2020 at 11:24:48AM +0200, Dmitry Vyukov wrote: > > 3. Run syzkaller locally with custom patches. > > Let's say I wanna build the kernel with clang-10 using your .config and > run it in a vm locally. What are the steps in order to reproduce the > same workload syzkaller runs in the guest on the GCE so that I can at > least try get as close as possible to reproducing locally? It's a random fuzzing workload. You can get this workload by running syzkaller locally: https://github.com/google/syzkaller/blob/master/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md The exact clang compiler syzbot used is available here: https://github.com/google/syzkaller/blob/master/docs/syzbot.md#crash-does-not-reproduce