===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 6.6.0-rc2-syzkaller-00278-gdc912ba91b7e #0 Not tainted ----------------------------------------------------- syz-executor159/5051 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffff88801c24da18 (&f->f_owner.lock){...-}-{2:2}, at: send_sigio+0x28/0x3b0 fs/fcntl.c:780 and this task is already holding: ffff88807522f018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:998 [inline] ffff88807522f018 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1019 [inline] ffff88807522f018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x138/0x4f0 fs/fcntl.c:1012 which would create a new lock dependency: (&new->fa_lock){....}-{2:2} -> (&f->f_owner.lock){...-}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&dev->event_lock#2){-...}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x50 kernel/locking/spinlock.c:162 input_event drivers/input/input.c:434 [inline] input_event+0x70/0xa0 drivers/input/input.c:427 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons+0x30/0x80 drivers/input/mouse/psmouse-base.c:128 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:146 [inline] psmouse_process_byte+0x39c/0x8a0 drivers/input/mouse/psmouse-base.c:237 psmouse_handle_byte+0x41/0x560 drivers/input/mouse/psmouse-base.c:279 psmouse_receive_byte+0x243/0xe10 drivers/input/mouse/psmouse-base.c:426 ps2_interrupt+0x1fe/0x5a0 drivers/input/serio/libps2.c:613 serio_interrupt+0x8d/0x150 drivers/input/serio/serio.c:998 i8042_interrupt+0x3f2/0x8a0 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x22a/0x740 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x261/0xcf0 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline] handle_irq arch/x86/kernel/irq.c:238 [inline] __common_interrupt+0xdb/0x240 arch/x86/kernel/irq.c:257 common_interrupt+0xa9/0xd0 arch/x86/kernel/irq.c:247 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 orc_find arch/x86/kernel/unwind_orc.c:209 [inline] unwind_next_frame+0x208/0x2390 arch/x86/kernel/unwind_orc.c:494 __unwind_start+0x5a4/0x880 arch/x86/kernel/unwind_orc.c:760 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xaf/0x170 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502 alloc_pid+0xd4/0xd80 kernel/pid.c:183 copy_process+0x404a/0x73f0 kernel/fork.c:2517 kernel_clone+0xfd/0x920 kernel/fork.c:2909 user_mode_thread+0xb4/0xf0 kernel/fork.c:2987 call_usermodehelper_exec_work kernel/umh.c:172 [inline] call_usermodehelper_exec_work+0xcb/0x170 kernel/umh.c:158 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 to a HARDIRQ-irq-unsafe lock: (tasklist_lock){.+.?}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a8/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 other info that might help us debug this: Chain exists of: &dev->event_lock#2 --> &new->fa_lock --> tasklist_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(tasklist_lock); local_irq_disable(); lock(&dev->event_lock#2); lock(&new->fa_lock); lock(&dev->event_lock#2); *** DEADLOCK *** 8 locks held by syz-executor159/5051: #0: ffff88814438e110 (&evdev->mutex){+.+.}-{3:3}, at: evdev_write+0x201/0x750 drivers/input/evdev.c:513 #1: ffff888014f0b230 (&dev->event_lock#2){-...}-{2:2}, at: input_inject_event+0xa4/0x370 drivers/input/input.c:460 #2: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #2: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #2: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: input_inject_event+0xca/0x370 drivers/input/input.c:462 #3: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #3: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #3: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: input_pass_values.part.0+0x3e/0x7a0 drivers/input/input.c:153 #4: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #4: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #4: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: evdev_events+0x87/0x390 drivers/input/evdev.c:298 #5: ffff88814627b028 (&client->buffer_lock){....}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #5: ffff88814627b028 (&client->buffer_lock){....}-{2:2}, at: evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 #6: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #6: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #6: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: kill_fasync fs/fcntl.c:1018 [inline] #6: ffffffff8cbab2e0 (rcu_read_lock){....}-{1:2}, at: kill_fasync+0x6d/0x4f0 fs/fcntl.c:1012 #7: ffff88807522f018 (&new->fa_lock){....}-{2:2}, at: kill_fasync_rcu fs/fcntl.c:998 [inline] #7: ffff88807522f018 (&new->fa_lock){....}-{2:2}, at: kill_fasync fs/fcntl.c:1019 [inline] #7: ffff88807522f018 (&new->fa_lock){....}-{2:2}, at: kill_fasync+0x138/0x4f0 fs/fcntl.c:1012 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&dev->event_lock#2){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x50 kernel/locking/spinlock.c:162 input_event drivers/input/input.c:434 [inline] input_event+0x70/0xa0 drivers/input/input.c:427 input_report_key include/linux/input.h:425 [inline] psmouse_report_standard_buttons+0x30/0x80 drivers/input/mouse/psmouse-base.c:128 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:146 [inline] psmouse_process_byte+0x39c/0x8a0 drivers/input/mouse/psmouse-base.c:237 psmouse_handle_byte+0x41/0x560 drivers/input/mouse/psmouse-base.c:279 psmouse_receive_byte+0x243/0xe10 drivers/input/mouse/psmouse-base.c:426 ps2_interrupt+0x1fe/0x5a0 drivers/input/serio/libps2.c:613 serio_interrupt+0x8d/0x150 drivers/input/serio/serio.c:998 i8042_interrupt+0x3f2/0x8a0 drivers/input/serio/i8042.c:606 __handle_irq_event_percpu+0x22a/0x740 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x261/0xcf0 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline] handle_irq arch/x86/kernel/irq.c:238 [inline] __common_interrupt+0xdb/0x240 arch/x86/kernel/irq.c:257 common_interrupt+0xa9/0xd0 arch/x86/kernel/irq.c:247 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 orc_find arch/x86/kernel/unwind_orc.c:209 [inline] unwind_next_frame+0x208/0x2390 arch/x86/kernel/unwind_orc.c:494 __unwind_start+0x5a4/0x880 arch/x86/kernel/unwind_orc.c:760 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xaf/0x170 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502 alloc_pid+0xd4/0xd80 kernel/pid.c:183 copy_process+0x404a/0x73f0 kernel/fork.c:2517 kernel_clone+0xfd/0x920 kernel/fork.c:2909 user_mode_thread+0xb4/0xf0 kernel/fork.c:2987 call_usermodehelper_exec_work kernel/umh.c:172 [inline] call_usermodehelper_exec_work+0xcb/0x170 kernel/umh.c:158 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x50 kernel/locking/spinlock.c:162 input_inject_event+0xa4/0x370 drivers/input/input.c:460 __led_set_brightness drivers/leds/led-core.c:47 [inline] led_set_brightness_nopm drivers/leds/led-core.c:311 [inline] led_set_brightness_nosleep drivers/leds/led-core.c:342 [inline] led_set_brightness+0x211/0x290 drivers/leds/led-core.c:304 led_trigger_event drivers/leds/led-triggers.c:391 [inline] led_trigger_event+0xb2/0x240 drivers/leds/led-triggers.c:381 kbd_led_trigger_activate+0xc6/0x100 drivers/tty/vt/keyboard.c:1036 led_trigger_set+0x589/0xc00 drivers/leds/led-triggers.c:198 led_trigger_set_default drivers/leds/led-triggers.c:263 [inline] led_trigger_set_default+0x1d2/0x230 drivers/leds/led-triggers.c:250 led_classdev_register_ext+0x78d/0xa10 drivers/leds/led-class.c:569 led_classdev_register include/linux/leds.h:279 [inline] input_leds_connect+0x54a/0x8d0 drivers/input/input-leds.c:139 input_attach_handler.isra.0+0x17c/0x250 drivers/input/input.c:1064 input_register_device+0xb1e/0x1130 drivers/input/input.c:2396 atkbd_connect+0x5e2/0xa20 drivers/input/keyboard/atkbd.c:1298 serio_connect_driver drivers/input/serio/serio.c:44 [inline] serio_driver_probe+0x71/0xa0 drivers/input/serio/serio.c:775 call_driver_probe drivers/base/dd.c:579 [inline] really_probe+0x234/0xc90 drivers/base/dd.c:658 __driver_probe_device+0x1de/0x4b0 drivers/base/dd.c:800 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:830 __driver_attach+0x274/0x570 drivers/base/dd.c:1216 bus_for_each_dev+0x13c/0x1d0 drivers/base/bus.c:368 serio_attach_driver drivers/input/serio/serio.c:804 [inline] serio_handle_event+0x2b8/0xa90 drivers/input/serio/serio.c:224 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 } ... key at: [] __key.6+0x0/0x40 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x52f/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.3+0x0/0x40 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] evdev_pass_values+0x10e/0x9b0 drivers/input/evdev.c:261 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x52f/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&new->fa_lock){....}-{2:2} { INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:998 [inline] kill_fasync fs/fcntl.c:1019 [inline] kill_fasync+0x138/0x4f0 fs/fcntl.c:1012 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x52f/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.0+0x0/0x40 ... acquired at: __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 kill_fasync_rcu fs/fcntl.c:998 [inline] kill_fasync fs/fcntl.c:1019 [inline] kill_fasync+0x138/0x4f0 fs/fcntl.c:1012 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x52f/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (tasklist_lock){.+.?}-{2:2} { HARDIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a8/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x3a/0x70 kernel/locking/spinlock.c:228 send_sigurg+0xb0/0xc40 fs/fcntl.c:835 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3382 tcp_check_urg net/ipv4/tcp_input.c:5647 [inline] tcp_urg+0x39e/0xb50 net/ipv4/tcp_input.c:5688 tcp_rcv_established+0x839/0x1fa0 net/ipv4/tcp_input.c:6037 tcp_v6_do_rcv+0x7f4/0x15f0 net/ipv6/tcp_ipv6.c:1485 tcp_v6_rcv+0x2ce9/0x33f0 net/ipv6/tcp_ipv6.c:1746 ip6_protocol_deliver_rcu+0x33b/0x13d0 net/ipv6/ip6_input.c:438 ip6_input_finish+0x14f/0x2f0 net/ipv6/ip6_input.c:483 NF_HOOK include/linux/netfilter.h:304 [inline] NF_HOOK include/linux/netfilter.h:298 [inline] ip6_input+0xc9/0x430 net/ipv6/ip6_input.c:492 dst_input include/net/dst.h:468 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:79 [inline] NF_HOOK include/linux/netfilter.h:304 [inline] NF_HOOK include/linux/netfilter.h:298 [inline] ipv6_rcv+0x55e/0x720 net/ipv6/ip6_input.c:310 __netif_receive_skb_one_core+0x115/0x180 net/core/dev.c:5523 __netif_receive_skb+0x1f/0x1b0 net/core/dev.c:5637 process_backlog+0x101/0x6b0 net/core/dev.c:5965 __napi_poll.constprop.0+0xb4/0x530 net/core/dev.c:6527 napi_poll net/core/dev.c:6594 [inline] net_rx_action+0x956/0xe90 net/core/dev.c:6727 __do_softirq+0x218/0x965 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 check_kcov_mode kernel/kcov.c:173 [inline] __sanitizer_cov_trace_pc+0xd/0x70 kernel/kcov.c:207 __orc_find+0xe1/0x130 arch/x86/kernel/unwind_orc.c:109 orc_find arch/x86/kernel/unwind_orc.c:227 [inline] unwind_next_frame+0x329/0x2390 arch/x86/kernel/unwind_orc.c:494 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] __kmem_cache_free+0xb8/0x2f0 mm/slub.c:3822 tomoyo_supervisor+0xaa0/0xea0 security/tomoyo/common.c:2141 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x270/0x3b0 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x341/0x3b0 security/tomoyo/file.c:780 tomoyo_file_open security/tomoyo/tomoyo.c:332 [inline] tomoyo_file_open+0xa8/0xd0 security/tomoyo/tomoyo.c:327 security_file_open+0x6a/0xe0 security/security.c:2836 do_dentry_open+0x538/0x1730 fs/open.c:916 do_open fs/namei.c:3639 [inline] path_openat+0x19af/0x29c0 fs/namei.c:3796 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd SOFTIRQ-ON-R at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a8/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 copy_process+0x4660/0x73f0 kernel/fork.c:2626 kernel_clone+0xfd/0x920 kernel/fork.c:2909 user_mode_thread+0xb4/0xf0 kernel/fork.c:2987 rest_init+0x27/0x2b0 init/main.c:691 arch_call_rest_init+0x13/0x30 init/main.c:823 start_kernel+0x39f/0x480 init/main.c:1068 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:556 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:537 secondary_startup_64_no_verify+0x166/0x16b INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 do_wait+0x2a8/0xc70 kernel/exit.c:1607 kernel_wait+0xa0/0x150 kernel/exit.c:1797 call_usermodehelper_exec_sync kernel/umh.c:137 [inline] call_usermodehelper_exec_work+0xf1/0x170 kernel/umh.c:164 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 } ... key at: [] tasklist_lock+0x18/0x40 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:150 [inline] _raw_read_lock+0x5f/0x70 kernel/locking/spinlock.c:228 send_sigurg+0xb0/0xc40 fs/fcntl.c:835 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3382 tcp_check_urg net/ipv4/tcp_input.c:5647 [inline] tcp_urg+0x39e/0xb50 net/ipv4/tcp_input.c:5688 tcp_rcv_established+0x839/0x1fa0 net/ipv4/tcp_input.c:6037 tcp_v6_do_rcv+0x7f4/0x15f0 net/ipv6/tcp_ipv6.c:1485 sk_backlog_rcv include/net/sock.h:1121 [inline] __release_sock+0x132/0x3a0 net/core/sock.c:2983 release_sock+0x58/0x1b0 net/core/sock.c:3520 sk_stream_wait_memory+0x6bc/0xff0 net/core/stream.c:145 tcp_sendmsg_locked+0xa66/0x3440 net/ipv4/tcp.c:1294 tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336 inet6_sendmsg+0x9d/0xe0 net/ipv6/af_inet6.c:655 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:753 __sys_sendto+0x255/0x340 net/socket.c:2177 __do_sys_sendto net/socket.c:2189 [inline] __se_sys_sendto net/socket.c:2185 [inline] __x64_sys_sendto+0xe0/0x1b0 net/socket.c:2185 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> (&f->f_owner.lock){...-}-{2:2} { IN-SOFTIRQ-R at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x46/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xc40 fs/fcntl.c:819 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3382 tcp_check_urg net/ipv4/tcp_input.c:5647 [inline] tcp_urg+0x39e/0xb50 net/ipv4/tcp_input.c:5688 tcp_rcv_established+0x839/0x1fa0 net/ipv4/tcp_input.c:6037 tcp_v6_do_rcv+0x7f4/0x15f0 net/ipv6/tcp_ipv6.c:1485 tcp_v6_rcv+0x2ce9/0x33f0 net/ipv6/tcp_ipv6.c:1746 ip6_protocol_deliver_rcu+0x33b/0x13d0 net/ipv6/ip6_input.c:438 ip6_input_finish+0x14f/0x2f0 net/ipv6/ip6_input.c:483 NF_HOOK include/linux/netfilter.h:304 [inline] NF_HOOK include/linux/netfilter.h:298 [inline] ip6_input+0xc9/0x430 net/ipv6/ip6_input.c:492 dst_input include/net/dst.h:468 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:79 [inline] NF_HOOK include/linux/netfilter.h:304 [inline] NF_HOOK include/linux/netfilter.h:298 [inline] ipv6_rcv+0x55e/0x720 net/ipv6/ip6_input.c:310 __netif_receive_skb_one_core+0x115/0x180 net/core/dev.c:5523 __netif_receive_skb+0x1f/0x1b0 net/core/dev.c:5637 process_backlog+0x101/0x6b0 net/core/dev.c:5965 __napi_poll.constprop.0+0xb4/0x530 net/core/dev.c:6527 napi_poll net/core/dev.c:6594 [inline] net_rx_action+0x956/0xe90 net/core/dev.c:6727 __do_softirq+0x218/0x965 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 check_kcov_mode kernel/kcov.c:173 [inline] __sanitizer_cov_trace_pc+0xd/0x70 kernel/kcov.c:207 __orc_find+0xe1/0x130 arch/x86/kernel/unwind_orc.c:109 orc_find arch/x86/kernel/unwind_orc.c:227 [inline] unwind_next_frame+0x329/0x2390 arch/x86/kernel/unwind_orc.c:494 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] __kmem_cache_free+0xb8/0x2f0 mm/slub.c:3822 tomoyo_supervisor+0xaa0/0xea0 security/tomoyo/common.c:2141 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x270/0x3b0 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x341/0x3b0 security/tomoyo/file.c:780 tomoyo_file_open security/tomoyo/tomoyo.c:332 [inline] tomoyo_file_open+0xa8/0xd0 security/tomoyo/tomoyo.c:327 security_file_open+0x6a/0xe0 security/security.c:2836 do_dentry_open+0x538/0x1730 fs/open.c:916 do_open fs/namei.c:3639 [inline] path_openat+0x19af/0x29c0 fs/namei.c:3796 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0x36/0x50 kernel/locking/spinlock.c:326 f_modown+0x2a/0x390 fs/fcntl.c:92 __f_setown fs/fcntl.c:111 [inline] f_setown+0xd4/0x2a0 fs/fcntl.c:139 do_fcntl+0x11e6/0x1260 fs/fcntl.c:379 __do_sys_fcntl fs/fcntl.c:456 [inline] __se_sys_fcntl fs/fcntl.c:441 [inline] __x64_sys_fcntl+0x16c/0x1e0 fs/fcntl.c:441 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd INITIAL READ USE at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 send_sigurg+0x22/0xc40 fs/fcntl.c:819 sk_send_sigurg+0x7a/0x370 net/core/sock.c:3382 tcp_check_urg net/ipv4/tcp_input.c:5647 [inline] tcp_urg+0x39e/0xb50 net/ipv4/tcp_input.c:5688 tcp_rcv_established+0x839/0x1fa0 net/ipv4/tcp_input.c:6037 tcp_v6_do_rcv+0x7f4/0x15f0 net/ipv6/tcp_ipv6.c:1485 sk_backlog_rcv include/net/sock.h:1121 [inline] __release_sock+0x132/0x3a0 net/core/sock.c:2983 release_sock+0x58/0x1b0 net/core/sock.c:3520 sk_stream_wait_memory+0x6bc/0xff0 net/core/stream.c:145 tcp_sendmsg_locked+0xa66/0x3440 net/ipv4/tcp.c:1294 tcp_sendmsg+0x2e/0x40 net/ipv4/tcp.c:1336 inet6_sendmsg+0x9d/0xe0 net/ipv6/af_inet6.c:655 sock_sendmsg_nosec net/socket.c:730 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:753 __sys_sendto+0x255/0x340 net/socket.c:2177 __do_sys_sendto net/socket.c:2189 [inline] __se_sys_sendto net/socket.c:2185 [inline] __x64_sys_sendto+0xe0/0x1b0 net/socket.c:2185 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd } ... key at: [] __key.5+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 send_sigio+0x28/0x3b0 fs/fcntl.c:780 kill_fasync_rcu fs/fcntl.c:1005 [inline] kill_fasync fs/fcntl.c:1019 [inline] kill_fasync+0x1f6/0x4f0 fs/fcntl.c:1012 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x52f/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd stack backtrace: CPU: 1 PID: 5051 Comm: syz-executor159 Not tainted 6.6.0-rc2-syzkaller-00278-gdc912ba91b7e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_bad_irq_dependency kernel/locking/lockdep.c:2626 [inline] check_irq_usage+0x10b8/0x1c70 kernel/locking/lockdep.c:2865 check_prev_add kernel/locking/lockdep.c:3138 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3868 [inline] __lock_acquire+0x2e53/0x5de0 kernel/locking/lockdep.c:5136 lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0x70/0x90 kernel/locking/spinlock.c:236 send_sigio+0x28/0x3b0 fs/fcntl.c:780 kill_fasync_rcu fs/fcntl.c:1005 [inline] kill_fasync fs/fcntl.c:1019 [inline] kill_fasync+0x1f6/0x4f0 fs/fcntl.c:1012 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x619/0x9b0 drivers/input/evdev.c:278 evdev_events+0x1b7/0x390 drivers/input/evdev.c:306 input_to_handler+0x29e/0x4c0 drivers/input/input.c:129 input_pass_values.part.0+0x52f/0x7a0 drivers/input/input.c:161 input_pass_values drivers/input/input.c:148 [inline] input_event_dispose+0x5ee/0x770 drivers/input/input.c:378 input_handle_event+0x11c/0xd80 drivers/input/input.c:406 input_inject_event+0x1bb/0x370 drivers/input/input.c:465 evdev_write+0x456/0x750 drivers/input/evdev.c:530 vfs_write+0x2a4/0xe40 fs/read_write.c:582 ksys_write+0x1f0/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f00ca3a3079 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f00ca341228 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f00ca42a3f8 RCX: 00007f00ca3a3079 RDX: 0000000000002ad8 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f00ca42a3f0 R08: 00007f00ca3416c0 R09: 00007f00ca3416c0 R10: 00007f00ca3416c0 R11: 0000000000000246 R12: 00007f00ca3f7018 R13: 0100000000000000 R14: 00000000d0d0c2ac R15: 00007fffda7650a8