syzbot


INFO: task hung in perf_event_free_task (3)

Status: auto-obsoleted due to no activity on 2022/08/31 14:29
Reported-by: syzbot+347f9f98572e20abc94b@syzkaller.appspotmail.com
First crash: 1079d, last: 933d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in perf_event_free_task C error 1 385d 385d 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 1289d 1361d 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 631d 801d 0/1 upstream: reported on 2022/09/12 12:14
upstream INFO: task hung in perf_event_free_task perf C done error 40 438d 1946d 0/28 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 272d 272d 0/3 auto-obsoleted due to no activity on 2024/06/02 07:34
linux-6.1 INFO: task hung in perf_event_free_task origin:upstream missing-backport C unreliable 3 331d 436d 0/3 upstream: reported C repro on 2023/09/12 07:14
linux-4.19 INFO: task hung in perf_event_free_task 5 1503d 1899d 0/1 auto-closed as invalid on 2021/02/06 21:15
upstream INFO: task can't die in perf_event_free_task perf syz unreliable 6 763d 1463d 0/28 auto-obsoleted due to no activity on 2023/04/21 23:56

Sample crash report:
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
Bluetooth: hci1: command 0x0406 tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task syz-executor.3:15345 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3  D27208 15345   8107 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 perf_event_free_task+0x4cf/0x660 kernel/events/core.c:11372
 copy_process.part.0+0x3710/0x8260 kernel/fork.c:2137
 copy_process kernel/fork.c:1710 [inline]
 _do_fork+0x22f/0xf30 kernel/fork.c:2219
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f4158e5f0e9
Code: Bad RIP value.
RSP: 002b:00007f41577d4118 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f4158f71f60 RCX: 00007f4158e5f0e9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f4158eb908d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdd6ab5cdf R14: 00007f41577d4300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
 #0: 00000000fba84e69 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
2 locks held by agetty/8041:
 #0: 000000005603e015 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272
 #1: 000000007b467f93 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154

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

NMI backtrace for cpu 1
CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-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+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 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+0x991/0xe60 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: 7798 Comm: rs:main Q:Reg Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:97
Code: ff 48 89 df e8 11 dd 35 00 e9 ab fe ff ff 4c 89 ef e8 04 dd 35 00 e9 23 fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <48> 8b 34 24 65 48 8b 04 25 c0 df 01 00 65 8b 15 cc 59 9f 7e 81 e2
RSP: 0018:ffff8880928af9d8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8373fe8b
RDX: 0000000000000000 RSI: ffff88808f18e640 RDI: 0000000000000007
RBP: 1ffff11012515f3d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 00000000000000df
R13: 00000000000000df R14: 0000000000000000 R15: ffff8880928afd20
FS:  00007f1ee5536700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2c6d4d4008 CR3: 00000000a92f7000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 stac arch/x86/include/asm/smap.h:58 [inline]
 fault_in_pages_readable include/linux/pagemap.h:610 [inline]
 iov_iter_fault_in_readable+0x1b0/0x3f0 lib/iov_iter.c:421
 generic_perform_write+0x15d/0x4d0 mm/filemap.c:3160
 __generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
 ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1ee7f7a1cd
Code: c2 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 f7 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007f1ee5535590 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f1edc023fb0 RCX: 00007f1ee7f7a1cd
RDX: 00000000000003e1 RSI: 00007f1edc023fb0 RDI: 0000000000000006
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00007f1edc023d30
R13: 00007f1ee55355b0 R14: 000055e7aeecd360 R15: 00000000000003e1
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 89 df             	mov    %rbx,%rdi
   3:	e8 11 dd 35 00       	callq  0x35dd19
   8:	e9 ab fe ff ff       	jmpq   0xfffffeb8
   d:	4c 89 ef             	mov    %r13,%rdi
  10:	e8 04 dd 35 00       	callq  0x35dd19
  15:	e9 23 fe ff ff       	jmpq   0xfffffe3d
  1a:	90                   	nop
  1b:	90                   	nop
  1c:	90                   	nop
  1d:	90                   	nop
  1e:	90                   	nop
  1f:	90                   	nop
  20:	90                   	nop
  21:	90                   	nop
  22:	90                   	nop
  23:	90                   	nop
  24:	90                   	nop
  25:	90                   	nop
  26:	90                   	nop
  27:	90                   	nop
  28:	90                   	nop
* 29:	48 8b 34 24          	mov    (%rsp),%rsi <-- trapping instruction
  2d:	65 48 8b 04 25 c0 df 	mov    %gs:0x1dfc0,%rax
  34:	01 00
  36:	65 8b 15 cc 59 9f 7e 	mov    %gs:0x7e9f59cc(%rip),%edx        # 0x7e9f5a09
  3d:	81                   	.byte 0x81
  3e:	e2                   	.byte 0xe2

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/03 14:29 linux-4.19.y 3f8a27f9e27b 2df221f6 .config console log report info ci2-linux-4-19 INFO: task hung in perf_event_free_task
2022/03/13 23:15 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info ci2-linux-4-19 INFO: task hung in perf_event_free_task
2021/12/08 11:05 linux-4.19.y 3f8a27f9e27b a4a2a501 .config console log report info ci2-linux-4-19 INFO: task hung in perf_event_free_task
* Struck through repros no longer work on HEAD.