ci2 starts bisection 2024-04-23 12:57:30.469787964 +0000 UTC m=+19555.322355318 bisecting fixing commit since e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 building syzkaller on 28b24332d95f2f7df44ec7e7a5e0025bcadc6277 ensuring issue is reproducible on original commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0d44a5f3c80e623b7313bf3b4c6fecbc332e392549417bdddb37034ad31f9d2f all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e86f3f6a3273ebe892a52c070b6fb2f69d72535aa51ef6f4057e53e1166afcd6 all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, 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=3820 full=7526 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 e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4abaf669d5543f000edd2d4e5ddc3e9c624c1d22759648b67de8bb1b9a6f5831 all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e982c87bc6e5c8240e433a1cbaba05b003c45f679bbc178116ad0adbbd2c8cb1 all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 41605f3ab68bd3dfb21f4c87b649276de63853efc86eebc7bcd1f2d30a728ef0 all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, 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 e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 279277116a685a334edf1ebf5c9bdb71cc1330e828a63bc12148daee08bb075b all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG KASAN], they are not needed testing commit e7cddbb41b63252ddb5b7f8247da5d0b24adfac5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7546afe4f8eabee8d4787017b304c71d28abbe819e3fc0822c517a6b6c50e421 all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, types: [LOCKDEP] the chunk can be dropped disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD 6741e066ec7633450d3186946035c1f80c4226b8 testing commit 6741e066ec7633450d3186946035c1f80c4226b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dcf529f230c4b81cb9435de1a9f6b5c341d1109b9b1a56746e9df7a9060f6750 all runs: crashed: WARNING: bad unlock balance in ext4_ioctl representative crash: WARNING: bad unlock balance in ext4_ioctl, types: [LOCKDEP] crash still not fixed/happens on the oldest tested release revisions tested: 8, total time: 1h53m19.773468384s (build: 1h11m14.825886939s, test: 36m38.684327698s) crash still not fixed or there were kernel test errors commit msg: Linux 6.1.87 crash: WARNING: bad unlock balance in ext4_ioctl EXT4-fs (loop0): mounting ext3 file system using the ext4 subsystem EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Quota mode: none. ===================================== WARNING: bad unlock balance detected! 6.1.87-syzkaller #0 Not tainted ------------------------------------- syz-executor.0/1505 is trying to release lock (&type->i_mutex_dir_key) at: [] swap_inode_boot_loader fs/ext4/ioctl.c:513 [inline] [] __ext4_ioctl fs/ext4/ioctl.c:1424 [inline] [] ext4_ioctl+0x18e7/0x1a30 fs/ext4/ioctl.c:1614 but there are no more locks to release! other info that might help us debug this: 1 lock held by syz-executor.0/1505: #0: ffff8881036e3438 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write_file+0x12/0x60 fs/namespace.c:437 stack backtrace: CPU: 0 PID: 1505 Comm: syz-executor.0 Not tainted 6.1.87-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x89/0xd7 lib/dump_stack.c:106 print_unlock_imbalance_bug+0x179/0x190 kernel/locking/lockdep.c:5102 __lock_release kernel/locking/lockdep.c:5339 [inline] lock_release+0x1c5/0x2b0 kernel/locking/lockdep.c:5682 up_write+0x2a/0x170 kernel/locking/rwsem.c:1625 swap_inode_boot_loader fs/ext4/ioctl.c:513 [inline] __ext4_ioctl fs/ext4/ioctl.c:1424 [inline] ext4_ioctl+0x18e7/0x1a30 fs/ext4/ioctl.c:1614 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x6a/0xb0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f49c17e2ba9 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:00007f49c13650c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f49c1901f80 RCX: 00007f49c17e2ba9 RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000004 RBP: 00007f49c182e47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f49c1901f80 R15: 00007ffdb1092bb8