tasks_rcu_exit_srcu_stall: rcu_tasks grace period number 9 (since boot) gp_state: RTGS_POST_SCAN_TASKLIST is 143570 jiffies old. Please check any exiting tasks stuck between calls to exit_tasks_rcu_start() and exit_tasks_rcu_finish() INFO: task kworker/0:0:7 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:0 state:D stack:26952 pid:7 ppid:2 flags:0x00004000 Workqueue: events kprobe_optimizer Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_timeout+0x3b0/0x400 __wait_for_common+0x1d3/0x550 __wait_rcu_gp+0x24e/0x400 synchronize_rcu_tasks_generic.constprop.0+0xd6/0x170 kprobe_optimizer+0x343/0x7e0 process_one_work+0xabf/0x1770 worker_thread+0x64f/0x12a0 kthread+0x33f/0x440 ret_from_fork+0x2f/0x70 ret_from_fork_asm+0x1b/0x30 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task rcu_tasks_kthre:12 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:rcu_tasks_kthre state:D stack:29040 pid:12 ppid:2 flags:0x00004000 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_timeout+0x3b0/0x400 __wait_for_common+0x1d3/0x550 __synchronize_srcu+0x142/0x240 rcu_tasks_postscan+0x50/0x70 rcu_tasks_wait_gp+0x448/0xb90 rcu_tasks_one_gp+0xa69/0xe10 rcu_tasks_kthread+0x1a7/0x240 kthread+0x33f/0x440 ret_from_fork+0x2f/0x70 ret_from_fork_asm+0x1b/0x30 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.5:4870 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:26240 pid:4870 ppid:1091 flags:0x00004006 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 perf_trace_destroy+0x27/0x1c0 _free_event+0x207/0x1190 perf_event_release_kernel+0x5b8/0x7a0 perf_release+0x37/0x50 __fput+0x406/0xad0 task_work_run+0x174/0x280 do_exit+0xa92/0x2740 do_group_exit+0xd4/0x2a0 get_signal+0x2693/0x2720 arch_do_signal_or_restart+0x79/0x590 exit_to_user_mode_prepare+0xeb/0x180 syscall_exit_to_user_mode+0x1d/0x50 do_syscall_64+0x4c/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f93cf12db19 RSP: 002b:00007f93cc6a3218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f93cf240f68 RCX: 00007f93cf12db19 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f93cf240f68 RBP: 00007f93cf240f60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f93cf240f6c R13: 00007ffe32920c1f R14: 00007f93cc6a3300 R15: 0000000000022000 INFO: task syz-executor.5:4873 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:28152 pid:4873 ppid:1091 flags:0x00004006 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 perf_trace_destroy+0x27/0x1c0 _free_event+0x207/0x1190 perf_event_release_kernel+0x5b8/0x7a0 perf_release+0x37/0x50 __fput+0x406/0xad0 task_work_run+0x174/0x280 do_exit+0xa92/0x2740 do_group_exit+0xd4/0x2a0 get_signal+0x2693/0x2720 arch_do_signal_or_restart+0x79/0x590 exit_to_user_mode_prepare+0xeb/0x180 syscall_exit_to_user_mode+0x1d/0x50 ret_from_fork_asm+0x1b/0x30 RIP: 0033:0x7f93cf12db19 RSP: 002b:00007f93cc682188 EFLAGS: 00000246 ORIG_RAX: 0000000000000039 RAX: 0000000000000000 RBX: 00007f93cf241020 RCX: 00007f93cf12db19 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f93cf187f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe32920c1f R14: 00007f93cc682300 R15: 0000000000022000 INFO: task syz-executor.7:4885 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.7 state:D stack:26984 pid:4885 ppid:313 flags:0x00000004 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 disable_kprobe+0x21/0x70 __disable_trace_kprobe+0xef/0x190 disable_trace_kprobe+0x267/0x2e0 kprobe_register+0x69/0xd0 perf_trace_event_unreg.isra.0+0xae/0x1e0 perf_kprobe_destroy+0xc8/0x200 _free_event+0x207/0x1190 perf_event_release_kernel+0x5b8/0x7a0 perf_release+0x37/0x50 __fput+0x406/0xad0 task_work_run+0x174/0x280 exit_to_user_mode_prepare+0x17d/0x180 syscall_exit_to_user_mode+0x1d/0x50 do_syscall_64+0x4c/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fb55e66e72b RSP: 002b:00007ffecc0b7610 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fb55e66e72b RDX: 0000000000000000 RSI: ffffffff81397bea RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b2e4235a0 R10: 0000000000000112 R11: 0000000000000293 R12: 00007fb55e7cfb60 R13: 00007fb55e7cfb60 R14: 00007fb55e7cef60 R15: 000000000003b870 INFO: task syz-executor.1:4908 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:29376 pid:4908 ppid:4236 flags:0x00000004 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 perf_trace_init+0x4d/0x2f0 perf_tp_event_init+0xa6/0x120 perf_try_init_event+0x130/0x570 perf_event_alloc.part.0+0xf84/0x3a70 __do_sys_perf_event_open+0x4db/0x2ae0 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fe7367a2b19 RSP: 002b:00007fe733d18188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007fe7368b5f60 RCX: 00007fe7367a2b19 RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007fe7367fcf6d R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdc659cc1f R14: 00007fe733d18300 R15: 0000000000022000 INFO: task syz-executor.1:4915 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:26112 pid:4915 ppid:4236 flags:0x00000006 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 perf_trace_destroy+0x27/0x1c0 _free_event+0x207/0x1190 perf_event_release_kernel+0x5b8/0x7a0 perf_release+0x37/0x50 __fput+0x406/0xad0 task_work_run+0x174/0x280 get_signal+0x1d3/0x2720 arch_do_signal_or_restart+0x79/0x590 exit_to_user_mode_prepare+0xeb/0x180 syscall_exit_to_user_mode+0x1d/0x50 do_syscall_64+0x4c/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fe7367a2b19 RSP: 002b:00007fe733cf7188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: fffffffffffffffc RBX: 00007fe7368b6020 RCX: 00007fe7367a2b19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020004c00 RBP: 00007fe7367fcf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdc659cc1f R14: 00007fe733cf7300 R15: 0000000000022000 INFO: task syz-executor.5:4906 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:27344 pid:4906 ppid:1091 flags:0x00004006 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 perf_trace_destroy+0x27/0x1c0 _free_event+0x207/0x1190 perf_event_release_kernel+0x5b8/0x7a0 perf_release+0x37/0x50 __fput+0x406/0xad0 task_work_run+0x174/0x280 do_exit+0xa92/0x2740 do_group_exit+0xd4/0x2a0 get_signal+0x2693/0x2720 arch_do_signal_or_restart+0x79/0x590 exit_to_user_mode_prepare+0xeb/0x180 syscall_exit_to_user_mode+0x1d/0x50 do_syscall_64+0x4c/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f93cf12db19 RSP: 002b:00007f93cc6a3218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f93cf240f68 RCX: 00007f93cf12db19 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f93cf240f68 RBP: 00007f93cf240f60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f93cf240f6c R13: 00007ffe32920c1f R14: 00007f93cc6a3300 R15: 0000000000022000 INFO: task syz-executor.6:4910 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.6 state:D stack:26984 pid:4910 ppid:680 flags:0x00000004 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 perf_trace_destroy+0x27/0x1c0 _free_event+0x207/0x1190 perf_event_release_kernel+0x5b8/0x7a0 perf_release+0x37/0x50 __fput+0x406/0xad0 task_work_run+0x174/0x280 exit_to_user_mode_prepare+0x17d/0x180 syscall_exit_to_user_mode+0x1d/0x50 do_syscall_64+0x4c/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fd06430172b RSP: 002b:00007ffc2ed94ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fd06430172b RDX: 00007fd064468620 RSI: 0000000000000080 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00007ffc2ed94c90 R11: 0000000000000293 R12: 000000000003ba9b R13: 00000000000003e8 R14: 00007fd064461f60 R15: 000000000003b960 INFO: task syz-executor.3:4930 blocked for more than 143 seconds. Not tainted 6.5.0-rc2-next-20230721 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:29648 pid:4930 ppid:302 flags:0x00000004 Call Trace: __schedule+0x9a9/0x2b00 schedule+0xdb/0x1a0 schedule_preempt_disabled+0x10/0x20 __mutex_lock+0xc10/0x1a30 perf_trace_init+0x4d/0x2f0 perf_tp_event_init+0xa6/0x120 perf_try_init_event+0x130/0x570 perf_event_alloc.part.0+0xf84/0x3a70 __do_sys_perf_event_open+0x4db/0x2ae0 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fb6b9b7bb19 RSP: 002b:00007fb6b70f1188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007fb6b9c8ef60 RCX: 00007fb6b9b7bb19 RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007fb6b9bd5f6d R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe5e11bbdf R14: 00007fb6b70f1300 R15: 0000000000022000 Future hung task reports are suppressed, see sysctl kernel.hung_task_warnings Showing all locks held in the system: 5 locks held by kworker/0:0/7: #0: ffff888008468d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770 #1: ffff888008d5fd90 ((optimizing_work).work){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770 #2: ffffffff85654f68 (kprobe_mutex){+.+.}-{3:3}, at: kprobe_optimizer+0x25/0x7e0 #3: ffffffff854e2f90 (cpu_hotplug_lock){++++}-{0:0}, at: kprobe_optimizer+0x2a/0x7e0 #4: ffffffff854f7568 (text_mutex){+.+.}-{3:3}, at: kprobe_optimizer+0x38/0x7e0 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8560b6d0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xe10 1 lock held by khungtaskd/25: #0: ffffffff8560c2a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 2 locks held by in:imklog/164: #0: ffff88800eb9dc48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xdf/0x100 #1: ffff88806ce39558 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x1d0/0x2b00 1 lock held by syz-executor.5/4870: #0: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_destroy+0x27/0x1c0 1 lock held by syz-executor.5/4873: #0: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_destroy+0x27/0x1c0 2 locks held by syz-executor.7/4885: #0: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_kprobe_destroy+0x27/0x200 #1: ffffffff85654f68 (kprobe_mutex){+.+.}-{3:3}, at: disable_kprobe+0x21/0x70 2 locks held by syz-executor.1/4908: #0: ffffffff87b92d70 (&pmus_srcu){.+.+}-{0:0}, at: perf_event_alloc.part.0+0xcd2/0x3a70 #1: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_init+0x4d/0x2f0 1 lock held by syz-executor.1/4915: #0: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_destroy+0x27/0x1c0 1 lock held by syz-executor.5/4906: #0: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_destroy+0x27/0x1c0 1 lock held by syz-executor.6/4910: #0: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_destroy+0x27/0x1c0 2 locks held by syz-executor.3/4930: #0: ffffffff87b92d70 (&pmus_srcu){.+.+}-{0:0}, at: perf_event_alloc.part.0+0xcd2/0x3a70 #1: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_init+0x4d/0x2f0 2 locks held by syz-executor.3/4932: #0: ffffffff87b92d70 (&pmus_srcu){.+.+}-{0:0}, at: perf_event_alloc.part.0+0xcd2/0x3a70 #1: ffffffff856680a8 (event_mutex){+.+.}-{3:3}, at: perf_trace_init+0x4d/0x2f0 ============================================= tasks_rcu_exit_srcu_stall: rcu_tasks grace period number 9 (since boot) gp_state: RTGS_POST_SCAN_TASKLIST is 153810 jiffies old. Please check any exiting tasks stuck between calls to exit_tasks_rcu_start() and exit_tasks_rcu_finish()