XFS (loop3): Unmounting Filesystem ============================================ WARNING: possible recursive locking detected 4.14.305-syzkaller #0 Not tainted -------------------------------------------- syz-executor.0/12548 is trying to acquire lock: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 fs/hfsplus/extents.c:260 but task is already holding lock: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_extend+0x188/0xef0 fs/hfsplus/extents.c:452 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&HFSPLUS_I(inode)->extents_lock); lock(&HFSPLUS_I(inode)->extents_lock); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz-executor.0/12548: #0: (&type->s_umount_key#50/1){+.+.}, at: [] alloc_super fs/super.c:251 [inline] #0: (&type->s_umount_key#50/1){+.+.}, at: [] sget_userns+0x556/0xc10 fs/super.c:516 #1: (&sbi->vh_mutex){+.+.}, at: [] hfsplus_fill_super+0x1314/0x1850 fs/hfsplus/super.c:553 #2: (&tree->tree_lock){+.+.}, at: [] hfsplus_find_init+0x1a8/0x220 fs/hfsplus/bfind.c:30 #3: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_extend+0x188/0xef0 fs/hfsplus/extents.c:452 #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_allocate+0xd2/0x910 fs/hfsplus/bitmap.c:35 stack backtrace: CPU: 1 PID: 12548 Comm: syz-executor.0 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_deadlock_bug kernel/locking/lockdep.c:1800 [inline] check_deadlock kernel/locking/lockdep.c:1847 [inline] validate_chain kernel/locking/lockdep.c:2448 [inline] __lock_acquire.cold+0x180/0x97c kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 hfsplus_get_block+0x1f9/0x820 fs/hfsplus/extents.c:260 block_read_full_page+0x25e/0x8d0 fs/buffer.c:2316 do_read_cache_page+0x38e/0xc10 mm/filemap.c:2713 read_mapping_page include/linux/pagemap.h:398 [inline] hfsplus_block_allocate+0x189/0x910 fs/hfsplus/bitmap.c:37 hfsplus_file_extend+0x421/0xef0 fs/hfsplus/extents.c:463 hfsplus_bmap_reserve+0x26e/0x410 fs/hfsplus/btree.c:357 hfsplus_create_cat+0x1af/0x10d0 fs/hfsplus/catalog.c:272 hfsplus_fill_super+0x1386/0x1850 fs/hfsplus/super.c:560 mount_bdev+0x2b3/0x360 fs/super.c:1134 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 RIP: 0033:0x7fea402e662a RSP: 002b:00007fea3e856f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000061b RCX: 00007fea402e662a RDX: 0000000020000600 RSI: 00000000200001c0 RDI: 00007fea3e856fe0 RBP: 00007fea3e857020 R08: 00007fea3e857020 R09: 0000000001a00010 R10: 0000000001a00010 R11: 0000000000000202 R12: 0000000020000600 R13: 00000000200001c0 R14: 00007fea3e856fe0 R15: 0000000020000140 XFS (loop1): Mounting V4 Filesystem XFS (loop1): Ending clean mount XFS (loop1): Unmounting Filesystem EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue print_req_error: I/O error, dev loop0, sector 0 base_sock_release(ffff88808d7929c0) sk=ffff8880a078e880 XFS (loop3): Mounting V4 Filesystem print_req_error: I/O error, dev loop1, sector 0 XFS (loop3): Ending clean mount XFS (loop3): Unmounting Filesystem EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff8880762bd0c0) sk=ffff8880a1fe3200 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88807603e040) sk=ffff88809ca05580 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88807603f9c0) sk=ffff88809ce2a380 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff888076024ac0) sk=ffff888076b16d80 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88807604c940) sk=ffff88809cd96340 base_sock_release(ffff88807162f680) sk=ffff8880a4d62bc0 base_sock_release(ffff888071627900) sk=ffff88809c11c280 EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff8880640651c0) sk=ffff8880ab4642c0 base_sock_release(ffff888076198980) sk=ffff88809aee9200 base_sock_release(ffff8880640391c0) sk=ffff88809d7509c0 print_req_error: I/O error, dev loop0, sector 0 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88807146a900) sk=ffff888075dd2200 base_sock_release(ffff888097b14940) sk=ffff888097dea5c0 base_sock_release(ffff8880762dc000) sk=ffff8880b57740c0 print_req_error: I/O error, dev loop2, sector 0 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff8880760ad200) sk=ffff88806e052080 base_sock_release(ffff88807611f1c0) sk=ffff88809937b380 base_sock_release(ffff8880762e4540) sk=ffff888094108440 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88808d76aac0) sk=ffff888096576dc0 base_sock_release(ffff888076154140) sk=ffff8880abda35c0 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88807603ca80) sk=ffff88809692b700 EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff888071523640) sk=ffff8880afa5b6c0 base_sock_release(ffff88807151e200) sk=ffff888091b9f740 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff8880760acac0) sk=ffff88807e564100 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff888076168980) sk=ffff8880a96f4bc0 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff8880760e5180) sk=ffff8880a289cc40 BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents base_sock_release(ffff888097bf6200) sk=ffff888094c4aa40 EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88808d77ea40) sk=ffff88806dad2500 EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88806419e040) sk=ffff888074672900 base_sock_release(ffff88806419e4c0) sk=ffff8880737ce8c0 base_sock_release(ffff888064193480) sk=ffff8880aad2e880 BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue base_sock_release(ffff88807622e480) sk=ffff8880afb4c9c0 BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1 BTRFS info (device loop4): using free space tree BTRFS info (device loop4): has skinny extents UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) attempt to access beyond end of device loop0: rw=2049, want=2086, limit=2048 Buffer I/O error on dev loop0, logical block 2085, lost async page write attempt to access beyond end of device loop0: rw=2049, want=2087, limit=2048 Buffer I/O error on dev loop0, logical block 2086, lost async page write attempt to access beyond end of device loop0: rw=2049, want=2088, limit=2048 Buffer I/O error on dev loop0, logical block 2087, lost async page write attempt to access beyond end of device loop0: rw=2049, want=2089, limit=2048 Buffer I/O error on dev loop0, logical block 2088, lost async page write attempt to access beyond end of device loop0: rw=2049, want=2090, limit=2048 Buffer I/O error on dev loop0, logical block 2089, lost async page write UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) print_req_error: I/O error, dev loop3, sector 0 print_req_error: I/O error, dev loop2, sector 0 attempt to access beyond end of device loop0: rw=1, want=2085, limit=2048 attempt to access beyond end of device UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) loop0: rw=1, want=4666, limit=2048 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000)