INFO: task syz-executor.4:6421 blocked for more than 143 seconds. Not tainted 5.10.162 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27952 pid: 6421 ppid: 5797 flags:0x10000004 Call Trace: context_switch kernel/sched/core.c:3797 [inline] __schedule+0x848/0x1ed0 kernel/sched/core.c:4546 schedule+0xcb/0x270 kernel/sched/core.c:4624 schedule_preempt_disabled+0xc/0x20 kernel/sched/core.c:4683 __mutex_lock_common kernel/locking/mutex.c:1047 [inline] __mutex_lock+0x8e3/0x12a0 kernel/locking/mutex.c:1109 perf_event_ctx_lock_nested+0x243/0x4a0 kernel/events/core.c:1386 perf_event_ctx_lock kernel/events/core.c:1399 [inline] perf_event_release_kernel+0x3a6/0xc20 kernel/events/core.c:5072 perf_release+0x33/0x50 kernel/events/core.c:5170 __fput+0x285/0x980 fs/file_table.c:281 task_work_run+0xe2/0x1a0 kernel/task_work.c:161 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x186/0x190 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x38/0x230 kernel/entry/common.c:274 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f7df0f6f72b RSP: 002b:00007ffdd13475f0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 00007f7df0f6f72b RDX: ffffffffffffffbc RSI: 0000000000000081 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f7df10d7b40 R13: 00007ffdd1347710 R14: 00007f7df10cff60 R15: 00000000000a8b3e INFO: task syz-executor.4:6423 blocked for more than 143 seconds. Not tainted 5.10.162 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27968 pid: 6423 ppid: 5797 flags:0x10004004 Call Trace: context_switch kernel/sched/core.c:3797 [inline] __schedule+0x848/0x1ed0 kernel/sched/core.c:4546 schedule+0xcb/0x270 kernel/sched/core.c:4624 schedule_preempt_disabled+0xc/0x20 kernel/sched/core.c:4683 __mutex_lock_common kernel/locking/mutex.c:1047 [inline] __mutex_lock+0x8e3/0x12a0 kernel/locking/mutex.c:1109 mutex_lock_double kernel/events/core.c:11596 [inline] __perf_event_ctx_lock_double kernel/events/core.c:11740 [inline] __do_sys_perf_event_open+0x1248/0x2cb0 kernel/events/core.c:12013 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f7df0fbcb19 RSP: 002b:00007f7dee532188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007f7df10cff60 RCX: 00007f7df0fbcb19 RDX: 0000000000000000 RSI: 000000000000001a RDI: 0000000020001d80 RBP: 00007f7df1016f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdd134758f R14: 00007f7dee532300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/22: #0: ffffffff84ff8320 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x269 kernel/locking/lockdep.c:6390 2 locks held by in:imklog/191: 1 lock held by syz-executor.4/6421: #0: ffff8880381b08b0 (&ctx->mutex){+.+.}-{3:3}, at: perf_event_ctx_lock_nested+0x243/0x4a0 kernel/events/core.c:1386 3 locks held by syz-executor.4/6423: #0: ffff88800e0b05d8 (&sig->exec_update_lock){++++}-{3:3}, at: __do_sys_perf_event_open+0xfc5/0x2cb0 kernel/events/core.c:11995 #1: ffff8880381b08b0 (&ctx->mutex){+.+.}-{3:3}, at: mutex_lock_double kernel/events/core.c:11595 [inline] #1: ffff8880381b08b0 (&ctx->mutex){+.+.}-{3:3}, at: __perf_event_ctx_lock_double kernel/events/core.c:11740 [inline] #1: ffff8880381b08b0 (&ctx->mutex){+.+.}-{3:3}, at: __do_sys_perf_event_open+0x123b/0x2cb0 kernel/events/core.c:12013 #2: ffff8880381b08b0 (&ctx->mutex/1){+.+.}-{3:3}, at: mutex_lock_double kernel/events/core.c:11596 [inline] #2: ffff8880381b08b0 (&ctx->mutex/1){+.+.}-{3:3}, at: __perf_event_ctx_lock_double kernel/events/core.c:11740 [inline] #2: ffff8880381b08b0 (&ctx->mutex/1){+.+.}-{3:3}, at: __do_sys_perf_event_open+0x1248/0x2cb0 kernel/events/core.c:12013 =============================================