Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4404857rwj; Tue, 20 Dec 2022 09:38:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jx6yEVapAF129qw1ZK8AIn7ywJ7JhRo0Z4qo7ywmx/Y1Z4eRDge4zJKga01+zwlDbVHZy X-Received: by 2002:a05:6402:1a24:b0:470:1e5a:a333 with SMTP id be4-20020a0564021a2400b004701e5aa333mr27437970edb.34.1671557908845; Tue, 20 Dec 2022 09:38:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671557908; cv=none; d=google.com; s=arc-20160816; b=jsH9Z/Uiulv4klWEJFzCK44+bZDBvPvtcR/YP6IxZBRFl2ORzKp9MeHRy7bsrvP4KG SyULUDNdJ9EaU1r/Qh4JTI90kuKPz57+Y38NQLVuYBq3NewanMXOxs4f4feuIQbqN36g SXQnU9hJ8YrWdq2EFH+9UJiSjvIkRhH01oHXY+mtr5qfK/hrjiPtxY6stunSjSdwVBys CPmTYsyDE3gvv//bGyBiG/uzFzyhpL4PlCRlnfLkzU5XkBal+QG5DW+HF/Yc1I6RZ6jV E/UNULGesZ0wwXo28Yb8Fs9WaOKWkVF9pDAN7vRabWYsrF4FqaavVkYxJNK37ziTBAI7 OI7w== 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=o6/NwTvG1ts0rBmQ9K+XNWZapy07EBTMQ36kpdSkC/M=; b=AqK/Go4O8pc8lmSfNT03d8GpjiUkG6RsASt52G0/GpXpyZQcVwxK5XPdXGqll2ahjx /oHQuvZvU6R5Xzy0sIWqHoId8jBd9kA8LH3URwM46x66ygsw4FrImAD+7RU6TyiGy8yF scCHuig5NTn+fEo7t5ugCiKhXZR6t8c0CW3IdhAXMFk1hopsW3LV9d1T16riX+1uHDMi BkGZn2frXNoo4de9kEUu0iTfzNTBli+HPruJmSKCIdSYar/Yjf+n8pxeeLAB+4rHpLI+ eZSSbwLlG6JI4kj9Abzet5EvDBkcegQLkJnSrdjzXvDeyOlGmjyVtr5+zMZnyjUuNX5e Ys8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SuEARZa3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a0564021e9400b004777f60fedasi1300277edf.28.2022.12.20.09.38.12; Tue, 20 Dec 2022 09:38:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SuEARZa3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234125AbiLTRK5 (ORCPT + 69 others); Tue, 20 Dec 2022 12:10:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234026AbiLTRKp (ORCPT ); Tue, 20 Dec 2022 12:10:45 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13B39C1E for ; Tue, 20 Dec 2022 09:10:43 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id c13so8936160pfp.5 for ; Tue, 20 Dec 2022 09:10:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=o6/NwTvG1ts0rBmQ9K+XNWZapy07EBTMQ36kpdSkC/M=; b=SuEARZa3uOm8eCuCEdXiIA4dUUCYwaj39AXx4CUb7Emp5srU0IfqLWX6UpLoFkhSXZ 4Mpvt6m02Lqbp9omusDqgAq5VhcKkgz7khoAAomedfqx1V48/bPStI1ncUcCylbg3I2B QvcwA7StM6sYXK6TQSvsS6bPctruF9XULezH8Lijef5n63XHHBDfj+IyhhnuHi8c11pG COmMgXNoS1H6eAQYcE3YfG8lCkOqNNS5AHqbwi37wmrPl82aRzed5fYoPwcrKAG/N8oy rfIY2P6TciwstqsQc+Ngkgjr0l5NSK64VOq0/LdvgV/kIm8z/2sbGCgsjdmP8Xyo6EqH nA7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=o6/NwTvG1ts0rBmQ9K+XNWZapy07EBTMQ36kpdSkC/M=; b=4t1RGhW2ZmHV8b1eC8SbLVOTNHRvBJOhQmFaKG/V+JCpbG77ZDr4UWjj2ts/nnDX0S 7YBs4K8d6Z58UtAlMXIilchdkgohjieJE9Cd8rq1+o0vYNe+wr9ix6dMPQ7uFGA/D/eh 41F1s6soie42utSkz/Lifd4KnARkHFhzS47OUmhA9gAL/yTQaw6Ex5VF8aOU+kUyLBOI erjNZ8iHWqEvRD1cosntSlYsTjKPcDSXw30usSUsQHXLl+Zv6v5aBDt56YGSdIcXBQQE cIYKkQ/kZ9BksAnOa8McELUJn1pEpNPXWouNG7gwWrSeOb2BMEtE/AItIgAHCffNk3Tj RLYQ== X-Gm-Message-State: ANoB5pmg6o3pm5E78VA1IkfZF+nkSoJYSUAAXecUOqZ09rwJLkCv5Ecp zVXovYOe/tqh9PxGPOQ6Stus+2Fm3ezZiCZHnMengA== X-Received: by 2002:a63:2160:0:b0:46f:f26e:e8ba with SMTP id s32-20020a632160000000b0046ff26ee8bamr74067527pgm.250.1671556242235; Tue, 20 Dec 2022 09:10:42 -0800 (PST) MIME-Version: 1.0 References: <000000000000a20a2e05f029c577@google.com> In-Reply-To: From: Stanislav Fomichev Date: Tue, 20 Dec 2022 09:10:30 -0800 Message-ID: Subject: Re: [syzbot] KASAN: use-after-free Read in put_pmu_ctx To: Peter Zijlstra Cc: syzbot , acme@kernel.org, alexander.shishkin@linux.intel.com, bpf@vger.kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mark.rutland@arm.com, mingo@redhat.com, namhyung@kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: multipart/mixed; boundary="0000000000000ba28505f0458408" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 --0000000000000ba28505f0458408 Content-Type: text/plain; charset="UTF-8" On Tue, Dec 20, 2022 at 12:22 AM Peter Zijlstra wrote: > > On Mon, Dec 19, 2022 at 11:33:29AM -0800, sdf@google.com wrote: > > On 12/19, Peter Zijlstra wrote: > > > On Mon, Dec 19, 2022 at 12:04:43AM -0800, syzbot wrote: > > > > > HEAD commit: 13e3c7793e2f Merge tag 'for-netdev' of > > > https://git.kernel... > > > > git tree: bpf > > > > console+strace: https://syzkaller.appspot.com/x/log.txt?x=177df7e0480000 > > > > kernel config: > > > https://syzkaller.appspot.com/x/.config?x=b0e91ad4b5f69c47 > > > > dashboard link: > > > https://syzkaller.appspot.com/bug?extid=b8e8c01c8ade4fe6e48f > > ^ so syzbot knows what tree and config were used to trigger the report, > then why: I haven't used it before and wasn't sure whether it would take the last commit from the branch of the one where it failed. Adding them shouldn't hurt, right? > > Let's maybe try it this way: > > > > #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git > > 13e3c7793e2f > > do you have to repeat that again in order for it to test something? Yeah, I was trying to understand why it doesn't like my patch. It seems I can retry with the patch attached which hopefully should fix the possible formatting issue; let's see. #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git 13e3c7793e2f --0000000000000ba28505f0458408 Content-Type: text/x-patch; charset="US-ASCII"; name="pmu.patch" Content-Disposition: attachment; filename="pmu.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lbwhemfp0 ZGlmZiAtLWdpdCBhL2tlcm5lbC9ldmVudHMvY29yZS5jIGIva2VybmVsL2V2ZW50cy9jb3JlLmMK aW5kZXggZTQ3OTE0YWM4NzMyLi5iYmZmNTUxNzgzZTEgMTAwNjQ0Ci0tLSBhL2tlcm5lbC9ldmVu dHMvY29yZS5jCisrKyBiL2tlcm5lbC9ldmVudHMvY29yZS5jCkBAIC0xMjY4OSw3ICsxMjY4OSw4 IEBAIFNZU0NBTExfREVGSU5FNShwZXJmX2V2ZW50X29wZW4sCiAJcmV0dXJuIGV2ZW50X2ZkOwog CiBlcnJfY29udGV4dDoKLQkvKiBldmVudC0+cG11X2N0eCBmcmVlZCBieSBmcmVlX2V2ZW50KCkg Ki8KKwlwdXRfcG11X2N0eChldmVudC0+cG11X2N0eCk7CisJZXZlbnQtPnBtdV9jdHggPSBOVUxM OyAvKiBfZnJlZV9ldmVudCgpICovCiBlcnJfbG9ja2VkOgogCW11dGV4X3VubG9jaygmY3R4LT5t dXRleCk7CiAJcGVyZl91bnBpbl9jb250ZXh0KGN0eCk7Cg== --0000000000000ba28505f0458408--