syzbot


WARNING in perf_pending_event

Status: fixed on 2022/03/08 16:11
Subsystems: perf
[Documentation on labels]
Reported-by: syzbot+23843634c323e144fd0b@syzkaller.appspotmail.com
Fix commit: 73743c3b0922 perf: Ignore sigtrap for tracepoints destined for other tasks
First crash: 991d, last: 902d
Cause bisection: failed (error log, bisect log)
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.15 000/179] 5.15.6-rc1 review 189 (189) 2021/12/01 02:29
[tip: perf/urgent] perf: Ignore sigtrap for tracepoints destined for other tasks 1 (1) 2021/11/23 08:53
[PATCH] perf: Ignore sigtrap for tracepoints destined for other tasks 2 (2) 2021/11/17 14:07
[syzbot] WARNING in perf_pending_event 0 (1) 2021/11/09 12:17
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2021/11/05 02:18 21m bisect fix upstream job log (0) log
2021/10/06 01:57 21m bisect fix upstream job log (0) log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8449 at kernel/events/core.c:6407 perf_sigtrap kernel/events/core.c:6407 [inline]
WARNING: CPU: 0 PID: 8449 at kernel/events/core.c:6407 perf_pending_event_disable kernel/events/core.c:6431 [inline]
WARNING: CPU: 0 PID: 8449 at kernel/events/core.c:6407 perf_pending_event+0x4ba/0x560 kernel/events/core.c:6474
Modules linked in:
CPU: 0 PID: 8449 Comm: syz-executor996 Not tainted 5.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:perf_sigtrap kernel/events/core.c:6407 [inline]
RIP: 0010:perf_pending_event_disable kernel/events/core.c:6431 [inline]
RIP: 0010:perf_pending_event+0x4ba/0x560 kernel/events/core.c:6474
Code: ff 4c 89 e7 e8 d7 78 27 00 e9 2f ff ff ff e8 ad 78 27 00 e9 3d fc ff ff 4c 89 ff e8 30 79 27 00 e9 fb fb ff ff e8 b6 ba e1 ff <0f> 0b e9 86 fd ff ff e8 ba 78 27 00 e9 7b fe ff ff 48 89 df e8 9d
RSP: 0018:ffffc90000007f38 EFLAGS: 00010046
RAX: 0000000080010001 RBX: ffff88802a04fc40 RCX: 0000000000000000
RDX: ffff8880377e0040 RSI: ffffffff8193268a RDI: ffff888026467958
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000020
R10: ffffffff819322cb R11: 0000000000000000 R12: ffff8880377e0040
R13: ffff888026467800 R14: ffff88802a04f800 R15: ffff88802a04fc30
FS:  0000000000545300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004d05c0 CR3: 000000003d54f000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 irq_work_single+0x120/0x1f0 kernel/irq_work.c:155
 irq_work_run_list+0x91/0xc0 kernel/irq_work.c:177
 irq_work_run+0x54/0xd0 kernel/irq_work.c:186
 __sysvec_irq_work+0x95/0x3d0 arch/x86/kernel/irq_work.c:22
 sysvec_irq_work+0x8e/0xc0 arch/x86/kernel/irq_work.c:17
 </IRQ>
 asm_sysvec_irq_work+0x12/0x20 arch/x86/include/asm/idtentry.h:664
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:199
Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 3e 1a 2d f8 48 89 ef e8 e6 8f 2d f8 e8 21 cb 4d f8 fb bf 01 00 00 00 <e8> 36 6a 21 f8 65 8b 05 cf b0 d4 76 85 c0 74 02 5d c3 e8 2b 06 d3
RSP: 0018:ffffc90001a17ee8 EFLAGS: 00000202
RAX: 0000000000000315 RBX: 0000000000000000 RCX: 1ffffffff1ad8461
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff888021b9cb40 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff817b0a38 R11: 0000000000000000 R12: ffff888033f2f320
R13: 0000000000000000 R14: ffff888021b9cb40 R15: ffff8880377e0040
 spin_unlock_irq include/linux/spinlock.h:404 [inline]
 do_group_exit+0x29a/0x310 kernel/exit.c:919
 __do_sys_exit_group kernel/exit.c:933 [inline]
 __se_sys_exit_group kernel/exit.c:931 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:931
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x444379
Code: 00 49 c7 c0 b8 ff ff ff be e7 00 00 00 ba 3c 00 00 00 eb 12 0f 1f 44 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00
RSP: 002b:00007fffad23f4c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00000000004ca370 RCX: 0000000000444379
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffb8 R09: 0000000000f0b5ff
R10: 00007fffad23f550 R11: 0000000000000246 R12: 00000000004ca370
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/08 17:41 upstream 85a90500f9a1 6972b106 .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING in perf_pending_event
2021/08/08 17:26 upstream 85a90500f9a1 6972b106 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in perf_pending_event
2021/09/06 01:57 bpf 57f780f1c433 d236a457 .config console log report info ci-upstream-bpf-kasan-gce WARNING in perf_pending_event
* Struck through repros no longer work on HEAD.