===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 6.18.0-rc5-next-20251111 #1 Not tainted ----------------------------------------------------- syz-executor.1/448351 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff888047709a98 (&new->fa_lock){....}-{3:3}, at: kill_fasync+0x137/0x520 and this task is already holding: ffff8880158d8028 (&client->buffer_lock){....}-{3:3}, at: evdev_pass_values.part.0+0xf6/0x940 which would create a new lock dependency: (&client->buffer_lock){....}-{3:3} -> (&new->fa_lock){....}-{3:3} but this new dependency connects a SOFTIRQ-irq-safe lock: (&dev->event_lock){..-.}-{3:3} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x15e/0x2f0 _raw_spin_lock_irqsave+0x3a/0x60 input_inject_event+0x9f/0x3b0 led_set_brightness+0x215/0x290 led_trigger_event+0xda/0x270 kbd_bh+0x20e/0x2e0 tasklet_action_common+0x235/0x3b0 handle_softirqs+0x1b1/0x770 __irq_exit_rcu+0xc4/0x100 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x70/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 __tasklet_schedule_common+0xb4/0x100 vt_set_leds_compute_shiftstate+0x78/0x80 redraw_screen+0x526/0x730 complete_change_console+0x106/0x5e0 change_console+0x19f/0x540 console_callback+0x3ba/0x420 process_one_work+0x8e1/0x19c0 worker_thread+0x67e/0xe90 kthread+0x3c8/0x740 ret_from_fork+0x67a/0x7a0 ret_from_fork_asm+0x1a/0x30 to a SOFTIRQ-irq-unsafe lock: (tasklist_lock){.+.+}-{3:3} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x15e/0x2f0 _raw_read_lock+0x5c/0x70 __do_wait+0x13e/0x8f0 do_wait+0x19f/0x560 kernel_wait+0x9f/0x160 call_usermodehelper_exec_work+0xf9/0x180 process_one_work+0x8e1/0x19c0 worker_thread+0x67e/0xe90 kthread+0x3c8/0x740 ret_from_fork+0x67a/0x7a0 ret_from_fork_asm+0x1a/0x30 other info that might help us debug this: Chain exists of: &dev->event_lock --> &client->buffer_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock); lock(&client->buffer_lock); lock(&dev->event_lock); *** DEADLOCK *** 7 locks held by syz-executor.1/448351: #0: ffff88800a9ac118 (&evdev->mutex){+.+.}-{4:4}, at: evdev_write+0x165/0x420 #1: ffff88800b636230 (&dev->event_lock){..-.}-{3:3}, at: input_inject_event+0x9f/0x3b0 #2: ffffffff85e1de40 (rcu_read_lock){....}-{1:3}, at: input_inject_event+0xbb/0x3b0 #3: ffffffff85e1de40 (rcu_read_lock){....}-{1:3}, at: input_pass_values+0x80/0x860 #4: ffffffff85e1de40 (rcu_read_lock){....}-{1:3}, at: evdev_events+0x80/0x430 #5: ffff8880158d8028 (&client->buffer_lock){....}-{3:3}, at: evdev_pass_values.part.0+0xf6/0x940 #6: ffffffff85e1de40 (rcu_read_lock){....}-{1:3}, at: kill_fasync+0x61/0x520 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock){..-.}-{3:3} { IN-SOFTIRQ-W at: lock_acquire+0x15e/0x2f0 _raw_spin_lock_irqsave+0x3a/0x60 input_inject_event+0x9f/0x3b0 led_set_brightness+0x215/0x290 led_trigger_event+0xda/0x270 kbd_bh+0x20e/0x2e0 tasklet_action_common+0x235/0x3b0 handle_softirqs+0x1b1/0x770 __irq_exit_rcu+0xc4/0x100 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x70/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 __tasklet_schedule_common+0xb4/0x100 vt_set_leds_compute_shiftstate+0x78/0x80 redraw_screen+0x526/0x730 complete_change_console+0x106/0x5e0 change_console+0x19f/0x540 console_callback+0x3ba/0x420 process_one_work+0x8e1/0x19c0 worker_thread+0x67e/0xe90 kthread+0x3c8/0x740 ret_from_fork+0x67a/0x7a0 ret_from_fork_asm+0x1a/0x30 INITIAL USE at: lock_acquire+0x15e/0x2f0 _raw_spin_lock_irqsave+0x3a/0x60 input_inject_event+0x9f/0x3b0 led_set_brightness+0x215/0x290 kbd_led_trigger_activate+0xcd/0x110 led_trigger_set+0x4cc/0xaa0 led_trigger_set_default+0x1e7/0x2e0 led_classdev_register_ext+0x615/0x950 input_leds_connect+0x49b/0x870 input_attach_handler+0x17a/0x260 input_register_device+0x9ff/0x1050 atkbd_connect+0x5e6/0xa10 serio_driver_probe+0x84/0xe0 really_probe+0x240/0x820 __driver_probe_device+0x2c4/0x380 driver_probe_device+0x4e/0x2a0 __driver_attach+0x1b0/0x590 bus_for_each_dev+0x12b/0x1c0 serio_handle_event+0x23b/0xaa0 process_one_work+0x8e1/0x19c0 worker_thread+0x67e/0xe90 kthread+0x3c8/0x740 ret_from_fork+0x67a/0x7a0 ret_from_fork_asm+0x1a/0x30 } ... key at: [] __key.4+0x0/0x40 -> (&client->buffer_lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x15e/0x2f0 _raw_spin_lock+0x2b/0x40 evdev_handle_get_val+0x70/0x5c0 evdev_do_ioctl+0x1009/0x1990 evdev_ioctl+0x14a/0x1b0 __x64_sys_ioctl+0x18f/0x210 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.90+0x0/0x40 ... acquired at: _raw_spin_lock+0x2b/0x40 evdev_handle_get_val+0x70/0x5c0 evdev_do_ioctl+0x1009/0x1990 evdev_ioctl+0x14a/0x1b0 __x64_sys_ioctl+0x18f/0x210 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (tasklist_lock){.+.+}-{3:3} { HARDIRQ-ON-R at: lock_acquire+0x15e/0x2f0 _raw_read_lock+0x5c/0x70 __do_wait+0x13e/0x8f0 do_wait+0x19f/0x560 kernel_wait+0x9f/0x160 call_usermodehelper_exec_work+0xf9/0x180 process_one_work+0x8e1/0x19c0 worker_thread+0x67e/0xe90 kthread+0x3c8/0x740 ret_from_fork+0x67a/0x7a0 ret_from_fork_asm+0x1a/0x30 SOFTIRQ-ON-R at: lock_acquire+0x15e/0x2f0 _raw_read_lock+0x5c/0x70 __do_wait+0x13e/0x8f0 do_wait+0x19f/0x560 kernel_wait+0x9f/0x160 call_usermodehelper_exec_work+0xf9/0x180 process_one_work+0x8e1/0x19c0 worker_thread+0x67e/0xe90 kthread+0x3c8/0x740 ret_from_fork+0x67a/0x7a0 ret_from_fork_asm+0x1a/0x30 INITIAL USE at: lock_acquire+0x15e/0x2f0 _raw_write_lock_irq+0x33/0x50 copy_process+0x4299/0x72a0 kernel_clone+0xea/0x7f0 user_mode_thread+0xc8/0x110 rest_init+0x24/0x290 start_kernel+0x3fa/0x510 x86_64_start_reservations+0x18/0x30 x86_64_start_kernel+0x109/0x120 common_startup_64+0x13e/0x148 INITIAL READ USE at: lock_acquire+0x15e/0x2f0 _raw_read_lock+0x5c/0x70 __do_wait+0x13e/0x8f0 do_wait+0x19f/0x560 kernel_wait+0x9f/0x160 call_usermodehelper_exec_work+0xf9/0x180 process_one_work+0x8e1/0x19c0 worker_thread+0x67e/0xe90 kthread+0x3c8/0x740 ret_from_fork+0x67a/0x7a0 ret_from_fork_asm+0x1a/0x30 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: _raw_read_lock+0x5c/0x70 send_sigio+0xbb/0x370 kill_fasync+0x218/0x520 lease_break_callback+0x23/0x30 __break_lease+0x3e8/0x1450 do_dentry_open+0x6b4/0x1420 vfs_open+0x82/0x3f0 path_openat+0x1c3f/0x2880 do_filp_open+0x1e8/0x450 do_sys_openat2+0x104/0x1b0 __x64_sys_creat+0xcc/0x120 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&f_owner->lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x15e/0x2f0 _raw_write_lock_irq+0x33/0x50 __f_setown+0x60/0x3c0 generic_setlease+0xe69/0x1460 kernel_setlease+0x10c/0x130 vfs_setlease+0x25e/0x2e0 fcntl_setlease+0x137/0x220 do_fcntl+0x4cf/0x1430 __x64_sys_fcntl+0x155/0x1f0 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire+0x15e/0x2f0 _raw_read_lock_irqsave+0x75/0x90 send_sigio+0x31/0x370 kill_fasync+0x218/0x520 lease_break_callback+0x23/0x30 __break_lease+0x3e8/0x1450 do_dentry_open+0x6b4/0x1420 vfs_open+0x82/0x3f0 path_openat+0x1c3f/0x2880 do_filp_open+0x1e8/0x450 do_sys_openat2+0x104/0x1b0 __x64_sys_openat+0x142/0x200 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.1+0x0/0x40 ... acquired at: _raw_read_lock_irqsave+0x75/0x90 send_sigio+0x31/0x370 kill_fasync+0x218/0x520 lease_break_callback+0x23/0x30 __break_lease+0x3e8/0x1450 do_dentry_open+0x6b4/0x1420 vfs_open+0x82/0x3f0 path_openat+0x1c3f/0x2880 do_filp_open+0x1e8/0x450 do_sys_openat2+0x104/0x1b0 __x64_sys_openat+0x142/0x200 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> (&new->fa_lock){....}-{3:3} { INITIAL USE at: lock_acquire+0x15e/0x2f0 _raw_write_lock_irq+0x33/0x50 fasync_remove_entry+0xb2/0x1e0 fasync_helper+0xa6/0xc0 lease_modify+0x2ab/0x620 locks_remove_file+0x294/0x5a0 __fput+0x351/0xb50 task_work_run+0x172/0x280 exit_to_user_mode_loop+0xff/0x4d0 do_syscall_64+0x3c7/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f INITIAL READ USE at: lock_acquire+0x15e/0x2f0 _raw_read_lock_irqsave+0x75/0x90 kill_fasync+0x137/0x520 lease_break_callback+0x23/0x30 __break_lease+0x3e8/0x1450 do_dentry_open+0x6b4/0x1420 vfs_open+0x82/0x3f0 path_openat+0x1c3f/0x2880 do_filp_open+0x1e8/0x450 do_sys_openat2+0x104/0x1b0 __x64_sys_openat+0x142/0x200 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f } ... key at: [] __key.0+0x0/0x40 ... acquired at: lock_acquire+0x15e/0x2f0 _raw_read_lock_irqsave+0x75/0x90 kill_fasync+0x137/0x520 evdev_pass_values.part.0+0x665/0x940 evdev_events+0x3b5/0x430 input_pass_values+0x708/0x860 input_handle_event+0xdcf/0x13d0 input_inject_event+0x1e5/0x3b0 evdev_write+0x2e1/0x420 vfs_write+0x2b7/0x1150 ksys_write+0x1ef/0x240 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f stack backtrace: CPU: 0 UID: 0 PID: 448351 Comm: syz-executor.1 Not tainted 6.18.0-rc5-next-20251111 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 check_irq_usage+0x6f6/0x790 __lock_acquire+0x13b5/0x1b70 lock_acquire+0x15e/0x2f0 _raw_read_lock_irqsave+0x75/0x90 kill_fasync+0x137/0x520 evdev_pass_values.part.0+0x665/0x940 evdev_events+0x3b5/0x430 input_pass_values+0x708/0x860 input_handle_event+0xdcf/0x13d0 input_inject_event+0x1e5/0x3b0 evdev_write+0x2e1/0x420 vfs_write+0x2b7/0x1150 ksys_write+0x1ef/0x240 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8921e70b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f891f3e6188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f8921f83f60 RCX: 00007f8921e70b19 RDX: 000000000000ff2f RSI: 00000000200000c0 RDI: 0000000000000004 RBP: 00007f8921ecaf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbef3dd0f R14: 00007f891f3e6300 R15: 0000000000022000 9p: Bad value for 'rfdno' 9p: Bad value for 'rfdno' 9p: Bad value for 'rfdno' 9p: Bad value for 'rfdno' 9p: Bad value for 'rfdno' 9p: Bad value for 'rfdno' 9p: Bad value for 'rfdno' syz-executor.1: page allocation failure: order:0, mode:0x10cc0(GFP_KERNEL|__GFP_NORETRY), nodemask=(null),cpuset=/,mems_allowed=0 CPU: 1 UID: 0 PID: 451232 Comm: syz-executor.1 Not tainted 6.18.0-rc5-next-20251111 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xfa/0x120 warn_alloc+0x211/0x360 __alloc_frozen_pages_noprof+0x125e/0x1f10 alloc_pages_mpol+0xed/0x340 alloc_pages_noprof+0x9d/0x180 kimage_alloc_pages+0x70/0x240 kimage_alloc_control_pages+0x18f/0x970 do_kexec_load+0x417/0x8a0 __x64_sys_kexec_load+0x1c6/0x230 do_syscall_64+0xbf/0x430 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8921e70b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f891f3e6188 EFLAGS: 00000246 ORIG_RAX: 00000000000000f6 RAX: ffffffffffffffda RBX: 00007f8921f83f60 RCX: 00007f8921e70b19 RDX: 0000000020000040 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 00007f8921ecaf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbef3dd0f R14: 00007f891f3e6300 R15: 0000000000022000 Mem-Info: active_anon:21626 inactive_anon:31360 isolated_anon:0 active_file:13051 inactive_file:2308 isolated_file:0 unevictable:56 dirty:15 writeback:0 slab_reclaimable:8523 slab_unreclaimable:69968 mapped:79046 shmem:5319 pagetables:8986 sec_pagetables:0 bounce:0 kernel_misc_reclaimable:0 free:5710 free_pcp:218 free_cma:0 Node 0 active_anon:86504kB inactive_anon:125440kB active_file:52204kB inactive_file:9232kB unevictable:224kB isolated(anon):0kB isolated(file):0kB mapped:316184kB dirty:60kB writeback:0kB shmem:21276kB kernel_stack:11648kB pagetables:35944kB sec_pagetables:0kB all_unreclaimable? no Balloon:0kB Node 0 DMA free:6444kB boost:0kB min:44kB low:56kB high:68kB reserved_highatomic:0KB free_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB zspages:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 1600 1600 1600 Node 0 DMA32 free:16396kB boost:10240kB min:15312kB low:16936kB high:18560kB reserved_highatomic:0KB free_highatomic:0KB active_anon:86504kB inactive_anon:125440kB active_file:52204kB inactive_file:9232kB unevictable:224kB writepending:60kB zspages:0kB present:2080640kB managed:1638432kB mlocked:80kB bounce:0kB free_pcp:840kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 Node 0 DMA: 1*4kB (E) 1*8kB (E) 2*16kB (UE) 2*32kB (UE) 1*64kB (E) 1*128kB (E) 2*256kB (UE) 1*512kB (E) 1*1024kB (E) 2*2048kB (ME) 0*4096kB = 6444kB Node 0 DMA32: 74*4kB (UM) 159*8kB (UM) 65*16kB (M) 88*32kB (M) 53*64kB (M) 31*128kB (M) 10*256kB (ME) 2*512kB (M) 0*1024kB 0*2048kB 0*4096kB = 16368kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB 20690 total pagecache pages 0 pages in swap cache Free swap = 0kB Total swap = 0kB 524158 pages RAM 0 pages HighMem/MovableOnly 110710 pages reserved kexec: Could not allocate control_code_buffer kexec: Could not allocate control_code_buffer kexec: Could not allocate control_code_buffer kexec: Could not allocate control_code_buffer program syz-executor.4 is using a deprecated SCSI ioctl, please convert it to SG_IO