md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! ================================ WARNING: inconsistent lock state 4.14.307-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.5/10812 [HC0[0]:SC1[1]:HE1:SE0] takes: (&(&local->client_conns_lock)->rlock){+.?.}, at: [] spin_lock include/linux/spinlock.h:317 [inline] (&(&local->client_conns_lock)->rlock){+.?.}, at: [] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:905 [inline] (&(&local->client_conns_lock)->rlock){+.?.}, at: [] rxrpc_put_client_conn+0x661/0xac0 net/rxrpc/conn_client.c:957 {SOFTIRQ-ON-W} state was registered at: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152 spin_lock include/linux/spinlock.h:317 [inline] rxrpc_get_client_conn net/rxrpc/conn_client.c:306 [inline] rxrpc_connect_call+0x2bb/0x3e10 net/rxrpc/conn_client.c:692 rxrpc_new_client_call+0x8f4/0x1a10 net/rxrpc/call_object.c:276 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:531 [inline] rxrpc_do_sendmsg+0x8dc/0xfb0 net/rxrpc/sendmsg.c:583 rxrpc_sendmsg+0x3cf/0x5f0 net/rxrpc/af_rxrpc.c:543 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 irq event stamp: 1154 hardirqs last enabled at (1154): [] restore_regs_and_return_to_kernel+0x0/0x2f hardirqs last disabled at (1153): [] apic_timer_interrupt+0x8e/0xa0 arch/x86/entry/entry_64.S:796 softirqs last enabled at (1078): [] __do_softirq+0x68b/0x9ff kernel/softirq.c:314 softirqs last disabled at (1099): [] invoke_softirq kernel/softirq.c:368 [inline] softirqs last disabled at (1099): [] irq_exit+0x193/0x240 kernel/softirq.c:409 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&(&local->client_conns_lock)->rlock); lock(&(&local->client_conns_lock)->rlock); *** DEADLOCK *** 3 locks held by syz-executor.5/10812: #0: (&mddev->reconfig_mutex){+.+.}, at: [] mddev_lock drivers/md/md.h:497 [inline] #0: (&mddev->reconfig_mutex){+.+.}, at: [] md_ioctl+0xe07/0x4c00 drivers/md/md.c:7222 #1: (console_lock){+.+.}, at: [] vprintk_func+0x58/0x160 kernel/printk/printk_safe.c:409 #2: (rcu_callback){....}, at: [] __rcu_reclaim kernel/rcu/rcu.h:185 [inline] #2: (rcu_callback){....}, at: [] rcu_do_batch kernel/rcu/tree.c:2699 [inline] #2: (rcu_callback){....}, at: [] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] #2: (rcu_callback){....}, at: [] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] #2: (rcu_callback){....}, at: [] rcu_process_callbacks+0x84e/0x1180 kernel/rcu/tree.c:2946 stack backtrace: CPU: 0 PID: 10812 Comm: syz-executor.5 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_usage_bug.cold+0x42e/0x570 kernel/locking/lockdep.c:2589 valid_state kernel/locking/lockdep.c:2602 [inline] mark_lock_irq kernel/locking/lockdep.c:2796 [inline] mark_lock+0xb4d/0x1050 kernel/locking/lockdep.c:3194 mark_irqflags kernel/locking/lockdep.c:3072 [inline] __lock_acquire+0xc81/0x3f20 kernel/locking/lockdep.c:3448 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152 spin_lock include/linux/spinlock.h:317 [inline] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:905 [inline] rxrpc_put_client_conn+0x661/0xac0 net/rxrpc/conn_client.c:957 rxrpc_put_connection net/rxrpc/ar-internal.h:862 [inline] rxrpc_rcu_destroy_call+0x83/0x190 net/rxrpc/call_object.c:653 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x193/0x240 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:796 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] RIP: 0010:console_unlock+0xbeb/0xf20 kernel/printk/printk.c:2417 RSP: 0018:ffff888061fd7700 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff10 RAX: 0000000000040000 RBX: 0000000000000200 RCX: ffffc90005fb4000 RDX: 0000000000012a80 RSI: ffffffff81441324 RDI: 0000000000000202 RBP: 0000000000000000 R08: ffffffff8b9c3f58 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff83d28810 R13: ffffffff8961f2b0 R14: dffffc0000000000 R15: 0000000000000053 vprintk_emit+0x224/0x620 kernel/printk/printk.c:1925 vprintk_func+0x58/0x160 kernel/printk/printk_safe.c:409 printk+0x9e/0xbc kernel/printk/printk.c:1998 md_import_device+0x794/0x7f0 drivers/md/md.c:3521 add_new_disk+0x4ad/0x15b0 drivers/md/md.c:6351 md_ioctl+0x38fc/0x4c00 drivers/md/md.c:7377 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x540/0x1830 block/ioctl.c:594 block_ioctl+0xd9/0x120 fs/block_dev.c:1893 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f18d6d440f9 RSP: 002b:00007f18d52b6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f18d6e63f80 RCX: 00007f18d6d440f9 RDX: 0000000020000140 RSI: 0000000040140921 RDI: 0000000000000005 RBP: 00007f18d6d9fae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2a4777cf R14: 00007f18d52b6300 R15: 0000000000022000 md: md_import_device returned -22 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! md: md_import_device returned -22 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! md: md_import_device returned -22 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! md: md_import_device returned -22 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! REISERFS warning (device loop0): sh-2011 read_super_block: can't find a reiserfs filesystem on (dev loop0, block 16, size 4096) md: md_import_device returned -22 REISERFS warning (device loop0): sh-2021 reiserfs_fill_super: can not find reiserfs on loop0 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! md: md_import_device returned -22 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! md: md_import_device returned -22 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! md: md_import_device returned -22 md: invalid raid superblock magic on mtdblock0 md: mtdblock0 does not have a valid v0.0 superblock, not importing! md: md_import_device returned -22 REISERFS warning (device loop0): sh-2011 read_super_block: can't find a reiserfs filesystem on (dev loop0, block 16, size 4096) REISERFS warning (device loop0): sh-2021 reiserfs_fill_super: can not find reiserfs on loop0 audit: type=1800 audit(1677713676.296:36): pid=10999 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=14069 res=0 audit: type=1800 audit(1677713676.316:37): pid=11003 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=14069 res=0 REISERFS warning (device loop0): sh-2011 read_super_block: can't find a reiserfs filesystem on (dev loop0, block 16, size 4096) audit: type=1804 audit(1677713676.336:38): pid=10968 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir4072926467/syzkaller.NYFPKc/53/file0/bus" dev="loop4" ino=7 res=1 REISERFS warning (device loop0): sh-2021 reiserfs_fill_super: can not find reiserfs on loop0 audit: type=1804 audit(1677713676.346:39): pid=10968 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.4" name="/root/syzkaller-testdir4072926467/syzkaller.NYFPKc/53/file0/bus" dev="loop4" ino=7 res=1 audit: type=1800 audit(1677713676.366:40): pid=10999 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="bus" dev="sda1" ino=14069 res=0 audit: type=1804 audit(1677713676.466:41): pid=11012 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.4" name="/root/syzkaller-testdir4072926467/syzkaller.NYFPKc/53/file0/bus" dev="loop4" ino=7 res=1 REISERFS warning (device loop0): sh-2011 read_super_block: can't find a reiserfs filesystem on (dev loop0, block 16, size 4096) REISERFS warning (device loop0): sh-2021 reiserfs_fill_super: can not find reiserfs on loop0 kauditd_printk_skb: 35 callbacks suppressed audit: type=1804 audit(1677713678.886:77): pid=11136 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir2889433767/syzkaller.aZd3KE/56/file0/bus" dev="loop1" ino=7 res=1 audit: type=1804 audit(1677713678.896:78): pid=11137 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir656869524/syzkaller.itKzyw/73/file0/bus" dev="loop0" ino=7 res=1 audit: type=1804 audit(1677713678.906:79): pid=11137 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir656869524/syzkaller.itKzyw/73/file0/bus" dev="loop0" ino=7 res=1 audit: type=1804 audit(1677713678.906:80): pid=11138 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir956799819/syzkaller.Crj0jN/53/file0/bus" dev="loop2" ino=7 res=1 audit: type=1804 audit(1677713678.916:81): pid=11138 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir956799819/syzkaller.Crj0jN/53/file0/bus" dev="loop2" ino=7 res=1 audit: type=1804 audit(1677713678.926:82): pid=11136 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir2889433767/syzkaller.aZd3KE/56/file0/bus" dev="loop1" ino=7 res=1 EXT4-fs (loop3): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value audit: type=1804 audit(1677713678.976:83): pid=11140 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir10300668/syzkaller.bVXlyD/46/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677713678.976:84): pid=11140 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.5" name="/root/syzkaller-testdir10300668/syzkaller.bVXlyD/46/file0/bus" dev="loop5" ino=7 res=1 audit: type=1804 audit(1677713678.996:85): pid=11166 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir956799819/syzkaller.Crj0jN/53/file0/bus" dev="loop2" ino=7 res=1 EXT4-fs (loop3): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value audit: type=1804 audit(1677713679.006:86): pid=11167 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.0" name="/root/syzkaller-testdir656869524/syzkaller.itKzyw/73/file0/bus" dev="loop0" ino=7 res=1 EXT4-fs (loop0): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value EXT4-fs (loop3): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value EXT4-fs (loop2): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value tmpfs: Bad value 'bind=relative:9-3' for mount option 'mpol' print_req_error: I/O error, dev loop3, sector 0 Buffer I/O error on dev loop3, logical block 0, async page read EXT4-fs (loop0): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value print_req_error: I/O error, dev loop3, sector 4 tmpfs: Bad value 'bind=relative:9-3' for mount option 'mpol' Buffer I/O error on dev loop3, logical block 2, async page read print_req_error: I/O error, dev loop3, sector 6 Buffer I/O error on dev loop3, logical block 3, async page read tmpfs: Bad value 'bind=relative:9-3' for mount option 'mpol' EXT4-fs (loop4): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value tmpfs: Bad value 'bind=relative:9-3' for mount option 'mpol' EXT4-fs (loop3): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value EXT4-fs (loop2): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value print_req_error: I/O error, dev loop2, sector 0 Buffer I/O error on dev loop2, logical block 0, async page read print_req_error: I/O error, dev loop2, sector 4 Buffer I/O error on dev loop2, logical block 2, async page read print_req_error: I/O error, dev loop2, sector 6 Buffer I/O error on dev loop2, logical block 3, async page read EXT4-fs (loop0): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value EXT4-fs (loop4): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value EXT4-fs (loop2): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value ISO 9660 Extensions: Microsoft Joliet Level 0 rock: corrupted directory entry. extent=32, offset=2044, size=237 EXT4-fs (loop4): Unrecognized mount option "ÿ0xffffffffffffffff01777777777777777777777ÿÿÿÿÿÿÿÿ01777777777777777777777ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" or missing value ISO 9660 Extensions: Microsoft Joliet Level 0 rock: corrupted directory entry. extent=32, offset=2044, size=237 ISO 9660 Extensions: Microsoft Joliet Level 0 rock: corrupted directory entry. extent=32, offset=2044, size=237 ISO 9660 Extensions: Microsoft Joliet Level 0 rock: corrupted directory entry. extent=32, offset=2044, size=237 ISO 9660 Extensions: Microsoft Joliet Level 0 ISO 9660 Extensions: Microsoft Joliet Level 0 rock: corrupted directory entry. extent=32, offset=2044, size=237 rock: corrupted directory entry. extent=32, offset=2044, size=237