------------[ cut here ]------------ ====================================================== WARNING: possible circular locking dependency detected 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Not tainted ------------------------------------------------------ syz.4.286/7692 is trying to acquire lock: ffff80008f98cb00 (console_owner){-.-.}-{0:0}, at: console_lock_spinning_enable+0x88/0xec kernel/printk/printk.c:1901 but task is already holding lock: ffff0001b3655918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2c/0x44 kernel/sched/core.c:598 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #4 (&rq->__lock){-.-.}-{2:2}: _raw_spin_lock_nested+0x50/0x6c kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested kernel/sched/core.c:598 [inline] raw_spin_rq_lock kernel/sched/sched.h:1506 [inline] task_rq_lock+0xc8/0x2a8 kernel/sched/core.c:700 cgroup_move_task+0xa0/0x468 kernel/sched/psi.c:1161 css_set_move_task+0x6c0/0x8d4 kernel/cgroup/cgroup.c:898 cgroup_post_fork+0x1d4/0x68c kernel/cgroup/cgroup.c:6692 copy_process+0x2ee8/0x3250 kernel/fork.c:2600 kernel_clone+0x1d8/0x82c kernel/fork.c:2786 user_mode_thread+0x110/0x178 kernel/fork.c:2864 rest_init+0x2c/0x2f4 init/main.c:712 start_kernel+0x3f4/0x4f4 init/main.c:1105 __primary_switched+0x8c/0x94 arch/arm64/kernel/head.S:246 -> #3 (&p->pi_lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:551 [inline] try_to_wake_up+0xd8/0x1274 kernel/sched/core.c:4165 default_wake_function+0x4c/0x60 kernel/sched/core.c:7027 woken_wake_function+0x48/0x78 kernel/sched/wait.c:444 __wake_up_common kernel/sched/wait.c:89 [inline] __wake_up_common_lock kernel/sched/wait.c:106 [inline] __wake_up+0x12c/0x1b0 kernel/sched/wait.c:127 tty_wakeup+0xd8/0xec drivers/tty/tty_io.c:521 pty_unthrottle+0x3c/0x8c drivers/tty/pty.c:95 tty_unthrottle_safe+0xf8/0x17c drivers/tty/tty_ioctl.c:164 n_tty_receive_buf_common+0xcfc/0x1054 drivers/tty/n_tty.c:1754 n_tty_receive_buf2+0x40/0x54 drivers/tty/n_tty.c:1785 tty_ldisc_receive_buf+0xa4/0x15c drivers/tty/tty_buffer.c:387 tty_port_default_receive_buf+0x74/0xac drivers/tty/tty_port.c:37 receive_buf drivers/tty/tty_buffer.c:445 [inline] flush_to_ldisc+0x284/0x6e4 drivers/tty/tty_buffer.c:495 process_one_work+0x7bc/0x1600 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3391 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 -> #2 (&tty->write_wait){....}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:105 [inline] __wake_up+0x38/0x1b0 kernel/sched/wait.c:127 tty_wakeup+0xd8/0xec drivers/tty/tty_io.c:521 tty_port_default_wakeup+0xb0/0x120 drivers/tty/tty_port.c:69 tty_port_tty_wakeup+0x64/0x78 drivers/tty/tty_port.c:435 uart_write_wakeup+0x4c/0x64 drivers/tty/serial/serial_core.c:120 pl011_tx_chars+0xa3c/0x12cc drivers/tty/serial/amba-pl011.c:1478 pl011_start_tx_pio drivers/tty/serial/amba-pl011.c:1320 [inline] pl011_start_tx+0x588/0xbdc drivers/tty/serial/amba-pl011.c:1362 __uart_start+0x294/0x3d8 drivers/tty/serial/serial_core.c:160 uart_write+0x270/0x9b4 drivers/tty/serial/serial_core.c:635 process_output_block drivers/tty/n_tty.c:574 [inline] n_tty_write+0xaec/0xed0 drivers/tty/n_tty.c:2389 iterate_tty_write drivers/tty/tty_io.c:1015 [inline] file_tty_write+0x410/0x7b8 drivers/tty/tty_io.c:1090 tty_write drivers/tty/tty_io.c:1111 [inline] redirected_tty_write+0xa8/0x144 drivers/tty/tty_io.c:1134 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x920/0xcf4 fs/read_write.c:683 ksys_write+0x15c/0x26c fs/read_write.c:736 __do_sys_write fs/read_write.c:748 [inline] __se_sys_write fs/read_write.c:745 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:745 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 -> #1 (&port_lock_key){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 uart_port_lock_irqsave include/linux/serial_core.h:711 [inline] pl011_console_write+0x158/0xdc0 drivers/tty/serial/amba-pl011.c:2316 console_emit_next_record kernel/printk/printk.c:3092 [inline] console_flush_all+0x604/0xb90 kernel/printk/printk.c:3180 __console_flush_and_unlock kernel/printk/printk.c:3239 [inline] console_unlock+0x138/0x3ac kernel/printk/printk.c:3279 vprintk_emit+0x308/0x55c kernel/printk/printk.c:2407 vprintk_default+0xa0/0xe4 kernel/printk/printk.c:2422 vprintk+0x200/0x300 kernel/printk/printk_safe.c:68 _printk+0xdc/0x128 kernel/printk/printk.c:2432 register_console+0x8f0/0xcc0 kernel/printk/printk.c:4069 uart_configure_port drivers/tty/serial/serial_core.c:2655 [inline] serial_core_add_one_port drivers/tty/serial/serial_core.c:3182 [inline] serial_core_register_port+0x1688/0x2118 drivers/tty/serial/serial_core.c:3419 serial_ctrl_register_port+0x28/0x38 drivers/tty/serial/serial_ctrl.c:41 uart_add_one_port+0x28/0x38 drivers/tty/serial/serial_port.c:143 pl011_register_port+0x1b4/0x44c drivers/tty/serial/amba-pl011.c:2744 sbsa_uart_probe+0x488/0x608 drivers/tty/serial/amba-pl011.c:2914 platform_probe+0x148/0x1c0 drivers/base/platform.c:1404 really_probe+0x38c/0x8fc drivers/base/dd.c:658 __driver_probe_device+0x194/0x374 drivers/base/dd.c:800 driver_probe_device+0x78/0x330 drivers/base/dd.c:830 __device_attach_driver+0x2a8/0x4f4 drivers/base/dd.c:958 bus_for_each_drv+0x228/0x2bc drivers/base/bus.c:459 __device_attach+0x2b4/0x434 drivers/base/dd.c:1030 device_initial_probe+0x24/0x34 drivers/base/dd.c:1079 bus_probe_device+0x178/0x240 drivers/base/bus.c:534 device_add+0x728/0xa6c drivers/base/core.c:3672 platform_device_add+0x3e8/0x6e8 drivers/base/platform.c:716 platform_device_register_full+0x4f0/0x608 drivers/base/platform.c:844 acpi_create_platform_device+0x5bc/0x744 drivers/acpi/acpi_platform.c:177 acpi_default_enumeration+0x6c/0xdc drivers/acpi/scan.c:2213 acpi_bus_attach+0x804/0xad4 drivers/acpi/scan.c:2324 acpi_dev_for_one_check+0xa0/0xb4 drivers/acpi/bus.c:1145 device_for_each_child+0xf0/0x180 drivers/base/core.c:4001 acpi_dev_for_each_child+0xc4/0x108 drivers/acpi/bus.c:1157 acpi_bus_attach+0x868/0xad4 drivers/acpi/scan.c:2329 acpi_dev_for_one_check+0xa0/0xb4 drivers/acpi/bus.c:1145 device_for_each_child+0xf0/0x180 drivers/base/core.c:4001 acpi_dev_for_each_child+0xc4/0x108 drivers/acpi/bus.c:1157 acpi_bus_attach+0x868/0xad4 drivers/acpi/scan.c:2329 acpi_bus_scan+0x118/0x4f0 drivers/acpi/scan.c:2610 acpi_scan_init+0x214/0x6b0 drivers/acpi/scan.c:2747 acpi_init+0x190/0x254 drivers/acpi/bus.c:1466 do_one_initcall+0x24c/0x9c0 init/main.c:1269 do_initcall_level+0x154/0x214 init/main.c:1331 do_initcalls+0x58/0xac init/main.c:1347 do_basic_setup+0x8c/0xa0 init/main.c:1366 kernel_init_freeable+0x324/0x478 init/main.c:1580 kernel_init+0x24/0x2a0 init/main.c:1469 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 -> #0 (console_owner){-.-.}-{0:0}: check_prev_add kernel/locking/lockdep.c:3161 [inline] check_prevs_add kernel/locking/lockdep.c:3280 [inline] validate_chain kernel/locking/lockdep.c:3904 [inline] __lock_acquire+0x33f8/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 console_lock_spinning_enable+0xb4/0xec kernel/printk/printk.c:1905 console_emit_next_record kernel/printk/printk.c:3086 [inline] console_flush_all+0x5c4/0xb90 kernel/printk/printk.c:3180 __console_flush_and_unlock kernel/printk/printk.c:3239 [inline] console_unlock+0x138/0x3ac kernel/printk/printk.c:3279 vprintk_emit+0x308/0x55c kernel/printk/printk.c:2407 vprintk_default+0xa0/0xe4 kernel/printk/printk.c:2422 vprintk+0x200/0x300 kernel/printk/printk_safe.c:68 _printk+0xdc/0x128 kernel/printk/printk.c:2432 __report_bug lib/bug.c:195 [inline] report_bug+0x3b8/0x5b0 lib/bug.c:219 bug_handler+0x50/0x1fc arch/arm64/kernel/traps.c:1010 call_break_hook arch/arm64/kernel/debug-monitors.c:315 [inline] brk_handler+0x1d8/0x288 arch/arm64/kernel/debug-monitors.c:325 do_debug_exception+0x1e4/0x398 arch/arm64/mm/fault.c:1002 el1_dbg+0x64/0x80 arch/arm64/kernel/entry-common.c:490 el1h_64_sync_handler+0x40/0xcc arch/arm64/kernel/entry-common.c:536 el1h_64_sync+0x6c/0x70 arch/arm64/kernel/entry.S:595 inc_dl_deadline kernel/sched/deadline.c:1837 [inline] inc_dl_tasks kernel/sched/deadline.c:1879 [inline] __enqueue_dl_entity kernel/sched/deadline.c:1975 [inline] enqueue_dl_entity+0x1090/0x164c kernel/sched/deadline.c:2068 dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 enqueue_task_fair+0x88c/0xbb8 kernel/sched/fair.c:7044 enqueue_task+0x7c/0x204 kernel/sched/core.c:2020 activate_task+0x78/0xd0 kernel/sched/core.c:2067 attach_task kernel/sched/fair.c:9641 [inline] attach_tasks kernel/sched/fair.c:9676 [inline] sched_balance_rq+0x501c/0x6e14 kernel/sched/fair.c:11753 sched_balance_newidle+0x558/0xd40 kernel/sched/fair.c:12795 pick_next_task_fair+0x48/0x870 kernel/sched/fair.c:8943 __pick_next_task kernel/sched/core.c:5971 [inline] pick_next_task kernel/sched/core.c:6493 [inline] __schedule+0x718/0x27d0 kernel/sched/core.c:6647 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6785 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6842 rwsem_down_write_slowpath+0xd10/0x14c8 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1578 kernfs_remove_by_name_ns+0x7c/0x188 fs/kernfs/dir.c:1689 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] sysfs_unmerge_group+0xd8/0x138 fs/sysfs/group.c:399 rpm_sysfs_remove drivers/base/power/sysfs.c:826 [inline] dpm_sysfs_remove+0x84/0xd4 drivers/base/power/sysfs.c:835 device_del+0x21c/0x828 drivers/base/core.c:3836 serio_destroy_port+0x300/0x414 drivers/input/serio/serio.c:570 serio_unregister_port+0x11c/0x140 drivers/input/serio/serio.c:706 userio_char_release+0x94/0xcc drivers/input/serio/userio.c:111 __fput+0x1bc/0x75c fs/file_table.c:431 ____fput+0x20/0x30 fs/file_table.c:459 task_work_run+0x230/0x2e0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 other info that might help us debug this: Chain exists of: console_owner --> &p->pi_lock --> &rq->__lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&rq->__lock); lock(&p->pi_lock); lock(&rq->__lock); lock(console_owner); *** DEADLOCK *** 6 locks held by syz.4.286/7692: #0: ffff800091b602a8 (serio_mutex){+.+.}-{3:3}, at: serio_unregister_port+0x38/0x140 drivers/input/serio/serio.c:704 #1: ffff0000c1892948 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove_by_name_ns+0x7c/0x188 fs/kernfs/dir.c:1689 #2: ffff80008faafee0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:336 #3: ffff0001b3655918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2c/0x44 kernel/sched/core.c:598 #4: ffff80008f98cb60 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x2ec/0x55c kernel/printk/printk.c:2406 #5: ffff80008f98c770 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire+0x10/0x4c include/linux/rcupdate.h:341 stack backtrace: CPU: 1 UID: 0 PID: 7692 Comm: syz.4.286 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:484 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 print_circular_bug+0x154/0x1c0 kernel/locking/lockdep.c:2074 check_noncircular+0x310/0x404 kernel/locking/lockdep.c:2206 check_prev_add kernel/locking/lockdep.c:3161 [inline] check_prevs_add kernel/locking/lockdep.c:3280 [inline] validate_chain kernel/locking/lockdep.c:3904 [inline] __lock_acquire+0x33f8/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 console_lock_spinning_enable+0xb4/0xec kernel/printk/printk.c:1905 console_emit_next_record kernel/printk/printk.c:3086 [inline] console_flush_all+0x5c4/0xb90 kernel/printk/printk.c:3180 __console_flush_and_unlock kernel/printk/printk.c:3239 [inline] console_unlock+0x138/0x3ac kernel/printk/printk.c:3279 vprintk_emit+0x308/0x55c kernel/printk/printk.c:2407 vprintk_default+0xa0/0xe4 kernel/printk/printk.c:2422 vprintk+0x200/0x300 kernel/printk/printk_safe.c:68 _printk+0xdc/0x128 kernel/printk/printk.c:2432 __report_bug lib/bug.c:195 [inline] report_bug+0x3b8/0x5b0 lib/bug.c:219 bug_handler+0x50/0x1fc arch/arm64/kernel/traps.c:1010 call_break_hook arch/arm64/kernel/debug-monitors.c:315 [inline] brk_handler+0x1d8/0x288 arch/arm64/kernel/debug-monitors.c:325 do_debug_exception+0x1e4/0x398 arch/arm64/mm/fault.c:1002 el1_dbg+0x64/0x80 arch/arm64/kernel/entry-common.c:490 el1h_64_sync_handler+0x40/0xcc arch/arm64/kernel/entry-common.c:536 el1h_64_sync+0x6c/0x70 arch/arm64/kernel/entry.S:595 inc_dl_deadline kernel/sched/deadline.c:1837 [inline] (P) inc_dl_tasks kernel/sched/deadline.c:1879 [inline] (P) __enqueue_dl_entity kernel/sched/deadline.c:1975 [inline] (P) enqueue_dl_entity+0x1090/0x164c kernel/sched/deadline.c:2068 (P) dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 (L) dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 enqueue_task_fair+0x88c/0xbb8 kernel/sched/fair.c:7044 enqueue_task+0x7c/0x204 kernel/sched/core.c:2020 activate_task+0x78/0xd0 kernel/sched/core.c:2067 attach_task kernel/sched/fair.c:9641 [inline] attach_tasks kernel/sched/fair.c:9676 [inline] sched_balance_rq+0x501c/0x6e14 kernel/sched/fair.c:11753 sched_balance_newidle+0x558/0xd40 kernel/sched/fair.c:12795 pick_next_task_fair+0x48/0x870 kernel/sched/fair.c:8943 __pick_next_task kernel/sched/core.c:5971 [inline] pick_next_task kernel/sched/core.c:6493 [inline] __schedule+0x718/0x27d0 kernel/sched/core.c:6647 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6785 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6842 rwsem_down_write_slowpath+0xd10/0x14c8 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1578 kernfs_remove_by_name_ns+0x7c/0x188 fs/kernfs/dir.c:1689 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] sysfs_unmerge_group+0xd8/0x138 fs/sysfs/group.c:399 rpm_sysfs_remove drivers/base/power/sysfs.c:826 [inline] dpm_sysfs_remove+0x84/0xd4 drivers/base/power/sysfs.c:835 device_del+0x21c/0x828 drivers/base/core.c:3836 serio_destroy_port+0x300/0x414 drivers/input/serio/serio.c:570 serio_unregister_port+0x11c/0x140 drivers/input/serio/serio.c:706 userio_char_release+0x94/0xcc drivers/input/serio/userio.c:111 __fput+0x1bc/0x75c fs/file_table.c:431 ____fput+0x20/0x30 fs/file_table.c:459 task_work_run+0x230/0x2e0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 WARNING: CPU: 1 PID: 7692 at kernel/sched/deadline.c:1995 inc_dl_deadline kernel/sched/deadline.c:1837 [inline] WARNING: CPU: 1 PID: 7692 at kernel/sched/deadline.c:1995 inc_dl_tasks kernel/sched/deadline.c:1879 [inline] WARNING: CPU: 1 PID: 7692 at kernel/sched/deadline.c:1995 __enqueue_dl_entity kernel/sched/deadline.c:1975 [inline] WARNING: CPU: 1 PID: 7692 at kernel/sched/deadline.c:1995 enqueue_dl_entity+0x1090/0x164c kernel/sched/deadline.c:2068 Modules linked in: CPU: 1 UID: 0 PID: 7692 Comm: syz.4.286 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 004000c5 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : enqueue_dl_entity+0x1090/0x164c kernel/sched/deadline.c:1837 lr : dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 sp : ffff80009e096b60 x29: ffff80009e096ba0 x28: 0000000000000000 x27: ffff0001b36562e8 x26: 0000000000000001 x25: 1fffe000366cac67 x24: 1fffe000366cac78 x23: ffff0001b3655900 x22: 0000000000000001 x21: ffff0001b3656300 x20: ffff0001b36563c0 x19: ffff0001b36562e8 x18: ffff80009e096600 x17: 000000000003ce78 x16: ffff8000803541a4 x15: 0000000000000001 x14: 1fffe0001ae55298 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: fffffffffffffff0 x9 : 1fffe000366cac5d x8 : 0000000000000001 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000020 x4 : 0000000000000000 x3 : ffff8000802d0798 x2 : 0000000000083b4e x1 : 0000000000000001 x0 : ffff0001b36562e8 Call trace: inc_dl_deadline kernel/sched/deadline.c:1837 [inline] (P) inc_dl_tasks kernel/sched/deadline.c:1879 [inline] (P) __enqueue_dl_entity kernel/sched/deadline.c:1975 [inline] (P) enqueue_dl_entity+0x1090/0x164c kernel/sched/deadline.c:2068 (P) dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 (L) dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 enqueue_task_fair+0x88c/0xbb8 kernel/sched/fair.c:7044 enqueue_task+0x7c/0x204 kernel/sched/core.c:2020 activate_task+0x78/0xd0 kernel/sched/core.c:2067 attach_task kernel/sched/fair.c:9641 [inline] attach_tasks kernel/sched/fair.c:9676 [inline] sched_balance_rq+0x501c/0x6e14 kernel/sched/fair.c:11753 sched_balance_newidle+0x558/0xd40 kernel/sched/fair.c:12795 pick_next_task_fair+0x48/0x870 kernel/sched/fair.c:8943 __pick_next_task kernel/sched/core.c:5971 [inline] pick_next_task kernel/sched/core.c:6493 [inline] __schedule+0x718/0x27d0 kernel/sched/core.c:6647 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6785 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6842 rwsem_down_write_slowpath+0xd10/0x14c8 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1578 kernfs_remove_by_name_ns+0x7c/0x188 fs/kernfs/dir.c:1689 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] sysfs_unmerge_group+0xd8/0x138 fs/sysfs/group.c:399 rpm_sysfs_remove drivers/base/power/sysfs.c:826 [inline] dpm_sysfs_remove+0x84/0xd4 drivers/base/power/sysfs.c:835 device_del+0x21c/0x828 drivers/base/core.c:3836 serio_destroy_port+0x300/0x414 drivers/input/serio/serio.c:570 serio_unregister_port+0x11c/0x140 drivers/input/serio/serio.c:706 userio_char_release+0x94/0xcc drivers/input/serio/userio.c:111 __fput+0x1bc/0x75c fs/file_table.c:431 ____fput+0x20/0x30 fs/file_table.c:459 task_work_run+0x230/0x2e0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 2264 hardirqs last enabled at (2263): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (2263): [] _raw_spin_unlock_irq+0x30/0x80 kernel/locking/spinlock.c:202 hardirqs last disabled at (2264): [] __schedule+0x2bc/0x27d0 kernel/sched/core.c:6572 softirqs last enabled at (2234): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (2232): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7692 at kernel/sched/deadline.c:1971 enqueue_dl_entity+0x1098/0x164c kernel/sched/deadline.c:1837 Modules linked in: CPU: 1 UID: 0 PID: 7692 Comm: syz.4.286 Tainted: G W 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 004000c5 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __enqueue_dl_entity kernel/sched/deadline.c:1837 [inline] pc : enqueue_dl_entity+0x1098/0x164c kernel/sched/deadline.c:2068 lr : enqueue_dl_entity+0x6c4/0x164c kernel/sched/deadline.c:2040 sp : ffff80009e096b60 x29: ffff80009e096ba0 x28: 1fffe000366cac66 x27: ffff0001b36562e8 x26: ffff0001b3655900 x25: 1fffe000366cac67 x24: ffff0001b3656438 x23: ffff0001b3656300 x22: ffff0001b3656328 x21: ffff0001b3655900 x20: ffff0001b3656280 x19: ffff0001b365633c x18: ffff80009e096600 x17: 000000000003ce78 x16: ffff80008b547910 x15: 0000000000000001 x14: 1fffe0001ae55298 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: dfff800000000000 x9 : 1fffe000366cac5d x8 : 0000000000000001 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000020 x4 : 0000000000000000 x3 : ffff8000802d0798 x2 : 0000000000083b4e x1 : 0000000000000001 x0 : ffff0001b3656308 Call trace: enqueue_dl_entity+0x1098/0x164c kernel/sched/deadline.c:1837 (P) enqueue_dl_entity+0x6c4/0x164c kernel/sched/deadline.c:2040 (L) dl_server_start+0xc0/0x208 kernel/sched/deadline.c:1650 enqueue_task_fair+0x88c/0xbb8 kernel/sched/fair.c:7044 enqueue_task+0x7c/0x204 kernel/sched/core.c:2020 activate_task+0x78/0xd0 kernel/sched/core.c:2067 attach_task kernel/sched/fair.c:9641 [inline] attach_tasks kernel/sched/fair.c:9676 [inline] sched_balance_rq+0x501c/0x6e14 kernel/sched/fair.c:11753 sched_balance_newidle+0x558/0xd40 kernel/sched/fair.c:12795 pick_next_task_fair+0x48/0x870 kernel/sched/fair.c:8943 __pick_next_task kernel/sched/core.c:5971 [inline] pick_next_task kernel/sched/core.c:6493 [inline] __schedule+0x718/0x27d0 kernel/sched/core.c:6647 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6785 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6842 rwsem_down_write_slowpath+0xd10/0x14c8 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1578 kernfs_remove_by_name_ns+0x7c/0x188 fs/kernfs/dir.c:1689 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] sysfs_unmerge_group+0xd8/0x138 fs/sysfs/group.c:399 rpm_sysfs_remove drivers/base/power/sysfs.c:826 [inline] dpm_sysfs_remove+0x84/0xd4 drivers/base/power/sysfs.c:835 device_del+0x21c/0x828 drivers/base/core.c:3836 serio_destroy_port+0x300/0x414 drivers/input/serio/serio.c:570 serio_unregister_port+0x11c/0x140 drivers/input/serio/serio.c:706 userio_char_release+0x94/0xcc drivers/input/serio/userio.c:111 __fput+0x1bc/0x75c fs/file_table.c:431 ____fput+0x20/0x30 fs/file_table.c:459 task_work_run+0x230/0x2e0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 2264 hardirqs last enabled at (2263): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (2263): [] _raw_spin_unlock_irq+0x30/0x80 kernel/locking/spinlock.c:202 hardirqs last disabled at (2264): [] __schedule+0x2bc/0x27d0 kernel/sched/core.c:6572 softirqs last enabled at (2234): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (2232): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---