Date | Name | Commit | Repro | Result |
---|---|---|---|---|
2025/07/09 | upstream (ToT) | 733923397fd9 | C | [report] possible deadlock in hfs_extend_file |
syzbot |
sign-in | mailing list | source | docs |
Date | Name | Commit | Repro | Result |
---|---|---|---|---|
2025/07/09 | upstream (ToT) | 733923397fd9 | C | [report] possible deadlock in hfs_extend_file |
====================================================== WARNING: possible circular locking dependency detected 6.6.96-syzkaller #0 Not tainted ------------------------------------------------------ syz.2.63/6060 is trying to acquire lock: ffff888079014ef8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xdb/0x1220 fs/hfs/extent.c:397 but task is already holding lock: ffff88807b9b60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x15f/0x1d0 fs/hfs/bfind.c:-1 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&tree->tree_lock/1){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x129/0xcc0 kernel/locking/mutex.c:747 hfs_find_init+0x15f/0x1d0 fs/hfs/bfind.c:-1 hfs_ext_read_extent fs/hfs/extent.c:200 [inline] hfs_extend_file+0x2ef/0x1220 fs/hfs/extent.c:401 hfs_bmap_reserve+0x107/0x430 fs/hfs/btree.c:234 hfs_cat_move+0x18d/0x930 fs/hfs/catalog.c:310 hfs_rename+0x1dc/0x2c0 fs/hfs/dir.c:299 vfs_rename+0xb96/0xec0 fs/namei.c:4872 do_renameat2+0x8a1/0xc70 fs/namei.c:5025 __do_sys_rename fs/namei.c:5071 [inline] __se_sys_rename fs/namei.c:5069 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:5069 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #0 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x2ddb/0x7c80 kernel/locking/lockdep.c:5137 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x129/0xcc0 kernel/locking/mutex.c:747 hfs_extend_file+0xdb/0x1220 fs/hfs/extent.c:397 hfs_bmap_reserve+0x107/0x430 fs/hfs/btree.c:234 __hfs_ext_write_extent+0x1fa/0x470 fs/hfs/extent.c:121 __hfs_ext_cache_extent+0x6b/0x9b0 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x317/0x1220 fs/hfs/extent.c:401 hfs_get_block+0x3d8/0xbd0 fs/hfs/extent.c:353 __block_write_begin_int+0x566/0x1ad0 fs/buffer.c:2124 __block_write_begin fs/buffer.c:2173 [inline] block_write_begin+0x9a/0x1e0 fs/buffer.c:2234 cont_write_begin+0x5c8/0x7e0 fs/buffer.c:2591 hfs_write_begin+0x8b/0xd0 fs/hfs/inode.c:58 cont_expand_zero fs/buffer.c:2518 [inline] cont_write_begin+0x2ad/0x7e0 fs/buffer.c:2581 hfs_write_begin+0x8b/0xd0 fs/hfs/inode.c:58 hfs_file_truncate+0x191/0x9b0 fs/hfs/extent.c:494 hfs_inode_setattr+0x4af/0x6e0 fs/hfs/inode.c:659 notify_change+0xb0d/0xe10 fs/attr.c:499 do_truncate+0x19b/0x220 fs/open.c:66 vfs_truncate+0x266/0x300 fs/open.c:112 do_sys_truncate+0xe0/0x1a0 fs/open.c:135 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&tree->tree_lock/1); lock(&HFS_I(tree->inode)->extents_lock); lock(&tree->tree_lock/1); lock(&HFS_I(tree->inode)->extents_lock); *** DEADLOCK *** 4 locks held by syz.2.63/6060: #0: ffff88805ee82418 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:403 #1: ffff8880790136b8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff8880790136b8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: do_truncate+0x187/0x220 fs/open.c:64 #2: ffff8880790134f8 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xdb/0x1220 fs/hfs/extent.c:397 #3: ffff88807b9b60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x15f/0x1d0 fs/hfs/bfind.c:-1 stack backtrace: CPU: 1 PID: 6060 Comm: syz.2.63 Not tainted 6.6.96-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: <TASK> dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 check_noncircular+0x2bd/0x3c0 kernel/locking/lockdep.c:2187 check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x2ddb/0x7c80 kernel/locking/lockdep.c:5137 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x129/0xcc0 kernel/locking/mutex.c:747 hfs_extend_file+0xdb/0x1220 fs/hfs/extent.c:397 hfs_bmap_reserve+0x107/0x430 fs/hfs/btree.c:234 __hfs_ext_write_extent+0x1fa/0x470 fs/hfs/extent.c:121 __hfs_ext_cache_extent+0x6b/0x9b0 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x317/0x1220 fs/hfs/extent.c:401 hfs_get_block+0x3d8/0xbd0 fs/hfs/extent.c:353 __block_write_begin_int+0x566/0x1ad0 fs/buffer.c:2124 __block_write_begin fs/buffer.c:2173 [inline] block_write_begin+0x9a/0x1e0 fs/buffer.c:2234 cont_write_begin+0x5c8/0x7e0 fs/buffer.c:2591 hfs_write_begin+0x8b/0xd0 fs/hfs/inode.c:58 cont_expand_zero fs/buffer.c:2518 [inline] cont_write_begin+0x2ad/0x7e0 fs/buffer.c:2581 hfs_write_begin+0x8b/0xd0 fs/hfs/inode.c:58 hfs_file_truncate+0x191/0x9b0 fs/hfs/extent.c:494 hfs_inode_setattr+0x4af/0x6e0 fs/hfs/inode.c:659 notify_change+0xb0d/0xe10 fs/attr.c:499 do_truncate+0x19b/0x220 fs/open.c:66 vfs_truncate+0x266/0x300 fs/open.c:112 do_sys_truncate+0xe0/0x1a0 fs/open.c:135 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f93bc78e929 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc789ffdb8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f93bc9b5fa0 RCX: 00007f93bc78e929 RDX: 0000000000000000 RSI: 0000000008800000 RDI: 0000200000000040 RBP: 00007f93bc810b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f93bc9b5fa0 R14: 00007f93bc9b5fa0 R15: 0000000000000002 </TASK>
Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2025/07/09 07:39 | linux-6.6.y | a5df3a702b2c | 4d9fdfa4 | .config | console log | report | syz / log | C | [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | |
2025/08/08 02:13 | linux-6.6.y | 3a8ababb8b6a | 6a893178 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/08/08 02:13 | linux-6.6.y | 3a8ababb8b6a | 6a893178 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/08/01 12:25 | linux-6.6.y | 3a8ababb8b6a | 40127d41 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/27 02:16 | linux-6.6.y | dbcb8d8e4163 | fb8f743d | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/27 02:16 | linux-6.6.y | dbcb8d8e4163 | fb8f743d | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/17 15:13 | linux-6.6.y | 9247f4e6573a | 0d1223f1 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/17 15:13 | linux-6.6.y | 9247f4e6573a | 0d1223f1 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/10 20:38 | linux-6.6.y | 59a2de10b81a | 3cda49cf | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/10 20:37 | linux-6.6.y | 59a2de10b81a | 3cda49cf | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/10 20:35 | linux-6.6.y | 59a2de10b81a | 3cda49cf | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/08 15:11 | linux-6.6.y | a5df3a702b2c | 4d9fdfa4 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/08 15:11 | linux-6.6.y | a5df3a702b2c | 4d9fdfa4 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/06 12:19 | linux-6.6.y | a5df3a702b2c | 4f67c4ae | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/07/06 12:18 | linux-6.6.y | a5df3a702b2c | 4f67c4ae | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/06/27 13:10 | linux-6.6.y | 3f5b4c104b7d | 803ce19b | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/06/27 13:10 | linux-6.6.y | 3f5b4c104b7d | 803ce19b | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/06/17 23:17 | linux-6.6.y | c2603c511feb | e77fae15 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/06/17 13:11 | linux-6.6.y | c2603c511feb | cfebc887 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file | ||
2025/06/17 13:11 | linux-6.6.y | c2603c511feb | cfebc887 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-6-kasan | possible deadlock in hfs_extend_file |