syzbot


WARNING in perf_event_open

Status: fixed on 2024/02/27 06:55
Subsystems: perf
[Documentation on labels]
Reported-by: syzbot+07144c543a5c002c7305@syzkaller.appspotmail.com
Fix commit: 7e2c1e4b34f0 perf: Fix perf_event_validate_size() lockdep splat
First crash: 116d, last: 100d
Cause bisection: introduced by (bisect log) :
commit 382c27f4ed28f803b1f1473ac2d8db0afc795a1b
Author: Peter Zijlstra <peterz@infradead.org>
Date: Wed Nov 29 14:24:52 2023 +0000

  perf: Fix perf_event_validate_size()

Crash: WARNING in perf_event_open (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 7e2c1e4b34f07d9aa8937fab88359d4a0fce468e
Author: Mark Rutland <mark.rutland@arm.com>
Date: Fri Dec 15 11:24:50 2023 +0000

  perf: Fix perf_event_validate_size() lockdep splat

  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [perf?] WARNING in perf_event_open 2 (7) 2024/02/23 10:42
[PATCH] perf: fix WARNING in perf_event_open 4 (4) 2024/01/05 11:32
Re: [syzbot] [perf?] WARNING in perf_event_open 1 (1) 2023/12/20 10:49
Last patch testing requests (7)
Created Duration User Patch Repo Result
2024/01/18 22:01 26m retest repro bpf-next OK log
2024/01/18 17:15 1h30m retest repro bpf-next OK log
2024/01/18 17:15 21m retest repro bpf-next OK log
2024/01/18 17:15 23m retest repro bpf-next OK log
2024/01/18 17:15 21m retest repro bpf-next OK log
2024/01/18 17:15 20m retest repro bpf-next OK log
2023/12/26 00:52 20m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git 441c725ed592 OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5059 at kernel/events/core.c:1950 perf_event_validate_size kernel/events/core.c:1950 [inline]
WARNING: CPU: 0 PID: 5059 at kernel/events/core.c:1950 __do_sys_perf_event_open+0x2748/0x2c70 kernel/events/core.c:12655
Modules linked in:
CPU: 0 PID: 5059 Comm: syz-executor257 Not tainted 6.7.0-rc5-syzkaller-01540-g5abde6246522 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:perf_event_validate_size kernel/events/core.c:1950 [inline]
RIP: 0010:__do_sys_perf_event_open+0x2748/0x2c70 kernel/events/core.c:12655
Code: ff 48 8d b8 a8 00 00 00 e8 55 07 cf 08 bf 01 00 00 00 89 c3 89 c6 e8 47 71 d5 ff 83 eb 01 0f 84 2d ed ff ff e8 c9 75 d5 ff 90 <0f> 0b 90 e9 1f ed ff ff e8 bb 75 d5 ff be 03 00 00 00 48 89 ef e8
RSP: 0018:ffffc90003d7fd90 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000ffffffff RCX: ffffffff81b227c9
RDX: ffff88805b738000 RSI: ffffffff81b227d7 RDI: 0000000000000005
RBP: ffff888017e68608 R08: 0000000000000005 R09: 0000000000000001
R10: 0000000000000000 R11: ffffffff915ec900 R12: ffff8880183b1a00
R13: 1ffff920007affbd R14: ffff88805b738000 R15: ffff888017e68608
FS:  000055555688c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000016c CR3: 00000000778d2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f9bd6e45369
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd8a638388 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007ffd8a638568 RCX: 00007f9bd6e45369
RDX: 00000000ffffffff RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007f9bd6eb8610 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd8a638558 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (43004):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/02 06:04 bpf-next 5abde6246522 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/31 11:12 bpf-next 5abde6246522 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/29 07:19 bpf-next 5abde6246522 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/28 01:03 bpf-next 5abde6246522 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/25 13:59 bpf-next 5abde6246522 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/25 11:43 bpf-next 5abde6246522 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/22 01:40 bpf 74769d810ead 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in perf_event_open
2024/01/04 08:19 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 08:05 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 07:47 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 07:13 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 07:00 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 06:26 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 05:55 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 05:07 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 04:45 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 04:21 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 03:57 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 03:24 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 03:03 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 02:49 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 02:27 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 02:09 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 01:52 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 01:20 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 01:05 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 00:52 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/04 00:22 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 23:59 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 23:39 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 23:02 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 22:33 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 22:22 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 22:03 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 21:49 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 21:10 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 20:50 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 20:32 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 20:05 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 19:49 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 19:36 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 19:29 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 19:21 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 19:15 bpf-next 9c9d9f683cab 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 18:15 bpf-next 5abde6246522 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 17:47 bpf-next 5abde6246522 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 17:08 bpf-next 5abde6246522 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 16:47 bpf-next 5abde6246522 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2024/01/03 16:34 bpf-next 5abde6246522 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/20 09:56 bpf-next 441c725ed592 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
2023/12/19 14:44 bpf-next f7dd48ea76be 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in perf_event_open
* Struck through repros no longer work on HEAD.