ci2 starts bisection 2025-04-17 07:07:18.187104557 +0000 UTC m=+117251.847701849 bisecting fixing commit since c16c81c81336c0912eb3542194f16215c0a40037 building syzkaller on 40a34ec944732a2502ee67d92cc8c023355dfad4 ensuring issue is reproducible on original commit c16c81c81336c0912eb3542194f16215c0a40037 testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 91cf4db7d319a3ba21a3b00d542ff7c1d4d7067a497a9a1b01cbf6b6cbd66763 all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 70adf681bd3f30dc080a0a6f9e16ad88d9396daa7605fabd1597db44b92a0ea5 all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed kconfig minimization: base=3706 full=7305 leaves diff=2038 split chunks (needed=false): <2038> split chunk #0 of len 2038 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e9c01dfe634adf99fddea7e00a62b03f39d3b50955ded975b52f13718c89b7d1 all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3a9494e522dbb5ffb0c8a658371d13c1aa65e2deb87e35c57a9a3901e9d98111 all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9fa61e9a83dee6a3f35e5fe7b4c8a8e6756b2bf11cc1ec336dd25266daf361b2 all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d529fbd12e68323feb37a4ae398ab82153bdab98376651ab86c37b365e0e8098 all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit c16c81c81336c0912eb3542194f16215c0a40037 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 085f1bcc2ed8f88ab446df42a1f23706f09bd8798481f417099b3e875aed7d4a all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] the chunk can be dropped disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD f7347f4005727f3155551c0550f4deb9c40b56c2 testing commit f7347f4005727f3155551c0550f4deb9c40b56c2 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 02b902957a9a962866dcc8bac49be540a4deed5d8d3930fbfc48b8b4d5f97a6d all runs: crashed: possible deadlock in ext4_xattr_set_entry representative crash: possible deadlock in ext4_xattr_set_entry, types: [LOCKDEP] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h15m53.711723979s (build: 35m21.307793673s, test: 37m46.59592074s) crash still not fixed or there were kernel test errors commit msg: Linux 5.15.180 crash: possible deadlock in ext4_xattr_set_entry ====================================================== WARNING: possible circular locking dependency detected 5.15.180-syzkaller #0 Not tainted ------------------------------------------------------ syz.7.16/4333 is trying to acquire lock: ffff88810b31b2a8 (&sb->s_type->i_mutex_key#7/1){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] ffff88810b31b2a8 (&sb->s_type->i_mutex_key#7/1){+.+.}-{3:3}, at: ext4_xattr_inode_create fs/ext4/xattr.c:1465 [inline] ffff88810b31b2a8 (&sb->s_type->i_mutex_key#7/1){+.+.}-{3:3}, at: ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1547 [inline] ffff88810b31b2a8 (&sb->s_type->i_mutex_key#7/1){+.+.}-{3:3}, at: ext4_xattr_set_entry+0xfca/0x1330 fs/ext4/xattr.c:1675 but task is already holding lock: ffff88810b3d1528 (&ei->i_data_sem/3){++++}-{3:3}, at: ext4_truncate+0x3dc/0x4a0 fs/ext4/inode.c:4244 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&ei->i_data_sem/3){++++}-{3:3}: down_write+0x20/0xa0 kernel/locking/rwsem.c:1551 ext4_update_i_disksize fs/ext4/ext4.h:3401 [inline] ext4_xattr_inode_write fs/ext4/xattr.c:1403 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1551 [inline] ext4_xattr_set_entry+0x1207/0x1330 fs/ext4/xattr.c:1675 ext4_xattr_ibody_set+0x4d/0xb0 fs/ext4/xattr.c:2243 ext4_xattr_set_handle+0x346/0x650 fs/ext4/xattr.c:2400 ext4_xattr_set+0x7c/0x150 fs/ext4/xattr.c:2513 __vfs_setxattr+0x62/0x80 fs/xattr.c:182 __vfs_setxattr_noperm+0x74/0x220 fs/xattr.c:216 vfs_setxattr+0x99/0x180 fs/xattr.c:303 setxattr+0x83/0xa0 fs/xattr.c:611 path_setxattr+0xbe/0xe0 fs/xattr.c:630 __do_sys_setxattr fs/xattr.c:646 [inline] __se_sys_setxattr fs/xattr.c:642 [inline] __x64_sys_setxattr+0x22/0x30 fs/xattr.c:642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #0 (&sb->s_type->i_mutex_key#7/1){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x10b6/0x1a40 kernel/locking/lockdep.c:5012 lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 down_write+0x20/0xa0 kernel/locking/rwsem.c:1551 inode_lock include/linux/fs.h:787 [inline] ext4_xattr_inode_create fs/ext4/xattr.c:1465 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1547 [inline] ext4_xattr_set_entry+0xfca/0x1330 fs/ext4/xattr.c:1675 ext4_xattr_block_set+0x45c/0xf90 fs/ext4/xattr.c:1995 ext4_xattr_move_to_block fs/ext4/xattr.c:2623 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2698 [inline] ext4_expand_extra_isize_ea+0x39a/0x900 fs/ext4/xattr.c:2790 __ext4_expand_extra_isize+0xc4/0x110 fs/ext4/inode.c:5857 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5900 [inline] __ext4_mark_inode_dirty+0x17b/0x220 fs/ext4/inode.c:5978 ext4_ext_truncate+0x27/0xa0 fs/ext4/extents.c:4454 ext4_truncate+0x400/0x4a0 fs/ext4/inode.c:4249 ext4_evict_inode+0x2f9/0x890 fs/ext4/inode.c:289 evict+0x10c/0x2b0 fs/inode.c:647 __dentry_kill+0xe0/0x1b0 fs/dcache.c:586 dentry_kill fs/dcache.c:724 [inline] dput+0x2be/0x4c0 fs/dcache.c:893 do_renameat2+0x322/0x580 fs/namei.c:4987 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x3b/0x50 fs/namei.c:5029 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ei->i_data_sem/3); lock(&sb->s_type->i_mutex_key#7/1); lock(&ei->i_data_sem/3); lock(&sb->s_type->i_mutex_key#7/1); *** DEADLOCK *** 7 locks held by syz.7.16/4333: #0: ffff88810c6fd438 (sb_writers#4){.+.+}-{0:0}, at: do_renameat2+0x1a6/0x580 fs/namei.c:4919 #1: ffff88810c6fd720 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename fs/namei.c:3016 [inline] #1: ffff88810c6fd720 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: do_renameat2+0x229/0x580 fs/namei.c:4924 #2: ffff88810b3d32a8 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline] #2: ffff88810b3d32a8 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_two_directories+0x32/0x90 fs/namei.c:2995 #3: ffff88810b3d1ff8 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline] #3: ffff88810b3d1ff8 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_two_directories+0x47/0x90 fs/namei.c:2996 #4: ffff88810c6fd628 (sb_internal){.+.+}-{0:0}, at: evict+0x10c/0x2b0 fs/inode.c:647 #5: ffff88810b3d1528 (&ei->i_data_sem/3){++++}-{3:3}, at: ext4_truncate+0x3dc/0x4a0 fs/ext4/inode.c:4244 #6: ffff88810b3d1378 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_trylock_xattr fs/ext4/xattr.h:162 [inline] #6: ffff88810b3d1378 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_to_expand_extra_isize fs/ext4/inode.c:5897 [inline] #6: ffff88810b3d1378 (&ei->xattr_sem){++++}-{3:3}, at: __ext4_mark_inode_dirty+0x140/0x220 fs/ext4/inode.c:5978 stack backtrace: CPU: 0 PID: 4333 Comm: syz.7.16 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 check_noncircular+0xcc/0xe0 kernel/locking/lockdep.c:2133 check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain kernel/locking/lockdep.c:3788 [inline] __lock_acquire+0x10b6/0x1a40 kernel/locking/lockdep.c:5012 lock_acquire kernel/locking/lockdep.c:5623 [inline] lock_acquire+0xbb/0x290 kernel/locking/lockdep.c:5588 down_write+0x20/0xa0 kernel/locking/rwsem.c:1551 inode_lock include/linux/fs.h:787 [inline] ext4_xattr_inode_create fs/ext4/xattr.c:1465 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1547 [inline] ext4_xattr_set_entry+0xfca/0x1330 fs/ext4/xattr.c:1675 ext4_xattr_block_set+0x45c/0xf90 fs/ext4/xattr.c:1995 ext4_xattr_move_to_block fs/ext4/xattr.c:2623 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2698 [inline] ext4_expand_extra_isize_ea+0x39a/0x900 fs/ext4/xattr.c:2790 __ext4_expand_extra_isize+0xc4/0x110 fs/ext4/inode.c:5857 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5900 [inline] __ext4_mark_inode_dirty+0x17b/0x220 fs/ext4/inode.c:5978 ext4_ext_truncate+0x27/0xa0 fs/ext4/extents.c:4454 ext4_truncate+0x400/0x4a0 fs/ext4/inode.c:4249 ext4_evict_inode+0x2f9/0x890 fs/ext4/inode.c:289 evict+0x10c/0x2b0 fs/inode.c:647 __dentry_kill+0xe0/0x1b0 fs/dcache.c:586 dentry_kill fs/dcache.c:724 [inline] dput+0x2be/0x4c0 fs/dcache.c:893 do_renameat2+0x322/0x580 fs/namei.c:4987 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x3b/0x50 fs/namei.c:5029 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x33/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f32d8539de9 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:00007f32d7f8b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f32d8753080 RCX: 00007f32d8539de9 RDX: 0000000000000000 RSI: 00004000000000c0 RDI: 0000400000000000 RBP: 00007f32d85bb2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f32d8753080 R15: 00007ffebc5241a8