INFO: task syz.2.131:6181 blocked for more than 143 seconds. Not tainted 6.11.0-rc5-next-20240827-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.131 state:D stack:24944 pid:6181 tgid:6180 ppid:5409 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5311 [inline] __schedule+0x184a/0x4b30 kernel/sched/core.c:6677 __schedule_loop kernel/sched/core.c:6754 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6769 schedule_timeout+0xb0/0x310 kernel/time/timer.c:2559 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common kernel/sched/completion.c:127 [inline] wait_for_completion+0x355/0x620 kernel/sched/completion.c:148 kthread_flush_worker+0x242/0x300 kernel/kthread.c:1393 drm_vblank_flush_worker drivers/gpu/drm/drm_internal.h:101 [inline] drm_crtc_vblank_off+0x73b/0x990 drivers/gpu/drm/drm_vblank.c:1401 disable_outputs drivers/gpu/drm/drm_atomic_helper.c:1214 [inline] drm_atomic_helper_commit_modeset_disables+0xcff/0x1a10 drivers/gpu/drm/drm_atomic_helper.c:1418 vkms_atomic_commit_tail+0x50/0x200 drivers/gpu/drm/vkms/vkms_drv.c:71 commit_tail+0x2a9/0x3c0 drivers/gpu/drm/drm_atomic_helper.c:1833 drm_atomic_helper_commit+0x953/0x9f0 drivers/gpu/drm/drm_atomic_helper.c:2073 drm_atomic_commit+0x296/0x2f0 drivers/gpu/drm/drm_atomic.c:1516 drm_atomic_helper_set_config+0xe5/0x160 drivers/gpu/drm/drm_atomic_helper.c:3273 drm_mode_setcrtc+0xc62/0x1e10 drivers/gpu/drm/drm_crtc.c:869 drm_ioctl_kernel+0x337/0x440 drivers/gpu/drm/drm_ioctl.c:745 drm_ioctl+0x60e/0xad0 drivers/gpu/drm/drm_ioctl.c:842 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fceef779e79 RSP: 002b:00007fcef04fc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fceef915f80 RCX: 00007fceef779e79 RDX: 0000000020000740 RSI: 00000000c06864a2 RDI: 0000000000000003 RBP: 00007fceef7e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fceef915f80 R15: 00007ffdeae4cf18 INFO: task syz.2.131:6184 blocked for more than 144 seconds. Not tainted 6.11.0-rc5-next-20240827-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.131 state:D stack:26480 pid:6184 tgid:6180 ppid:5409 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5311 [inline] __schedule+0x184a/0x4b30 kernel/sched/core.c:6677 __schedule_loop kernel/sched/core.c:6754 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6769 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6826 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __ww_mutex_lock+0xec5/0x2790 kernel/locking/mutex.c:759 ww_mutex_lock+0x40/0x1f0 kernel/locking/mutex.c:876 drm_modeset_lock+0x6f/0x90 drivers/gpu/drm/drm_modeset_lock.c:398 drm_mode_getconnector+0xe4a/0x1430 drivers/gpu/drm/drm_connector.c:3262 drm_ioctl_kernel+0x337/0x440 drivers/gpu/drm/drm_ioctl.c:745 drm_ioctl+0x60e/0xad0 drivers/gpu/drm/drm_ioctl.c:842 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fceef779e79 RSP: 002b:00007fcef04db038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fceef916058 RCX: 00007fceef779e79 RDX: 0000000020000600 RSI: 00000000c05064a7 RDI: 0000000000000004 RBP: 00007fceef7e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fceef916058 R15: 00007ffdeae4cf18 Showing all locks held in the system: 1 lock held by ksoftirqd/1/24: 3 locks held by kworker/1:0/25: #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3313 #1: ffffc900001f7d00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3208 [inline] #1: ffffc900001f7d00 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3313 #2: ffff88805c068240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1489 1 lock held by khungtaskd/30: #0: ffffffff8e939b60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e939b60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e939b60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720 3 locks held by kworker/1:2/2639: 2 locks held by getty/4986: #0: ffff88802dbea0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by kworker/1:5/5281: #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3313 #1: ffffc90004167d00 ((fqdir_free_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3208 [inline] #1: ffffc90004167d00 ((fqdir_free_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3313 #2: ffffffff8e93efc0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4561 3 locks held by kworker/1:7/5308: #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3313 #1: ffffc90004217d00 (free_ipc_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3208 [inline] #1: ffffc90004217d00 (free_ipc_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3313 #2: ffffffff8e93f0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #2: ffffffff8e93f0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 2 locks held by syz.2.131/6181: #0: ffffc900045e7b40 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_mode_setcrtc+0x55d/0x1e10 drivers/gpu/drm/drm_crtc.c:730 #1: ffff88801fe50518 (crtc_ww_class_mutex){+.+.}-{3:3}, at: modeset_lock+0x21c/0x650 1 lock held by syz.2.131/6184: #0: ffff88801fe50518 (crtc_ww_class_mutex){+.+.}-{3:3}, at: drm_modeset_lock+0x6f/0x90 drivers/gpu/drm/drm_modeset_lock.c:398 3 locks held by kworker/0:6/8750: #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #0: ffff888015880948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3313 #1: ffff8880b9028948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:989 #2: ffff888060e0f240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1489 2 locks held by syz-executor/16457: #0: ffff888011fecd80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:481 [inline] #0: ffff888011fecd80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2698 #1: ffff888011fec078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x572/0x11a0 net/bluetooth/hci_sync.c:5145 4 locks held by syz-executor/17730: #0: ffff88805bcecd80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:481 [inline] #0: ffff88805bcecd80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2698 #1: ffff88805bcec078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x572/0x11a0 net/bluetooth/hci_sync.c:5145 #2: ffffffff8fe332e8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1977 [inline] #2: ffffffff8fe332e8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xa6/0x240 net/bluetooth/hci_conn.c:2591 #3: ffffffff8e93f0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #3: ffffffff8e93f0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 3 locks held by syz-executor/18012: #0: ffff888069418d80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:481 [inline] #0: ffff888069418d80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2698 #1: ffff888069418078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x572/0x11a0 net/bluetooth/hci_sync.c:5145 #2: ffffffff8fe332e8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1977 [inline] #2: ffffffff8fe332e8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xa6/0x240 net/bluetooth/hci_conn.c:2591 3 locks held by syz-executor/18905: #0: ffff888078fd4d80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:481 [inline] #0: ffff888078fd4d80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2698 #1: ffff888078fd4078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x572/0x11a0 net/bluetooth/hci_sync.c:5145 #2: ffffffff8fe332e8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1977 [inline] #2: ffffffff8fe332e8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xa6/0x240 net/bluetooth/hci_conn.c:2591 1 lock held by syz.1.489/19302: #0: ffff88801fe000b0 (crtc_ww_class_mutex){+.+.}-{3:3}, at: drm_modeset_lock+0x6f/0x90 drivers/gpu/drm/drm_modeset_lock.c:398 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-rc5-next-20240827-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 12 Comm: kworker/u8:1 Not tainted 6.11.0-rc5-next-20240827-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:lockdep_hardirqs_on_prepare+0x1da/0x780 kernel/locking/lockdep.c:4403 Code: 00 00 00 00 fc ff df 4c 89 7c 24 18 48 8b 44 24 10 4c 8b b0 d0 0a 00 00 48 8d b8 b8 0a 00 00 48 89 f8 48 c1 e8 03 80 3c 10 00 <74> 05 e8 4f 17 8d 00 48 8b 5c 24 10 4c 89 b3 b8 0a 00 00 48 c7 c7 RSP: 0018:ffffc90000117940 EFLAGS: 00000046 RAX: 1ffff11002f57c97 RBX: 1ffff92000022f30 RCX: ffffffff94f9b903 RDX: dffffc0000000000 RSI: ffffffff8c6088a0 RDI: ffff888017abe4b8 RBP: ffffc900001179e8 R08: ffffffff901c362f R09: 1ffffffff20386c5 R10: dffffc0000000000 R11: fffffbfff20386c6 R12: dffffc0000000000 R13: 1ffff92000022f48 R14: a31e0eccec5aa129 R15: 1ffff92000022f2c FS: 0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ccbad73000 CR3: 000000000e736000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61 __local_bh_enable_ip+0x168/0x200 kernel/softirq.c:387 spin_unlock_bh include/linux/spinlock.h:396 [inline] batadv_nc_purge_paths+0x312/0x3b0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x328/0x610 net/batman-adv/network-coding.c:720 process_one_work kernel/workqueue.c:3232 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3313 worker_thread+0x86d/0xd10 kernel/workqueue.c:3390 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244