NILFS (loop1): couldn't find nilfs on the device ================================ WARNING: inconsistent lock state 4.19.198-syzkaller #0 Not tainted -------------------------------- inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. syz-executor.0/5044 [HC0[0]:SC0[0]:HE1:SE1] takes: 0000000001734589 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: spin_lock include/linux/spinlock.h:329 [inline] 0000000001734589 (slock-AF_BLUETOOTH-BTPROTO_SCO){+.?.}, at: sco_conn_del+0xe2/0x240 net/bluetooth/sco.c:175 {IN-SOFTIRQ-W} state was registered at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] sco_sock_timeout+0x31/0x210 net/bluetooth/sco.c:82 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x3d/0x80 kernel/locking/rwsem.c:26 ext4_filemap_fault+0x7c/0xb0 fs/ext4/inode.c:6378 __do_fault+0x10b/0x4b0 mm/memory.c:3403 do_shared_fault mm/memory.c:3870 [inline] do_fault mm/memory.c:3948 [inline] handle_pte_fault mm/memory.c:4175 [inline] __handle_mm_fault+0x25b0/0x41c0 mm/memory.c:4299 handle_mm_fault+0x436/0xb10 mm/memory.c:4336 __do_page_fault+0x68e/0xd60 arch/x86/mm/fault.c:1412 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205 irq event stamp: 3167 hardirqs last enabled at (3167): [] kmem_cache_free+0x109/0x260 mm/slab.c:3766 hardirqs last disabled at (3166): [] kmem_cache_free+0x56/0x260 mm/slab.c:3761 softirqs last enabled at (3012): [] spin_unlock_bh include/linux/spinlock.h:374 [inline] softirqs last enabled at (3012): [] peernet2id+0x8f/0xc0 net/core/net_namespace.c:266 softirqs last disabled at (3010): [] spin_lock_bh include/linux/spinlock.h:334 [inline] softirqs last disabled at (3010): [] peernet2id+0x6f/0xc0 net/core/net_namespace.c:264 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.0/5044: #0: 00000000ffcf8e4b (rfkill_global_mutex){+.+.}, at: rfkill_fop_write+0xfe/0x4a0 net/rfkill/core.c:1241 #1: 0000000051909e00 (&hdev->req_lock){+.+.}, at: hci_dev_do_close+0xab/0xf20 net/bluetooth/hci_core.c:1615 #2: 00000000c31452df (&hdev->lock){+.+.}, at: hci_dev_do_close+0x20f/0xf20 net/bluetooth/hci_core.c:1652 #3: 00000000a74ea960 (hci_cb_list_lock){+.+.}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1259 [inline] #3: 00000000a74ea960 (hci_cb_list_lock){+.+.}, at: hci_conn_hash_flush+0xda/0x260 net/bluetooth/hci_conn.c:1512 stack backtrace: CPU: 1 PID: 5044 Comm: syz-executor.0 Not tainted 4.19.198-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2545 valid_state kernel/locking/lockdep.c:2558 [inline] mark_lock_irq kernel/locking/lockdep.c:2752 [inline] mark_lock+0xc70/0x1160 kernel/locking/lockdep.c:3132 mark_irqflags kernel/locking/lockdep.c:3028 [inline] __lock_acquire+0x6a8/0x3ff0 kernel/locking/lockdep.c:3373 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] sco_conn_del+0xe2/0x240 net/bluetooth/sco.c:175 sco_disconn_cfm+0x74/0xb0 net/bluetooth/sco.c:1133 hci_disconn_cfm include/net/bluetooth/hci_core.h:1262 [inline] hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1512 hci_dev_do_close+0x588/0xf20 net/bluetooth/hci_core.c:1665 hci_rfkill_set_block+0xe7/0x160 net/bluetooth/hci_core.c:2107 rfkill_set_block+0x1f9/0x540 net/rfkill/core.c:353 rfkill_fop_write+0x250/0x4a0 net/rfkill/core.c:1249 __vfs_write+0xf7/0x770 fs/read_write.c:485 vfs_write+0x1f3/0x540 fs/read_write.c:549 ksys_write+0x12b/0x2a0 fs/read_write.c:599 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665e9 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:00007f450b084188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffd1c38debf R14: 00007f450b084300 R15: 0000000000022000 ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device print_req_error: I/O error, dev loop44, sector 8 NILFS (loop1): couldn't find nilfs on the device print_req_error: I/O error, dev loop44, sector 8 NILFS (loop1): couldn't find nilfs on the device print_req_error: I/O error, dev loop44, sector 8 ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device print_req_error: I/O error, dev loop44, sector 8 kauditd_printk_skb: 22 callbacks suppressed audit: type=1804 audit(1627285046.038:202): pid=5183 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1208/bus" dev="sda1" ino=14324 res=1 NILFS (loop1): couldn't find nilfs on the device audit: type=1804 audit(1627285046.158:203): pid=5189 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1208/bus" dev="sda1" ino=14324 res=1 audit: type=1804 audit(1627285046.158:204): pid=5261 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1208/bus" dev="sda1" ino=14324 res=1 audit: type=1804 audit(1627285046.268:205): pid=5270 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1209/bus" dev="sda1" ino=14387 res=1 ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device audit: type=1804 audit(1627285046.478:206): pid=5288 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1209/bus" dev="sda1" ino=14387 res=1 NILFS (loop1): couldn't find nilfs on the device ntfs: (device loop3): read_ntfs_boot_sector(): Primary boot sector is invalid. ntfs: (device loop3): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover. ntfs: (device loop3): ntfs_fill_super(): Not an NTFS volume. NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device audit: type=1804 audit(1627285047.778:207): pid=5355 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1210/bus" dev="sda1" ino=13970 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1627285047.978:208): pid=5362 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1210/bus" dev="sda1" ino=13970 res=1 NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device kauditd_printk_skb: 2 callbacks suppressed audit: type=1804 audit(1627285051.208:211): pid=5538 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1212/bus" dev="sda1" ino=13955 res=1 NILFS (loop1): couldn't find nilfs on the device audit: type=1804 audit(1627285051.438:212): pid=5547 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1212/bus" dev="sda1" ino=13955 res=1 ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device NILFS (loop1): couldn't find nilfs on the device audit: type=1804 audit(1627285052.608:213): pid=5611 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1213/bus" dev="sda1" ino=14906 res=1 ntfs: volume version 3.1. NILFS (loop1): couldn't find nilfs on the device audit: type=1804 audit(1627285052.928:214): pid=5635 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.0" name="/root/syzkaller-testdir228826312/syzkaller.okxurJ/1213/bus" dev="sda1" ino=14906 res=1 NILFS (loop1): couldn't find nilfs on the device