EXT4-fs error (device loop3): ext4_orphan_get:1413: comm syz-executor.3: bad orphan inode 4293066752 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue ================================ WARNING: inconsistent lock state 5.10.60 #1 Not tainted -------------------------------- inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz-executor.6/73160 [HC0[0]:SC0[0]:HE1:SE1] takes: ffff88800d5e50a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffff88800d5e50a0 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}-{2:2}, at: sco_conn_del+0x128/0x270 net/bluetooth/sco.c:176 {IN-SOFTIRQ-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5560 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5525 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] sco_sock_timeout+0x24/0x150 net/bluetooth/sco.c:83 call_timer_fn+0x182/0x580 kernel/time/timer.c:1414 expire_timers kernel/time/timer.c:1459 [inline] __run_timers.part.0+0x666/0x9d0 kernel/time/timer.c:1750 __run_timers kernel/time/timer.c:1731 [inline] run_timer_softirq+0x80/0x120 kernel/time/timer.c:1763 __do_softirq+0x1b6/0x86a kernel/softirq.c:298 asm_call_irq_on_stack+0x12/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x110/0x1a0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1095 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 unwind_next_frame+0x11af/0x1aa0 arch/x86/kernel/unwind_orc.c:584 arch_stack_walk+0x83/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:461 slab_post_alloc_hook mm/slab.h:532 [inline] slab_alloc_node mm/slub.c:2889 [inline] slab_alloc mm/slub.c:2897 [inline] kmem_cache_alloc+0x13d/0x350 mm/slub.c:2902 kmem_cache_zalloc include/linux/slab.h:654 [inline] lsm_file_alloc security/security.c:569 [inline] security_file_alloc+0x34/0x170 security/security.c:1457 __alloc_file+0xb6/0x310 fs/file_table.c:106 alloc_empty_file+0x6a/0x160 fs/file_table.c:151 path_openat+0xdf/0x2690 fs/namei.c:3346 do_filp_open+0x192/0x3e0 fs/namei.c:3387 do_sys_openat2+0x16d/0x420 fs/open.c:1180 do_sys_open fs/open.c:1196 [inline] __do_sys_openat fs/open.c:1212 [inline] __se_sys_openat fs/open.c:1207 [inline] __x64_sys_openat+0x13c/0x1f0 fs/open.c:1207 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 irq event stamp: 6849 hardirqs last enabled at (6849): [] quarantine_put+0x87/0x190 mm/kasan/quarantine.c:217 hardirqs last disabled at (6848): [] quarantine_put+0x80/0x190 mm/kasan/quarantine.c:190 softirqs last enabled at (6584): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (6569): [] asm_call_irq_on_stack+0x12/0x20 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(slock-AF_BLUETOOTH-BTPROTO_SCO); lock(slock-AF_BLUETOOTH-BTPROTO_SCO); *** DEADLOCK *** 4 locks held by syz-executor.6/73160: #0: ffffffff85418888 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0xfe/0x4b0 net/rfkill/core.c:1232 #1: ffff88800f424f40 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0xee/0x1240 net/bluetooth/hci_core.c:1727 #2: ffff88800f424078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_do_close+0x23f/0x1240 net/bluetooth/hci_core.c:1764 #3: ffffffff85366d28 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1440 [inline] #3: ffffffff85366d28 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xc7/0x230 net/bluetooth/hci_conn.c:1557 stack backtrace: CPU: 0 PID: 73160 Comm: syz-executor.6 Not tainted 5.10.60 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 print_usage_bug kernel/locking/lockdep.c:3857 [inline] valid_state kernel/locking/lockdep.c:3869 [inline] mark_lock_irq kernel/locking/lockdep.c:4072 [inline] mark_lock.cold+0x19/0x159 kernel/locking/lockdep.c:4529 mark_usage kernel/locking/lockdep.c:4442 [inline] __lock_acquire+0x8cf/0x5b60 kernel/locking/lockdep.c:4904 lock_acquire kernel/locking/lockdep.c:5560 [inline] lock_acquire+0x197/0x490 kernel/locking/lockdep.c:5525 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x27/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] sco_conn_del+0x128/0x270 net/bluetooth/sco.c:176 sco_disconn_cfm net/bluetooth/sco.c:1189 [inline] sco_disconn_cfm+0x62/0x80 net/bluetooth/sco.c:1182 hci_disconn_cfm include/net/bluetooth/hci_core.h:1443 [inline] hci_conn_hash_flush+0x119/0x230 net/bluetooth/hci_conn.c:1557 hci_dev_do_close+0x717/0x1240 net/bluetooth/hci_core.c:1777 hci_rfkill_set_block+0x154/0x190 net/bluetooth/hci_core.c:2216 rfkill_set_block+0x20f/0x560 net/rfkill/core.c:341 rfkill_fop_write+0x252/0x4b0 net/rfkill/core.c:1240 vfs_write+0x295/0xa50 fs/read_write.c:603 ksys_write+0x1ee/0x250 fs/read_write.c:658 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x466609 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:00007f2fc8697188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 0000000000466609 RDX: 0000000000000008 RSI: 0000000020000200 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffeff4897bf R14: 00007f2fc8697300 R15: 0000000000022000