From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.69 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795085678; b=c0ilR4jaJWrZjJycdbEkQI8+c/PduiOI2rUKFf9Jv+onf1F/U3KIIo5ttU5KrMrow8IO 3TkELMNSj6oqYCtsSMAt1jFCamekTN0A9KT5/MncjuyKP51/yvknKtPf4zE+ChmDYk646 SBsAFue2jcGmVCzW1iLn03DAWGi+65aFlhePF/tBQvZj/kCSwchT00NB/6efUcjDaTddm KRATHLR8myOQWJ0Ma5JZCXS5ovBAQ3HbC/sFkNjBDNgVcZ1RIdnx45RFccK1h4KzY84HJ H+ulUiYKrIA4FNDMVg+sN4URpXDi/9yGSJhaRzMOSflNeIHbDwMU/ZaBlpGEJoXrLYQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795085678; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:MIME-Version:X-Received:Date: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID: Subject:From:To:Content-Type; bh=MkA6JRnq7TUj0+O96I1vYHcMozmgpupu4tJZmg3q1dM=; b=FDGrtn9nMuiohc+AfQdnL4TaVfFMYTVWhF+tvB1mjkDvsdmjH2iUIO8zy2/kwsLByG/R HZmhlY/tO+yxUts3g/UC8MGV/rSO1/3hPvdmhVdwEK1CXv1jP5INp+rsnODP8PSdSguy3 EeEyIKZpqUPeg8IyLnEG3oUJwnhWYDhOWlSwPH+FFMyESJSMsPC+SBxATiDGVFcwiTMI4 WsFE1ZyrqbIkOvPqHExQwP3vXCIlVx6MT4GUSet6TwM12US/bNtEffLg+DyQBx+D3NLi6 5rquhADI3kypKMZA6SzhrcxuzC68t/h9i39eSQ56UW3MhOcjJXgE5m5nS5l4ruwDw1w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=209.85.210.69 Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4707606A32A for ; Thu, 19 Nov 2026 10:54:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A4707606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f69.google.com with SMTP id 46e09a7af769-8520e83f715so2137526a34.2 for ; Thu, 19 Nov 2026 02:54:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795085676; x=1795690476; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=MkA6JRnq7TUj0+O96I1vYHcMozmgpupu4tJZmg3q1dM=; b=wz9jLmuagBtry8qrWOiygkmNilYHilUxXvBMQx5DVCWhcxWnfxMmPQiN5oSNBUwBkV k2okI3aMfe8CqoWbp9pxFWZHQVyS3aCaylqGKPUClq4N33v/EbfhHApb/4HXOAI1xFNI 9alxsFX7OgUW4K7MaDvzJeGZ2K5NhTww+mbocKTJlr2RUDW8AoB1vFFTiYPPXeEPr77v x7aCAFtPWYiPL/78pDh0fbjLnhewJo8HSuhGGzCmW7OYLekWI9hjB0eswf/pHQMd2TmZ qA+lwZ+Odva/yph/gyPYwUZr7e95wRAADXjXaml9d5Oid3/ohqCBq6KdkYzlc776zBFt eLQw== X-Forwarded-Encrypted: i=1; AL+hErGxJGqKj90ol2+NVXRx1HTP+Y5TG9dHKejeUdIjafdaTlQjetaUp1RNdoMsPdkHgOxKqQjc0RGrRzdq3sm6Rd4W@vger.kernel.org X-Gm-Message-State: APuU4Z+5D1xE6Q/gWEY6RHzC0tFgsmTJGaCteOnls/AfC3g5NpFl2yjO wwu1TkNycMHgvHMvhiHJ6hzkh4El34HRqvdMV2QwQx/ozHZqS6cnfuKDm1Dm5jPdDscHiBJloPh mkbbtXwCSwZkf7fxjzM+YpTbVNYfzLuPnKkkVd5L3dE/1jfvkF6VIJzE2ZUM= X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6808:238b:b0:4b9:e6ab:d07b with SMTP id 5614622812f47-5773d52f18fmr5676083b6e.27.1795085676602; Thu, 19 Nov 2026 02:54:36 -0800 (PST) Date: Thu, 19 Nov 2026 02:54:36 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6afed56c.c909bf2b.1e1a73.0000.GAE@google.com> Subject: [syzbot] [perf?] KCSAN: data-race in __perf_event_overflow / perf_pending_task From: syzbot To: acme@kernel.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, irogers@google.com, james.clark@linaro.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, peterz@infradead.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 666539eecdf4 Merge tag 'assoc-array-fixes-v2' git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12c9e5c3580000 kernel config: https://syzkaller.appspot.com/x/.config?x=b949a9d3c1d44ceb dashboard link: https://syzkaller.appspot.com/bug?extid=a480b581a0bf5f5e8b0d compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a943b9915869/disk-666539ee.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/9bfd839d7ea5/vmlinux-666539ee.xz kernel image: https://storage.googleapis.com/syzbot-assets/0f20b9720a71/bzImage-666539ee.xz AI-generated root cause summary: In kernel/events/core.c, perf_pending_task() clears event->pending_work to 0 before calling perf_sigtrap(), which reads event->pending_addr. Because perf_pending_task() runs in task context with interrupts enabled, a concurrent interrupt (such as an hrtimer interrupt calling __perf_event_overflow()) on the same CPU observes event->pending_work == 0, considers the pending slot available, re-enqueues event->pending_task via task_work_add(), and overwrites event->pending_addr while perf_sigtrap() is concurrently reading it. full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=a480b581a0bf5f5e8b0d IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+a480b581a0bf5f5e8b0d@syzkaller.appspotmail.com ================================================================== BUG: KCSAN: data-race in __perf_event_overflow / perf_pending_task write to 0xffff88811b623050 of 8 bytes by interrupt on cpu 1: __perf_event_overflow+0x7f1/0x950 kernel/events/core.c:10959 perf_event_overflow kernel/events/core.c:11004 [inline] perf_swevent_hrtimer+0x293/0x320 kernel/events/core.c:12424 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x1f8/0x540 kernel/time/hrtimer.c:2136 hrtimer_interrupt+0x27b/0x870 kernel/time/hrtimer.c:2255 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline] __sysvec_apic_timer_interrupt+0x5f/0x1f0 arch/x86/kernel/apic/apic.c:1068 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x6f/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 native_pause arch/x86/include/asm/vdso/processor.h:13 [inline] delay_tsc+0x43/0xa0 arch/x86/lib/delay.c:76 udelay include/asm-generic/delay.h:64 [inline] delay_access kernel/kcsan/core.c:332 [inline] kcsan_setup_watchpoint+0x255/0x3f0 kernel/kcsan/core.c:622 perf_sigtrap kernel/events/core.c:7676 [inline] perf_pending_task+0x16a/0x220 kernel/events/core.c:7780 task_work_run+0x145/0x1a0 kernel/task_work.c:233 resume_user_mode_work+0x85/0xa0 include/linux/resume_user_mode.h:50 __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x170/0x640 kernel/entry/common.c:152 sysvec_apic_timer_interrupt+0x44/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 read to 0xffff88811b623050 of 8 bytes by task 4399 on cpu 1: perf_sigtrap kernel/events/core.c:7676 [inline] perf_pending_task+0x16a/0x220 kernel/events/core.c:7780 task_work_run+0x145/0x1a0 kernel/task_work.c:233 resume_user_mode_work+0x85/0xa0 include/linux/resume_user_mode.h:50 __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x170/0x640 kernel/entry/common.c:152 sysvec_apic_timer_interrupt+0x44/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4399 Comm: syz.0.427 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ================================================================== --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup