audit: type=1800 audit(1677331878.983:19407): pid=2818 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17208 res=0 hfsplus: failed to load root directory ============================================ WARNING: possible recursive locking detected 4.19.211-syzkaller #0 Not tainted -------------------------------------------- syz-executor.4/2816 is trying to acquire lock: 000000002fe44021 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 fs/hfsplus/extents.c:260 but task is already holding lock: 000000003ea63ea2 (&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.4/2816: #0: 00000000cd070c22 (&type->s_umount_key#59/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 00000000cd070c22 (&type->s_umount_key#59/1){+.+.}, at: sget_userns+0x20b/0xcd0 fs/super.c:519 #1: 0000000066ec0b80 (&sbi->vh_mutex){+.+.}, at: hfsplus_fill_super+0x1421/0x19e0 fs/hfsplus/super.c:553 #2: 00000000bad98dc1 (&tree->tree_lock#2){+.+.}, at: hfsplus_find_init+0x1b7/0x220 fs/hfsplus/bfind.c:30 #3: 000000003ea63ea2 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_extend+0x1bb/0xf40 fs/hfsplus/extents.c:457 #4: 0000000098a079c9 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_allocate+0xe0/0xa60 fs/hfsplus/bitmap.c:35 stack backtrace: CPU: 1 PID: 2816 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/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:0x7f95f97c262a 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:00007f95f7d32f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000000005f8 RCX: 00007f95f97c262a RDX: 0000000020000600 RSI: 0000000020000640 RDI: 00007f95f7d32fe0 RBP: 00007f95f7d33020 R08: 00007f95f7d33020 R09: 0000000000000050 R10: 0000000000000050 R11: 0000000000000202 R12: 0000000020000600 R13: 0000000020000640 R14: 00007f95f7d32fe0 R15: 00000000200003c0 audit: type=1800 audit(1677331879.793:19408): pid=2844 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17221 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory audit: type=1800 audit(1677331880.043:19409): pid=2875 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17161 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory audit: type=1800 audit(1677331880.243:19410): pid=2910 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17207 res=0 audit: type=1800 audit(1677331880.443:19411): pid=2943 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=16241 res=0 hfsplus: failed to load root directory audit: type=1800 audit(1677331880.493:19412): pid=2943 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name=02 dev="sda1" ino=17162 res=0 audit: type=1800 audit(1677331880.493:19413): pid=2943 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name=02 dev="sda1" ino=17162 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load attributes file hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory kauditd_printk_skb: 66 callbacks suppressed audit: type=1800 audit(1677331883.414:19480): pid=3271 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17547 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory audit: type=1800 audit(1677331883.634:19481): pid=3299 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17531 res=0 audit: type=1800 audit(1677331883.734:19482): pid=3311 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17548 res=0 program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO sd 0:0:1:0: ioctl_internal_command: ILLEGAL REQUEST asc=0x20 ascq=0x0 hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory dccp_close: ABORT with 3 bytes unread audit: type=1800 audit(1677331884.664:19483): pid=3394 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17546 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO sd 0:0:1:0: ioctl_internal_command: ILLEGAL REQUEST asc=0x20 ascq=0x0 hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory audit: type=1800 audit(1677331885.624:19484): pid=3475 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17345 res=0 hfsplus: failed to load root directory program syz-executor.0 is using a deprecated SCSI ioctl, please convert it to SG_IO sd 0:0:1:0: ioctl_internal_command: ILLEGAL REQUEST asc=0x20 ascq=0x0 hfsplus: failed to load root directory audit: type=1800 audit(1677331885.894:19485): pid=3516 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17540 res=0 hfsplus: failed to load root directory audit: type=1800 audit(1677331886.124:19486): pid=3543 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=16751 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory audit: type=1800 audit(1677331886.314:19487): pid=3568 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17564 res=0 hfsplus: failed to load root directory audit: type=1800 audit(1677331886.564:19488): pid=3601 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17562 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory audit: type=1800 audit(1677331886.734:19489): pid=3630 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=17580 res=0 hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: invalid extent max_key_len 0 hfsplus: failed to load extents file hfsplus: failed to load root directory hfsplus: invalid extent max_key_len 7 hfsplus: failed to load extents file hfsplus: failed to load root directory hfsplus: invalid extent max_key_len 0 hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: failed to load extents file hfsplus: invalid extent max_key_len 0 hfsplus: failed to load root directory hfsplus: failed to load extents file hfsplus: failed to load root directory hfsplus: invalid extent max_key_len 0 hfsplus: failed to load root directory hfsplus: failed to load extents file hfsplus: failed to load root directory hfsplus: failed to load root directory hfsplus: invalid extent max_key_len 0 hfsplus: failed to load extents file hfsplus: failed to load root directory kauditd_printk_skb: 73 callbacks suppressed audit: type=1800 audit(1677331888.504:19563): pid=3892 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14214 res=0 hfsplus: failed to load root directory audit: type=1800 audit(1677331888.694:19564): pid=3904 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14214 res=0 audit: type=1800 audit(1677331888.754:19565): pid=3928 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14363 res=0 hfsplus: failed to load root directory hfsplus: invalid extent max_key_len 0 hfsplus: failed to load extents file hfsplus: failed to load root directory audit: type=1800 audit(1677331888.894:19566): pid=3944 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14363 res=0 audit: type=1800 audit(1677331888.984:19567): pid=3964 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.0" name="bus" dev="sda1" ino=14372 res=0