ci2 starts bisection 2023-10-06 00:36:15.815726933 +0000 UTC m=+26441.476121784 bisecting fixing commit since ca48fc16c49388400eddd6c6614593ebf7c7726a building syzkaller on 90c93c40627cb0ac3c2c7cb99d807fd4c137adcb ensuring issue is reproducible on original commit ca48fc16c49388400eddd6c6614593ebf7c7726a testing commit ca48fc16c49388400eddd6c6614593ebf7c7726a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dcc06212ab28b7c19bc0b259475b19d3f3869e4bbacfc55ccc246cffeb3a7b2c all runs: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit ca48fc16c49388400eddd6c6614593ebf7c7726a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d78a79ebe8d9ebcc8ac0c42eb64dd9f3a79c2196e71d1a6f625b411d68c37d54 all runs: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed kconfig minimization: base=3820 full=7524 leaves diff=1994 split chunks (needed=false): <1994> split chunk #0 of len 1994 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 ca48fc16c49388400eddd6c6614593ebf7c7726a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 68a9c287a9885ecac2f8241f9a3026bc3ddf0218bf883aced681ca98320973ec run #0: infra problem: create image operation failed: &{Code:ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS ErrorDetails:[0xc000d7ec80 0xc000d7ed70 0xc000d7ee10] Location: Message:The zone 'projects/syzkaller/zones/us-central1-c' does not have enough resources available to fulfill the request. '(resource type:compute)'. ForceSendFields:[] NullFields:[]}. run #1: crashed: possible deadlock in ext4_xattr_inode_iget run #2: crashed: possible deadlock in ext4_xattr_inode_iget run #3: crashed: possible deadlock in ext4_xattr_inode_iget run #4: crashed: possible deadlock in ext4_xattr_inode_iget run #5: crashed: possible deadlock in ext4_xattr_inode_iget run #6: crashed: possible deadlock in ext4_xattr_inode_iget run #7: crashed: possible deadlock in ext4_xattr_inode_iget run #8: crashed: possible deadlock in ext4_xattr_inode_iget run #9: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing commit ca48fc16c49388400eddd6c6614593ebf7c7726a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a13c452feac2ac0c354cf1b410d4d6fedbc24d025c9e21c414e2b6cf4f365459 all runs: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit ca48fc16c49388400eddd6c6614593ebf7c7726a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: af950be54512ed32acda9100017f706829db066875ae9231460fef1773e3f17c all runs: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit ca48fc16c49388400eddd6c6614593ebf7c7726a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2f0ca1770253fa2213df258c09583128389f5805cf60b27436319487ec303336 all runs: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [UBSAN BUG KASAN ATOMIC_SLEEP HANG LEAK], they are not needed testing commit ca48fc16c49388400eddd6c6614593ebf7c7726a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f5d30569e44a8107fe8041914a16a33b4a2ab8e413b8af81e7a5fccc7f02ec60 all runs: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] the chunk can be dropped disabling configs for [LEAK UBSAN BUG KASAN ATOMIC_SLEEP HANG], they are not needed testing current HEAD d23900f974e0fb995b36ef47283a5aa74ca25f51 testing commit d23900f974e0fb995b36ef47283a5aa74ca25f51 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4eefc7864ff2cc2cfbc296f29541950e24209ee0a4336cbaecaceb96bcbe1ad9 all runs: crashed: possible deadlock in ext4_xattr_inode_iget representative crash: possible deadlock in ext4_xattr_inode_iget, types: [LOCKDEP] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 52m39.713669612s (build: 25m59.746340916s, test: 24m1.940839638s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.55 crash: possible deadlock in ext4_xattr_inode_iget EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. ====================================================== WARNING: possible circular locking dependency detected 6.1.55-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/1524 is trying to acquire lock: ffff88811529cfc0 (&ea_inode->i_rwsem#7/1){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] ffff88811529cfc0 (&ea_inode->i_rwsem#7/1){+.+.}-{3:3}, at: ext4_xattr_inode_iget+0x151/0x170 fs/ext4/xattr.c:425 but task is already holding lock: ffff888115298288 (&ei->i_data_sem/3){++++}-{3:3}, at: ext4_setattr+0x5dd/0x700 fs/ext4/inode.c:5535 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+0x26/0xc0 kernel/locking/rwsem.c:1573 ext4_update_i_disksize fs/ext4/ext4.h:3377 [inline] ext4_xattr_inode_write fs/ext4/xattr.c:1397 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1545 [inline] ext4_xattr_set_entry+0xca9/0x11b0 fs/ext4/xattr.c:1669 ext4_xattr_ibody_set+0x53/0xa0 fs/ext4/xattr.c:2237 ext4_xattr_set_handle+0x41a/0x690 fs/ext4/xattr.c:2394 ext4_xattr_set+0xe3/0x170 fs/ext4/xattr.c:2508 __vfs_setxattr+0x105/0x130 fs/xattr.c:182 __vfs_setxattr_noperm+0x8e/0x1f0 fs/xattr.c:216 vfs_setxattr+0xde/0x170 fs/xattr.c:309 do_setxattr fs/xattr.c:594 [inline] setxattr+0x131/0x170 fs/xattr.c:617 path_setxattr+0xab/0x120 fs/xattr.c:636 __do_sys_setxattr fs/xattr.c:652 [inline] __se_sys_setxattr fs/xattr.c:648 [inline] __x64_sys_setxattr+0x22/0x30 fs/xattr.c:648 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> #0 (&ea_inode->i_rwsem#7/1){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3090 [inline] check_prevs_add kernel/locking/lockdep.c:3209 [inline] validate_chain kernel/locking/lockdep.c:3824 [inline] __lock_acquire+0x1464/0x2830 kernel/locking/lockdep.c:5048 lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5661 down_write+0x26/0xc0 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:756 [inline] ext4_xattr_inode_iget+0x151/0x170 fs/ext4/xattr.c:425 ext4_xattr_inode_get+0x4f/0x210 fs/ext4/xattr.c:485 ext4_xattr_move_to_block fs/ext4/xattr.c:2590 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2692 [inline] ext4_expand_extra_isize_ea+0x43c/0x850 fs/ext4/xattr.c:2784 __ext4_expand_extra_isize+0xbc/0x130 fs/ext4/inode.c:5907 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5950 [inline] __ext4_mark_inode_dirty+0x17f/0x230 fs/ext4/inode.c:6028 ext4_setattr+0x607/0x700 fs/ext4/inode.c:5538 notify_change+0x3c2/0x420 fs/attr.c:499 do_truncate+0xdd/0x120 fs/open.c:65 handle_truncate fs/namei.c:3216 [inline] do_open fs/namei.c:3561 [inline] path_openat+0xb69/0xc40 fs/namei.c:3714 do_filp_open+0xa8/0x150 fs/namei.c:3741 do_sys_openat2+0x89/0x160 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_creat fs/open.c:1410 [inline] __se_sys_creat fs/open.c:1404 [inline] __x64_sys_creat+0x42/0x60 fs/open.c:1404 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ei->i_data_sem/3); lock(&ea_inode->i_rwsem#7/1); lock(&ei->i_data_sem/3); lock(&ea_inode->i_rwsem#7/1); *** DEADLOCK *** 5 locks held by syz-executor.0/1524: #0: ffff888100e4d438 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0xe/0x30 fs/namespace.c:393 #1: ffff888115298400 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff888115298400 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: do_truncate+0xcd/0x120 fs/open.c:63 #2: ffff8881152985a0 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:801 [inline] #2: ffff8881152985a0 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_setattr+0x3ff/0x700 fs/ext4/inode.c:5495 #3: ffff888115298288 (&ei->i_data_sem/3){++++}-{3:3}, at: ext4_setattr+0x5dd/0x700 fs/ext4/inode.c:5535 #4: ffff8881152980c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_trylock_xattr fs/ext4/xattr.h:162 [inline] #4: ffff8881152980c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_to_expand_extra_isize fs/ext4/inode.c:5947 [inline] #4: ffff8881152980c8 (&ei->xattr_sem){++++}-{3:3}, at: __ext4_mark_inode_dirty+0x149/0x230 fs/ext4/inode.c:6028 stack backtrace: CPU: 1 PID: 1524 Comm: syz-executor.0 Not tainted 6.1.55-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x89/0xd7 lib/dump_stack.c:106 print_circular_bug+0x2c5/0x300 kernel/locking/lockdep.c:2048 check_noncircular+0x106/0x110 kernel/locking/lockdep.c:2170 check_prev_add kernel/locking/lockdep.c:3090 [inline] check_prevs_add kernel/locking/lockdep.c:3209 [inline] validate_chain kernel/locking/lockdep.c:3824 [inline] __lock_acquire+0x1464/0x2830 kernel/locking/lockdep.c:5048 lock_acquire+0xe3/0x270 kernel/locking/lockdep.c:5661 down_write+0x26/0xc0 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:756 [inline] ext4_xattr_inode_iget+0x151/0x170 fs/ext4/xattr.c:425 ext4_xattr_inode_get+0x4f/0x210 fs/ext4/xattr.c:485 ext4_xattr_move_to_block fs/ext4/xattr.c:2590 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2692 [inline] ext4_expand_extra_isize_ea+0x43c/0x850 fs/ext4/xattr.c:2784 __ext4_expand_extra_isize+0xbc/0x130 fs/ext4/inode.c:5907 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5950 [inline] __ext4_mark_inode_dirty+0x17f/0x230 fs/ext4/inode.c:6028 ext4_setattr+0x607/0x700 fs/ext4/inode.c:5538 notify_change+0x3c2/0x420 fs/attr.c:499 do_truncate+0xdd/0x120 fs/open.c:65 handle_truncate fs/namei.c:3216 [inline] do_open fs/namei.c:3561 [inline] path_openat+0xb69/0xc40 fs/namei.c:3714 do_filp_open+0xa8/0x150 fs/namei.c:3741 do_sys_openat2+0x89/0x160 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_creat fs/open.c:1410 [inline] __se_sys_creat fs/open.c:1404 [inline] __x64_sys_creat+0x42/0x60 fs/open.c:1404 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f8d8cb9e959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8d8c7210c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f8d8ccbdf80 RCX: 00007f8d8cb9e959 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007f8d8cbfac88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f8d8ccbdf80 R15: 00007ffd4fa51c88