============================================ WARNING: possible recursive locking detected 4.19.211-syzkaller #0 Not tainted -------------------------------------------- syz-executor.2/22666 is trying to acquire lock: 0000000063142345 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 fs/hfsplus/extents.c:260 but task is already holding lock: 00000000a3c9673a (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_extend+0x1bb/0xf40 fs/hfsplus/extents.c:457 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.2/22666: #0: 00000000075d3f41 (&type->s_umount_key#59/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 00000000075d3f41 (&type->s_umount_key#59/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519 #1: 000000006b16af07 (&sbi->vh_mutex){+.+.}, at: hfsplus_fill_super+0x1421/0x19e0 fs/hfsplus/super.c:553 #2: 00000000f71390dd (&tree->tree_lock){+.+.}, at: hfsplus_find_init+0x1b7/0x220 fs/hfsplus/bfind.c:30 #3: 00000000a3c9673a (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_extend+0x1bb/0xf40 fs/hfsplus/extents.c:457 #4: 000000004fffd2c9 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_allocate+0xe0/0xa60 fs/hfsplus/bitmap.c:35 stack backtrace: CPU: 1 PID: 22666 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:1764 [inline] check_deadlock kernel/locking/lockdep.c:1808 [inline] validate_chain kernel/locking/lockdep.c:2404 [inline] __lock_acquire.cold+0x121/0x57e kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __mutex_lock_common kernel/locking/mutex.c:937 [inline] __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078 hfsplus_get_block+0x292/0x960 fs/hfsplus/extents.c:260 block_read_full_page+0x288/0xd10 fs/buffer.c:2259 do_read_cache_page+0x533/0x1170 mm/filemap.c:2828 read_mapping_page include/linux/pagemap.h:402 [inline] hfsplus_block_allocate+0x197/0xa60 fs/hfsplus/bitmap.c:37 hfsplus_file_extend+0x436/0xf40 fs/hfsplus/extents.c:468 hfsplus_bmap_reserve+0x298/0x440 fs/hfsplus/btree.c:357 hfsplus_create_cat+0x1e3/0x1210 fs/hfsplus/catalog.c:272 hfsplus_fill_super+0x14a8/0x19e0 fs/hfsplus/super.c:560 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ffa7e3f162a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffa7c961f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000671 RCX: 00007ffa7e3f162a RDX: 00000000200000c0 RSI: 00000000200008c0 RDI: 00007ffa7c961fe0 RBP: 00007ffa7c962020 R08: 00007ffa7c962020 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000202 R12: 00000000200000c0 R13: 00000000200008c0 R14: 00007ffa7c961fe0 R15: 0000000020000100 ntfs: volume version 3.1. kauditd_printk_skb: 13 callbacks suppressed audit: type=1804 audit(1676734989.088:755): pid=22714 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/301/bus" dev="sda1" ino=13881 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734989.188:756): pid=22740 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/301/bus" dev="sda1" ino=13881 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734989.848:757): pid=22785 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/302/bus" dev="sda1" ino=14641 res=1 audit: type=1804 audit(1676734989.918:758): pid=22822 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/302/bus" dev="sda1" ino=14641 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734990.648:759): pid=22862 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/303/bus" dev="sda1" ino=15208 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734990.698:760): pid=22877 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/303/bus" dev="sda1" ino=15208 res=1 audit: type=1804 audit(1676734990.928:761): pid=22910 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/304/bus" dev="sda1" ino=15180 res=1 audit: type=1804 audit(1676734991.018:762): pid=22932 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/304/bus" dev="sda1" ino=15180 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734991.278:763): pid=22956 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/305/bus" dev="sda1" ino=13882 res=1 audit: type=1804 audit(1676734991.358:764): pid=22981 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/305/bus" dev="sda1" ino=13882 res=1 ntfs: volume version 3.1. netlink: 8 bytes leftover after parsing attributes in process `syz-executor.2'. ntfs: volume version 3.1. netlink: 56 bytes leftover after parsing attributes in process `syz-executor.1'. ntfs: volume version 3.1. ntfs: volume version 3.1. netlink: 'syz-executor.4': attribute type 3 has an invalid length. netlink: 'syz-executor.4': attribute type 3 has an invalid length. netlink: 'syz-executor.4': attribute type 3 has an invalid length. 9pnet: Insufficient options for proto=fd ntfs: volume version 3.1. kauditd_printk_skb: 23 callbacks suppressed audit: type=1804 audit(1676734994.118:785): pid=23504 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/316/bus" dev="sda1" ino=13938 res=1 audit: type=1804 audit(1676734994.178:786): pid=23520 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/316/bus" dev="sda1" ino=13938 res=1 audit: type=1804 audit(1676734994.348:787): pid=23545 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/317/bus" dev="sda1" ino=14404 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734994.438:788): pid=23560 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/317/bus" dev="sda1" ino=14404 res=1 audit: type=1804 audit(1676734994.568:789): pid=23571 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/318/bus" dev="sda1" ino=13884 res=1 audit: type=1804 audit(1676734994.638:790): pid=23590 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/318/bus" dev="sda1" ino=13884 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734994.778:791): pid=23604 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/319/bus" dev="sda1" ino=13884 res=1 audit: type=1804 audit(1676734994.848:792): pid=23615 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/319/bus" dev="sda1" ino=13884 res=1 audit: type=1804 audit(1676734994.998:793): pid=23627 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/320/bus" dev="sda1" ino=14257 res=1 ntfs: volume version 3.1. audit: type=1804 audit(1676734995.068:794): pid=23648 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.3" name="/root/syzkaller-testdir3726143912/syzkaller.3vD7jT/320/bus" dev="sda1" ino=14257 res=1 IPVS: ftp: loaded support on port[0] = 21 ieee802154 phy0 wpan0: encryption failed: -22 ieee802154 phy1 wpan1: encryption failed: -22 ntfs: volume version 3.1. ntfs: volume version 3.1. ntfs: volume version 3.1. ntfs: volume version 3.1. ntfs: volume version 3.1.