syzbot


WARNING: bad unlock balance in xfs_iunlock

Status: upstream: reported C repro on 2022/11/28 02:49
Subsystems: xfs
[Documentation on labels]
Reported-by: syzbot+27c5e199cc153e13d840@syzkaller.appspotmail.com
First crash: 754d, last: 657d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: bad unlock balance in xfs_iunlock xfs C 1 2454d 2454d 5/28 fixed on 2018/05/09 07:47

Sample crash report:
ffff8880a1aef360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
ffff8880a1aef370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
XFS (loop0): metadata I/O error: block 0x5 ("xfs_trans_read_buf_map") error 117 numblks 1
=====================================
WARNING: bad unlock balance detected!
4.14.300-syzkaller #0 Not tainted
-------------------------------------
syz-executor163/7965 is trying to release lock (&xfs_nondir_ilock_class) at:
[<ffffffff825c248f>] mrunlock_excl fs/xfs/mrlock.h:74 [inline]
[<ffffffff825c248f>] xfs_iunlock+0x29f/0x3b0 fs/xfs/xfs_inode.c:327
but there are no more locks to release!

other info that might help us debug this:
2 locks held by syz-executor163/7965:
 #0:  (&type->s_umount_key#46/1){+.+.}, at: [<ffffffff81878e26>] alloc_super fs/super.c:251 [inline]
 #0:  (&type->s_umount_key#46/1){+.+.}, at: [<ffffffff81878e26>] sget_userns+0x556/0xc10 fs/super.c:516
 #1:  (sb_internal#2){.+.+}, at: [<ffffffff825f02f9>] sb_start_intwrite include/linux/fs.h:1598 [inline]
 #1:  (sb_internal#2){.+.+}, at: [<ffffffff825f02f9>] xfs_trans_alloc+0x259/0x320 fs/xfs/xfs_trans.c:242

stack backtrace:
CPU: 1 PID: 7965 Comm: syz-executor163 Not tainted 4.14.300-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 print_unlock_imbalance_bug include/trace/events/lock.h:58 [inline]
 __lock_release kernel/locking/lockdep.c:3769 [inline]
 lock_release.cold+0x70/0xbf kernel/locking/lockdep.c:4017
 up_write+0x17/0x60 kernel/locking/rwsem.c:115
 mrunlock_excl fs/xfs/mrlock.h:74 [inline]
 xfs_iunlock+0x29f/0x3b0 fs/xfs/xfs_inode.c:327
 xfs_inode_item_unlock+0x83/0xa0 fs/xfs/xfs_inode_item.c:613
 xfs_trans_free_items+0x172/0x230 fs/xfs/xfs_trans.c:768
 xfs_trans_cancel+0x1ae/0x250 fs/xfs/xfs_trans.c:1025
 xfs_qm_dqread+0x9c2/0xe50 fs/xfs/xfs_dquot.c:684
 xfs_qm_dqget+0x4f4/0x19a0 fs/xfs/xfs_dquot.c:837
 xfs_qm_quotacheck_dqadjust+0x96/0x5c0 fs/xfs/xfs_qm.c:1077
 xfs_qm_dqusage_adjust+0x428/0xc20 fs/xfs/xfs_qm.c:1192
 xfs_bulkstat_ag_ichunk fs/xfs/xfs_itable.c:313 [inline]
 xfs_bulkstat+0x72a/0xf60 fs/xfs/xfs_itable.c:498
 xfs_qm_quotacheck+0x223/0x790 fs/xfs/xfs_qm.c:1338
 xfs_qm_mount_quotas+0xe9/0x570 fs/xfs/xfs_qm.c:1457
 xfs_mountfs+0x18be/0x1f40 fs/xfs/xfs_mount.c:979
 xfs_fs_fill_super+0xb7a/0x1380 fs/xfs/xfs_super.c:1688
 mount_bdev+0x2b3/0x360 fs/super.c:1134
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905

Crashes (58):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/28 02:57 linux-4.14.y 179ef7fe8677 f4470a7b .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/03/05 05:41 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/02/20 16:24 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/02/09 12:26 linux-4.14.y a8ad60f2af58 14a312c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/02/09 11:09 linux-4.14.y a8ad60f2af58 14a312c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/02/04 04:12 linux-4.14.y 3949d1610004 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/29 02:12 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/26 07:12 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/21 17:56 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/21 13:17 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/21 11:58 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/19 18:31 linux-4.14.y 97205fccccdc 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/19 16:22 linux-4.14.y 97205fccccdc 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/19 02:18 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/18 06:21 linux-4.14.y c4215ee4771b 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/17 06:37 linux-4.14.y c4215ee4771b a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/15 00:22 linux-4.14.y c4215ee4771b a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/14 21:23 linux-4.14.y c4215ee4771b a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/14 21:22 linux-4.14.y c4215ee4771b a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/12 18:30 linux-4.14.y c4215ee4771b 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/12 18:27 linux-4.14.y c4215ee4771b 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/12 18:04 linux-4.14.y c4215ee4771b 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/11 09:18 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/10 20:44 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/10 20:22 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/10 20:05 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/09 01:33 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/08 10:13 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/04 15:45 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/03 05:43 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/01 23:07 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2023/01/01 22:27 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/31 06:33 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/29 19:49 linux-4.14.y c4215ee4771b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/29 18:39 linux-4.14.y c4215ee4771b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/29 16:02 linux-4.14.y c4215ee4771b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/26 12:22 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/26 12:21 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/26 11:29 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/26 10:59 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/26 10:31 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/25 16:19 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/25 06:28 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/25 06:28 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/24 12:02 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/24 03:49 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/23 23:27 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/12/23 23:20 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/11/28 03:28 linux-4.14.y 179ef7fe8677 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/11/28 02:49 linux-4.14.y 179ef7fe8677 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
2022/11/28 02:49 linux-4.14.y 179ef7fe8677 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: bad unlock balance in xfs_iunlock
* Struck through repros no longer work on HEAD.