REISERFS (device loop5): checking transaction log (loop5) netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. REISERFS (device loop5): Using r5 hash to sort names ====================================================== IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready WARNING: possible circular locking dependency detected 4.14.305-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.5/11143 is trying to acquire lock: (sb_writers#13){.+.+}, at: [] sb_start_write include/linux/fs.h:1551 [inline] (sb_writers#13){.+.+}, at: [] mnt_want_write_file+0xfd/0x3b0 fs/namespace.c:497 but task is already holding lock: IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready (&sbi->lock){+.+.}, at: [] reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&sbi->lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 reiserfs_lookup+0x130/0x400 fs/reiserfs/namei.c:363 lookup_real fs/namei.c:1555 [inline] __lookup_hash fs/namei.c:1575 [inline] __lookup_hash+0x1bb/0x270 fs/namei.c:1563 lookup_one_len+0x279/0x3a0 fs/namei.c:2539 reiserfs_lookup_privroot+0x92/0x270 fs/reiserfs/xattr.c:970 (unnamed net_device) (uninitialized): invalid ARP target 0.0.0.0 specified for addition reiserfs_fill_super+0x1d12/0x2990 fs/reiserfs/super.c:2181 mount_bdev+0x2b3/0x360 fs/super.c:1134 (unnamed net_device) (uninitialized): option arp_ip_target: invalid value (0) mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 (unnamed net_device) (uninitialized): invalid ARP target 0.0.0.0 specified for addition -> #1 (&type->i_mutex_dir_key#8){++++}: down_write+0x34/0x90 kernel/locking/rwsem.c:54 inode_lock include/linux/fs.h:719 [inline] do_last fs/namei.c:3331 [inline] path_openat+0xde2/0x2970 fs/namei.c:3571 (unnamed net_device) (uninitialized): option arp_ip_target: invalid value (0) do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 -> #0 (sb_writers#13 device bridge_slave_1 left promiscuous mode ){.+.+} bridge1: port 1(bridge_slave_1) entered disabled state : lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x64/0x260 fs/super.c:1342 sb_start_write include/linux/fs.h:1551 [inline] mnt_want_write_file+0xfd/0x3b0 fs/namespace.c:497 reiserfs_ioctl+0x18e/0x8b0 fs/reiserfs/ioctl.c:110 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 other info that might help us debug this: Chain exists of: sb_writers#13 --> &type->i_mutex_dir_key#8 --> &sbi->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&sbi->lock); lock(&type->i_mutex_dir_key#8); lock(&sbi->lock); lock(sb_writers#13); *** DEADLOCK *** 1 lock held by syz-executor.5/11143: #0: (&sbi->lock){+.+.}, at: [] reiserfs_write_lock+0x75/0xf0 fs/reiserfs/lock.c:27 stack backtrace: CPU: 1 PID: 11143 Comm: syz-executor.5 Not tainted 4.14.305-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] __sb_start_write+0x64/0x260 fs/super.c:1342 sb_start_write include/linux/fs.h:1551 [inline] mnt_want_write_file+0xfd/0x3b0 fs/namespace.c:497 reiserfs_ioctl+0x18e/0x8b0 fs/reiserfs/ioctl.c:110 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:0x7fdef7f300f9 RSP: 002b:00007fdef64a2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fdef804ff80 RCX: 00007fdef7f300f9 RDX: 0000000000000000 RSI: 0000000040087602 RDI: 0000000000000003 RBP: 00007fdef7f8bae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdedff533f R14: 00007fdef64a2300 R15: 0000000000022000 bridge2: port 1(bridge_slave_1) entered blocking state bridge2: port 1(bridge_slave_1) entered disabled state device bridge_slave_1 entered promiscuous mode bridge2: port 1(bridge_slave_1) entered blocking state bridge2: port 1(bridge_slave_1) entered forwarding state bond0: Enslaving bridge2 as an active interface with an up link netlink: 12 bytes leftover after parsing attributes in process `syz-executor.2'. REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal device bridge_slave_1 left promiscuous mode bridge3: port 1(bridge_slave_1) entered disabled state REISERFS (device loop5): using ordered data mode bridge4: port 1(bridge_slave_1) entered blocking state bridge4: port 1(bridge_slave_1) entered disabled state reiserfs: using flush barriers device bridge_slave_1 entered promiscuous mode REISERFS (device loop5): journal params: device loop5, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready REISERFS (device loop5): checking transaction log (loop5) REISERFS (device loop5): Using r5 hash to sort names IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready bridge4: port 1(bridge_slave_1) entered blocking state bridge4: port 1(bridge_slave_1) entered forwarding state bond0: Enslaving bridge4 as an active interface with an up link netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. device bridge_slave_1 left promiscuous mode bridge2: port 1(bridge_slave_1) entered disabled state bridge3: port 1(bridge_slave_1) entered blocking state bridge3: port 1(bridge_slave_1) entered disabled state device bridge_slave_1 entered promiscuous mode REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers bridge3: port 1(bridge_slave_1) entered blocking state REISERFS (device loop5): journal params: device loop5, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 bridge3: port 1(bridge_slave_1) entered forwarding state REISERFS (device loop5): checking transaction log (loop5) REISERFS (device loop5): Using r5 hash to sort names bond0: Enslaving bridge3 as an active interface with an up link IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready REISERFS (device loop5): found reiserfs format "3.5" with non-standard journal IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready REISERFS (device loop5): using ordered data mode reiserfs: using flush barriers REISERFS (device loop5): journal params: device loop5, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected REISERFS (device loop5): checking transaction log (loop5) REISERFS (device loop5): Using r5 hash to sort names hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected vhci_hcd vhci_hcd.0: pdev(5) rhport(0) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(3) speed_str(high-speed) vhci_hcd vhci_hcd.0: Device attached vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket vhci_hcd: disconnect device hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected FAT-fs (loop4): error, corrupted directory (invalid entries) FAT-fs (loop4): Filesystem has been set read-only vhci_hcd vhci_hcd.0: pdev(5) rhport(0) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(3) speed_str(high-speed) FAT-fs (loop4): error, corrupted directory (invalid entries) FAT-fs (loop4): Filesystem has been set read-only vhci_hcd vhci_hcd.0: Device attached vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket vcan0: Cannot use loopback or non-ethernet device as HSR slave. vhci_hcd: disconnect device F2FS-fs (loop3): Found nat_bits in checkpoint F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 kauditd_printk_skb: 3 callbacks suppressed audit: type=1804 audit(1676552958.757:63): pid=11383 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir2692443713/syzkaller.iZpU9e/54/file0/bus" dev="loop3" ino=10 res=1 audit: type=1804 audit(1676552958.787:64): pid=11383 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir2692443713/syzkaller.iZpU9e/54/file0/bus" dev="loop3" ino=10 res=1 attempt to access beyond end of device loop3: rw=2049, want=40432, limit=40427 FAT-fs (loop4): error, corrupted directory (invalid entries) FAT-fs (loop4): Filesystem has been set read-only vhci_hcd vhci_hcd.0: pdev(5) rhport(0) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(3) speed_str(high-speed) vhci_hcd vhci_hcd.0: Device attached vhci_hcd: connection closed vhci_hcd: stop threads vhci_hcd: release socket vcan0: Cannot use loopback or non-ethernet device as HSR slave. vhci_hcd: disconnect device FAT-fs (loop4): error, corrupted directory (invalid entries) FAT-fs (loop4): Filesystem has been set read-only vcan0: Cannot use loopback or non-ethernet device as HSR slave. F2FS-fs (loop2): Found nat_bits in checkpoint F2FS-fs (loop3): Found nat_bits in checkpoint F2FS-fs (loop2): Mounted with checkpoint version = 48b305e5 audit: type=1804 audit(1676552959.637:65): pid=11464 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir1354728312/syzkaller.JjeoRb/55/file0/bus" dev="loop2" ino=10 res=1 F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 audit: type=1804 audit(1676552959.667:66): pid=11464 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir1354728312/syzkaller.JjeoRb/55/file0/bus" dev="loop2" ino=10 res=1 audit: type=1804 audit(1676552959.707:67): pid=11453 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir2692443713/syzkaller.iZpU9e/55/file0/bus" dev="loop3" ino=10 res=1 audit: type=1804 audit(1676552959.717:68): pid=11453 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir2692443713/syzkaller.iZpU9e/55/file0/bus" dev="loop3" ino=10 res=1 attempt to access beyond end of device attempt to access beyond end of device vhci_hcd vhci_hcd.0: pdev(5) rhport(0) sockfd(3) vhci_hcd vhci_hcd.0: devid(0) speed(3) speed_str(high-speed) loop2: rw=2049, want=40432, limit=40427 loop3: rw=2049, want=40432, limit=40427 vhci_hcd vhci_hcd.0: Device attached vhci_hcd: connection closed vhci_hcd: stop threads vcan0: Cannot use loopback or non-ethernet device as HSR slave. vhci_hcd: release socket vhci_hcd: disconnect device F2FS-fs (loop3): Found nat_bits in checkpoint F2FS-fs (loop2): Found nat_bits in checkpoint F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 audit: type=1804 audit(1676552960.577:69): pid=11560 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir2692443713/syzkaller.iZpU9e/56/file0/bus" dev="loop3" ino=10 res=1 input: syz1 as /devices/virtual/input/input18 F2FS-fs (loop2): Mounted with checkpoint version = 48b305e5 audit: type=1804 audit(1676552960.617:70): pid=11560 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.3" name="/root/syzkaller-testdir2692443713/syzkaller.iZpU9e/56/file0/bus" dev="loop3" ino=10 res=1 audit: type=1804 audit(1676552960.727:71): pid=11558 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir1354728312/syzkaller.JjeoRb/56/file0/bus" dev="loop2" ino=10 res=1 attempt to access beyond end of device loop3: rw=2049, want=40432, limit=40427 audit: type=1804 audit(1676552960.727:72): pid=11558 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="ToMToU" comm="syz-executor.2" name="/root/syzkaller-testdir1354728312/syzkaller.JjeoRb/56/file0/bus" dev="loop2" ino=10 res=1 attempt to access beyond end of device loop2: rw=2049, want=40432, limit=40427 input: syz1 as /devices/virtual/input/input19 input: syz1 as /devices/virtual/input/input20 attempt to access beyond end of device loop3: rw=2049, want=40432, limit=40427 input: syz1 as /devices/virtual/input/input21 input: syz1 as /devices/virtual/input/input22 input: syz1 as /devices/virtual/input/input23 attempt to access beyond end of device loop2: rw=2049, want=40432, limit=40427 input: syz1 as /devices/virtual/input/input24 input: syz1 as /devices/virtual/input/input25 input: syz1 as /devices/virtual/input/input26 input: syz1 as /devices/virtual/input/input27 input: syz1 as /devices/virtual/input/input28 input: syz1 as /devices/virtual/input/input29 encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified input: syz1 as /devices/virtual/input/input30 encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified encrypted_key: insufficient parameters specified input: syz0 as /devices/virtual/input/input31 input: syz0 as /devices/virtual/input/input32 input: syz0 as /devices/virtual/input/input33 input: syz0 as /devices/virtual/input/input34