gfs2: fsid=syz:syz.0: fatal: filesystem consistency error
inode = 11 2340
function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 460
gfs2: fsid=syz:syz.0: G: s:EX n:2/924 f:qobnN t:EX d:EX/0 a:0 v:0 r:3 m:20 p:1
gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5511 [syz-executor.0] gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2: fsid=syz:syz.0: I: n:11/2340 t:8 f:0x00 d:0x00000201 s:176 p:0
gfs2: fsid=syz:syz.0: about to withdraw this file system
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5511, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
4 locks held by syz-executor.0/5511:
#0: ffff888020a1c0e0 (&type->s_umount_key#50){+.+.}-{3:3}, at: deactivate_super+0xa9/0xd0 fs/super.c:362
#1: ffff888027884b70 (&sdp->sd_quota_sync_mutex){+.+.}-{3:3}, at: gfs2_quota_sync+0xa8/0x680 fs/gfs2/quota.c:1307
#2: ffff8880761e3710 (&gfs2_quota_imutex_key){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#2: ffff8880761e3710 (&gfs2_quota_imutex_key){+.+.}-{3:3}, at: do_sync+0x419/0xd70 fs/gfs2/quota.c:912
#3: ffffffff8cf0b018 (qd_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline]
#3: ffffffff8cf0b018 (qd_lock){+.+.}-{2:2}, at: gfs2_quota_cleanup+0x2d/0x9e0 fs/gfs2/quota.c:1469
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 5511 Comm: syz-executor.0 Not tainted 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
__might_resched.cold+0x222/0x26b kernel/sched/core.c:9985
__mutex_lock_common kernel/locking/mutex.c:580 [inline]
__mutex_lock+0x9f/0x1360 kernel/locking/mutex.c:747
bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
qd_unlock+0x81/0x190 fs/gfs2/quota.c:493
gfs2_quota_cleanup+0x20c/0x9e0 fs/gfs2/quota.c:1472
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
=============================
[ BUG: Invalid wait context ]
6.2.0-rc1-syzkaller-dirty #0 Tainted: G W
-----------------------------
syz-executor.0/5511 is trying to lock:
ffff888027884ae0 (&sdp->sd_quota_mutex){+.+.}-{3:3}, at: bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
other info that might help us debug this:
context-{4:4}
4 locks held by syz-executor.0/5511:
#0: ffff888020a1c0e0 (&type->s_umount_key#50){+.+.}-{3:3}, at: deactivate_super+0xa9/0xd0 fs/super.c:362
#1: ffff888027884b70 (&sdp->sd_quota_sync_mutex){+.+.}-{3:3}, at: gfs2_quota_sync+0xa8/0x680 fs/gfs2/quota.c:1307
#2: ffff8880761e3710 (&gfs2_quota_imutex_key){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#2: ffff8880761e3710 (&gfs2_quota_imutex_key){+.+.}-{3:3}, at: do_sync+0x419/0xd70 fs/gfs2/quota.c:912
#3: ffffffff8cf0b018 (qd_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:350 [inline]
#3: ffffffff8cf0b018 (qd_lock){+.+.}-{2:2}, at: gfs2_quota_cleanup+0x2d/0x9e0 fs/gfs2/quota.c:1469
stack backtrace:
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
print_lock_invalid_wait_context kernel/locking/lockdep.c:4707 [inline]
check_wait_context kernel/locking/lockdep.c:4768 [inline]
__lock_acquire.cold+0x322/0x3a7 kernel/locking/lockdep.c:5005
lock_acquire kernel/locking/lockdep.c:5668 [inline]
lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633
__mutex_lock_common kernel/locking/mutex.c:603 [inline]
__mutex_lock+0x12f/0x1360 kernel/locking/mutex.c:747
bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
qd_unlock+0x81/0x190 fs/gfs2/quota.c:493
gfs2_quota_cleanup+0x20c/0x9e0 fs/gfs2/quota.c:1472
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: qc_id:0
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1486
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_assert_warn_i.cold+0x3a/0x11f fs/gfs2/util.c:425
gfs2_quota_cleanup+0x7c7/0x9e0 fs/gfs2/quota.c:1486
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount.
gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0
gfs2: fsid=syz:syz.0: File system withdrawn
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_withdraw.cold+0x275/0xf9a fs/gfs2/util.c:364
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
error: -5, qi-i_inode.i_ino: 2340, num_qd: 1, do_sync
gfs2: fsid=syz:syz.0: fatal: filesystem consistency error
inode = 11 2340
function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 460
gfs2: fsid=syz:syz.0: G: s:EX n:2/924 f:qobnN t:EX d:EX/0 a:0 v:0 r:3 m:20 p:1
gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5511 [syz-executor.0] gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2: fsid=syz:syz.0: I: n:11/2340 t:8 f:0x00 d:0x00000201 s:176 p:0
gfs2: fsid=syz:syz.0: about to withdraw this file system
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5511, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
__might_resched.cold+0x222/0x26b kernel/sched/core.c:9985
__mutex_lock_common kernel/locking/mutex.c:580 [inline]
__mutex_lock+0x9f/0x1360 kernel/locking/mutex.c:747
bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
qd_unlock+0x81/0x190 fs/gfs2/quota.c:493
gfs2_quota_cleanup+0x20c/0x9e0 fs/gfs2/quota.c:1472
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: qc_id:0
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1486
CPU: 1 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_assert_warn_i.cold+0x3a/0x11f fs/gfs2/util.c:425
gfs2_quota_cleanup+0x7c7/0x9e0 fs/gfs2/quota.c:1486
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount.
gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0
gfs2: fsid=syz:syz.0: File system withdrawn
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_withdraw.cold+0x275/0xf9a fs/gfs2/util.c:364
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
error: -5, qi-i_inode.i_ino: 2340, num_qd: 1, do_sync
gfs2: fsid=syz:syz.0: fatal: filesystem consistency error
inode = 11 2340
function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 460
gfs2: fsid=syz:syz.0: G: s:EX n:2/924 f:qobnN t:EX d:EX/0 a:0 v:0 r:3 m:20 p:1
gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5511 [syz-executor.0] gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2: fsid=syz:syz.0: I: n:11/2340 t:8 f:0x00 d:0x00000201 s:176 p:0
gfs2: fsid=syz:syz.0: about to withdraw this file system
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5511, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
__might_resched.cold+0x222/0x26b kernel/sched/core.c:9985
__mutex_lock_common kernel/locking/mutex.c:580 [inline]
__mutex_lock+0x9f/0x1360 kernel/locking/mutex.c:747
bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
qd_unlock+0x81/0x190 fs/gfs2/quota.c:493
gfs2_quota_cleanup+0x20c/0x9e0 fs/gfs2/quota.c:1472
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: qc_id:0
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1486
CPU: 1 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_assert_warn_i.cold+0x3a/0x11f fs/gfs2/util.c:425
gfs2_quota_cleanup+0x7c7/0x9e0 fs/gfs2/quota.c:1486
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount.
gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0
gfs2: fsid=syz:syz.0: File system withdrawn
CPU: 1 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_withdraw.cold+0x275/0xf9a fs/gfs2/util.c:364
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
error: -5, qi-i_inode.i_ino: 2340, num_qd: 1, do_sync
gfs2: fsid=syz:syz.0: fatal: filesystem consistency error
inode = 11 2340
function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 460
gfs2: fsid=syz:syz.0: G: s:EX n:2/924 f:qobnN t:EX d:EX/0 a:0 v:0 r:3 m:20 p:1
gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5511 [syz-executor.0] gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2: fsid=syz:syz.0: I: n:11/2340 t:8 f:0x00 d:0x00000201 s:176 p:0
gfs2: fsid=syz:syz.0: about to withdraw this file system
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5511, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
__might_resched.cold+0x222/0x26b kernel/sched/core.c:9985
__mutex_lock_common kernel/locking/mutex.c:580 [inline]
__mutex_lock+0x9f/0x1360 kernel/locking/mutex.c:747
bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
qd_unlock+0x81/0x190 fs/gfs2/quota.c:493
gfs2_quota_cleanup+0x20c/0x9e0 fs/gfs2/quota.c:1472
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: qc_id:0
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1486
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_assert_warn_i.cold+0x3a/0x11f fs/gfs2/util.c:425
gfs2_quota_cleanup+0x7c7/0x9e0 fs/gfs2/quota.c:1486
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount.
gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0
gfs2: fsid=syz:syz.0: File system withdrawn
CPU: 1 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_withdraw.cold+0x275/0xf9a fs/gfs2/util.c:364
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
error: -5, qi-i_inode.i_ino: 2340, num_qd: 1, do_sync
gfs2: fsid=syz:syz.0: fatal: filesystem consistency error
inode = 11 2340
function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 460
gfs2: fsid=syz:syz.0: G: s:EX n:2/924 f:qobnN t:EX d:EX/0 a:0 v:0 r:3 m:20 p:1
gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5511 [syz-executor.0] gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2: fsid=syz:syz.0: I: n:11/2340 t:8 f:0x00 d:0x00000201 s:176 p:0
gfs2: fsid=syz:syz.0: about to withdraw this file system
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5511, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
__might_resched.cold+0x222/0x26b kernel/sched/core.c:9985
__mutex_lock_common kernel/locking/mutex.c:580 [inline]
__mutex_lock+0x9f/0x1360 kernel/locking/mutex.c:747
bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
qd_unlock+0x81/0x190 fs/gfs2/quota.c:493
gfs2_quota_cleanup+0x20c/0x9e0 fs/gfs2/quota.c:1472
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: qc_id:0
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1486
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_assert_warn_i.cold+0x3a/0x11f fs/gfs2/util.c:425
gfs2_quota_cleanup+0x7c7/0x9e0 fs/gfs2/quota.c:1486
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount.
gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0
gfs2: fsid=syz:syz.0: File system withdrawn
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_withdraw.cold+0x275/0xf9a fs/gfs2/util.c:364
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
error: -5, qi-i_inode.i_ino: 2340, num_qd: 1, do_sync
gfs2: fsid=syz:syz.0: fatal: filesystem consistency error
inode = 11 2340
function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 460
gfs2: fsid=syz:syz.0: G: s:EX n:2/924 f:qobnN t:EX d:EX/0 a:0 v:0 r:3 m:20 p:1
gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5511 [syz-executor.0] gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2: fsid=syz:syz.0: I: n:11/2340 t:8 f:0x00 d:0x00000201 s:176 p:0
gfs2: fsid=syz:syz.0: about to withdraw this file system
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5511, name: syz-executor.0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
__might_resched.cold+0x222/0x26b kernel/sched/core.c:9985
__mutex_lock_common kernel/locking/mutex.c:580 [inline]
__mutex_lock+0x9f/0x1360 kernel/locking/mutex.c:747
bh_put+0x6b/0x1c0 fs/gfs2/quota.c:423
qd_unlock+0x81/0x190 fs/gfs2/quota.c:493
gfs2_quota_cleanup+0x20c/0x9e0 fs/gfs2/quota.c:1472
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: qc_id:0
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1486
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_assert_warn_i.cold+0x3a/0x11f fs/gfs2/util.c:425
gfs2_quota_cleanup+0x7c7/0x9e0 fs/gfs2/quota.c:1486
gfs2_make_fs_ro+0x202/0x610 fs/gfs2/super.c:560
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw.cold+0x4b4/0xf9a fs/gfs2/util.c:351
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
gfs2: fsid=syz:syz.0: Journal recovery skipped for jid 0 until next mount.
gfs2: fsid=syz:syz.0: Glock dequeues delayed: 0
gfs2: fsid=syz:syz.0: File system withdrawn
CPU: 0 PID: 5511 Comm: syz-executor.0 Tainted: G W 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106
gfs2_withdraw.cold+0x275/0xf9a fs/gfs2/util.c:364
gfs2_dinode_in fs/gfs2/glops.c:460 [inline]
gfs2_inode_refresh+0xcd1/0x1070 fs/gfs2/glops.c:480
inode_go_instantiate+0x4a/0x70 fs/gfs2/glops.c:499
gfs2_instantiate+0x16a/0x250 fs/gfs2/glock.c:456
gfs2_glock_holder_ready fs/gfs2/glock.c:1299 [inline]
gfs2_glock_holder_ready fs/gfs2/glock.c:1295 [inline]
gfs2_glock_wait+0x197/0x2e0 fs/gfs2/glock.c:1319
gfs2_glock_nq+0xae4/0x1470 fs/gfs2/glock.c:1567
gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline]
do_sync+0x687/0xd70 fs/gfs2/quota.c:920
gfs2_quota_sync+0x2e6/0x680 fs/gfs2/quota.c:1323
gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650
sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56
sync_filesystem+0x8f/0xc0 fs/sync.c:43
generic_shutdown_super+0x74/0x410 fs/super.c:474
kill_block_super+0x9b/0xf0 fs/super.c:1386
gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738
deactivate_locked_super+0x98/0x160 fs/super.c:332
deactivate_super+0xb1/0xd0 fs/super.c:363
cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3cdde8d567
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc20983508 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3cdde8d567
RDX: 00007ffc209835d9 RSI: 000000000000000a RDI: 00007ffc209835d0
RBP: 00007ffc209835d0 R08: 00000000ffffffff R09: 00007ffc209833a0
R10: 0000555555d918b3 R11: 0000000000000246 R12: 00007f3cddee6b24
R13: 00007ffc20984690 R14: 0000555555d91810 R15: 00007ffc209846d0
error: -5, qi-i_inode.i_ino: 2340, num_qd: 1, do_sync
gfs2: fsid=syz:syz.0: fatal: filesystem consistency error
inode = 11 2340
function = gfs2_dinode_in, file = fs/gfs2/glops.c, line = 460