================================ WARNING: inconsistent lock state 5.15.160-syzkaller #0 Not tainted -------------------------------- inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. syz-executor.4/5865 [HC1[1]:SC0[0]:HE0:SE1] takes: ffffffff8d159438 (sync_timeline_list_lock){?.+.}-{2:2}, at: sync_timeline_debug_remove+0x28/0x140 drivers/dma-buf/sync_debug.c:31 {HARDIRQ-ON-W} state was registered at: trace_hardirqs_on+0x67/0x80 kernel/trace/trace_preemptirq.c:49 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202 spin_unlock_irq include/linux/spinlock.h:413 [inline] sync_print_obj drivers/dma-buf/sync_debug.c:118 [inline] sync_info_debugfs_show+0x154/0x4c0 drivers/dma-buf/sync_debug.c:153 seq_read_iter+0x43a/0xd10 fs/seq_file.c:230 seq_read+0x452/0x5c0 fs/seq_file.c:162 vfs_read+0x300/0xe10 fs/read_write.c:483 ksys_read+0x1a2/0x2c0 fs/read_write.c:623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 irq event stamp: 96 hardirqs last enabled at (95): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (95): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202 hardirqs last disabled at (96): [] sysvec_irq_work+0xa/0xb0 arch/x86/kernel/irq_work.c:17 softirqs last enabled at (66): [] sock_orphan include/net/sock.h:2017 [inline] softirqs last enabled at (66): [] sk_common_release+0x112/0x2c0 net/core/sock.c:3474 softirqs last disabled at (64): [] sock_orphan include/net/sock.h:2013 [inline] softirqs last disabled at (64): [] sk_common_release+0xac/0x2c0 net/core/sock.c:3474 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sync_timeline_list_lock); lock(sync_timeline_list_lock); *** DEADLOCK *** no locks held by syz-executor.4/5865. stack backtrace: CPU: 1 PID: 5865 Comm: syz-executor.4 Not tainted 5.15.160-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 valid_state+0x134/0x1c0 kernel/locking/lockdep.c:3932 mark_lock_irq+0xa8/0xba0 kernel/locking/lockdep.c:4135