syzbot


INFO: task hung in perf_event_free_task

Status: auto-closed as invalid on 2021/02/06 21:15
Reported-by: syzbot+4f1587274f1d080eb3ad@syzkaller.appspotmail.com
First crash: 1689d, last: 1294d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in perf_event_free_task (3) 3 723d 869d 0/1 auto-obsoleted due to no activity on 2022/08/31 14:29
linux-5.15 INFO: task hung in perf_event_free_task C error 1 176d 176d 0/3 auto-obsoleted due to no activity on 2024/02/09 23:23
linux-4.19 INFO: task hung in perf_event_free_task (2) 2 1079d 1151d 0/1 auto-closed as invalid on 2021/09/09 09:13
linux-4.19 INFO: task hung in perf_event_free_task (4) 4 422d 591d 0/1 upstream: reported on 2022/09/12 12:14
upstream INFO: task hung in perf_event_free_task perf C done error 40 228d 1737d 0/26 auto-obsoleted due to no activity on 2023/12/19 10:14
linux-5.15 INFO: task hung in perf_event_free_task (2) 1 62d 62d 0/3 upstream: reported on 2024/02/23 07:34
linux-6.1 INFO: task hung in perf_event_free_task origin:upstream C error 3 122d 226d 0/3 upstream: reported C repro on 2023/09/12 07:14

Sample crash report:
netlink: 280 bytes leftover after parsing attributes in process `syz-executor.3'.
INFO: task syz-executor.1:380 blocked for more than 140 seconds.
      Not tainted 4.19.150-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.1  D27792   380   6510 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x8e5/0x22e0 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 perf_event_free_task+0x4cf/0x660 kernel/events/core.c:11348
 copy_process.part.0+0x3723/0x7fb0 kernel/fork.c:2125
 copy_process kernel/fork.c:1694 [inline]
 _do_fork+0x22f/0x1020 kernel/fork.c:2207
 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45de59
Code: Bad RIP value.
RSP: 002b:00007fe16ef69c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000001fc0 RCX: 000000000045de59
RDX: 9999999999999999 RSI: 0000000000000000 RDI: 0000000022086605
RBP: 000000000118bf70 R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c
R13: 00007fff8e53e3af R14: 00007fe16ef6a9c0 R15: 000000000118bf2c

Showing all locks held in the system:
2 locks held by kworker/u4:3/603:
 #0: 00000000d77c09ea (&rq->lock){-.-.}, at: idle_balance kernel/sched/fair.c:9701 [inline]
 #0: 00000000d77c09ea (&rq->lock){-.-.}, at: pick_next_task_fair+0x5ab/0x1630 kernel/sched/fair.c:6840
 #1: 00000000d77c09ea (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1823 [inline]
 #1: 00000000d77c09ea (&rq->lock){-.-.}, at: attach_tasks kernel/sched/fair.c:7431 [inline]
 #1: 00000000d77c09ea (&rq->lock){-.-.}, at: load_balance+0xb06/0x24e0 kernel/sched/fair.c:8748
1 lock held by khungtaskd/1095:
 #0: 0000000033128e90 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x291 kernel/locking/lockdep.c:4440
1 lock held by systemd-journal/3712:
1 lock held by in:imklog/6180:
 #0: 0000000089be9e27 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:767

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 1095 Comm: khungtaskd Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x22c/0x33e lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x18/0x3d lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1eb lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0xa62/0x1020 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3712 Comm: systemd-journal Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:806 [inline]
RIP: 0010:lock_is_held_type+0x8b/0x340 kernel/locking/lockdep.c:3941
Code: 89 63 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 9c 02 00 00 48 83 3d 3c 2a 0c 08 00 0f 84 06 02 00 00 9c <58> 0f 1f 44 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 44 24 10 48
RSP: 0018:ffff8880946d7d60 EFLAGS: 00000286
RAX: 1ffffffff12c713c RBX: ffffffff897351a0 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: ffff8880946cc8c4
RBP: ffff8880946cc040 R08: 0000000000d8db90 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000bff
R13: 0000000000000000 R14: ffff88821bc44b00 R15: ffffffff8b3adaf8
FS:  00007f7e974aa8c0(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7e94a2f008 CR3: 000000009402b000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/09 21:15 linux-4.19.y a1b977b49b66 93817d89 .config console log report info ci2-linux-4-19
2020/06/29 22:46 linux-4.19.y a39e75458e1c 917afeaa .config console log report ci2-linux-4-19
2020/04/01 18:10 linux-4.19.y 54b4fa6d3955 a34e2c33 .config console log report ci2-linux-4-19
2019/12/24 22:26 linux-4.19.y 672481c2deff be5c2c81 .config console log report ci2-linux-4-19
2019/09/10 09:43 linux-4.19.y e7d2672c66e4 a60cb4cd .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.