[v5.15] KASAN: use-after-free Read in qd_unlock

0 views
Skip to first unread message

syzbot

unread,
Jun 24, 2024, 8:41:21 PM6/24/24
Hello,

syzbot found the following issue on:

HEAD commit: 4878aadf2d15 Linux 5.15.161
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=129aaaea980000
kernel config: https://syzkaller.appspot.com/x/.config?x=875d98826c53bf16
dashboard link: https://syzkaller.appspot.com/bug?extid=edea969b2d7e2438f7f1
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/f227a150ea92/disk-4878aadf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6cfc50bf8b4e/vmlinux-4878aadf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/23f7adc3c761/bzImage-4878aadf.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

R13: 00007fc3c9e0d6c6 R14: 00007fc3c9dfedf8 R15: 0000000000000000
</TASK>
==================================================================
BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline]
BUG: KASAN: use-after-free in test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
BUG: KASAN: use-after-free in qd_unlock+0x30/0x2d0 fs/gfs2/quota.c:497
Read of size 8 at addr ffff8880735d1090 by task syz-executor.3/3530

CPU: 1 PID: 3530 Comm: syz-executor.3 Not tainted 5.15.161-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
print_address_description+0x63/0x3b0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189
instrument_atomic_read include/linux/instrumented.h:71 [inline]
test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
qd_unlock+0x30/0x2d0 fs/gfs2/quota.c:497
gfs2_quota_sync+0x6e3/0x810 fs/gfs2/quota.c:1336
gfs2_sync_fs+0x49/0xb0 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x220 fs/sync.c:56
generic_shutdown_super+0x6e/0x2c0 fs/super.c:448
kill_block_super+0x7a/0xe0 fs/super.c:1414
deactivate_locked_super+0xa0/0x110 fs/super.c:335
cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
task_work_run+0x129/0x1a0 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fc3c9db23d7
Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 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 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd09aa4148 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fc3c9db23d7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd09aa4200
RBP: 00007ffd09aa4200 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd09aa52b0
R13: 00007fc3c9e0d6c6 R14: 00007fc3c9dfedf8 R15: 0000000000000000
</TASK>

Allocated by task 3671:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
__kasan_slab_alloc+0x8e/0xc0 mm/kasan/common.c:467
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3220 [inline]
slab_alloc mm/slub.c:3228 [inline]
kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233
kmem_cache_zalloc include/linux/slab.h:711 [inline]
qd_alloc+0x51/0x250 fs/gfs2/quota.c:216
gfs2_quota_init+0x7ea/0x1110 fs/gfs2/quota.c:1426
gfs2_make_fs_rw+0x436/0x5b0 fs/gfs2/super.c:155
gfs2_fill_super+0x23e8/0x2750 fs/gfs2/ops_fstype.c:1276
get_tree_bdev+0x3fe/0x620 fs/super.c:1312
gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1332
vfs_get_tree+0x88/0x270 fs/super.c:1517
do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
do_mount fs/namespace.c:3348 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

Freed by task 20:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1705 [inline]
slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
slab_free mm/slub.c:3499 [inline]
kmem_cache_free+0x91/0x1f0 mm/slub.c:3515
rcu_do_batch kernel/rcu/tree.c:2523 [inline]
rcu_core+0xa15/0x1650 kernel/rcu/tree.c:2763
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
run_ksoftirqd+0xc6/0x120 kernel/softirq.c:925
smpboot_thread_fn+0x51b/0x9d0 kernel/smpboot.c:164
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300

Last potentially related work creation:
kasan_save_stack+0x36/0x60 mm/kasan/common.c:38
kasan_record_aux_stack+0xba/0x100 mm/kasan/generic.c:348
__call_rcu kernel/rcu/tree.c:3007 [inline]
call_rcu+0x1c4/0xa70 kernel/rcu/tree.c:3087
gfs2_quota_cleanup+0x43e/0x6a0 fs/gfs2/quota.c:1490
gfs2_make_fs_ro+0x23b/0x5f0 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x5fb/0x14e0 fs/gfs2/util.c:343
gfs2_meta_check_ii+0x6e/0x80 fs/gfs2/util.c:498
gfs2_metatype_check_i fs/gfs2/util.h:126 [inline]
gfs2_rgrp_bh_get+0x35e/0x1300 fs/gfs2/rgrp.c:1223
do_promote+0x74b/0xb10 fs/gfs2/glock.c:507
finish_xmote+0x50d/0xb60 fs/gfs2/glock.c:678
do_xmote+0x775/0x10b0 fs/gfs2/glock.c:824
gfs2_glock_nq+0xc32/0x15e0 fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0x108a/0x3960 fs/gfs2/rgrp.c:2109
do_sync+0x646/0xc60 fs/gfs2/quota.c:951
gfs2_quota_sync+0x379/0x810 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x49/0xb0 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x220 fs/sync.c:56
generic_shutdown_super+0x6e/0x2c0 fs/super.c:448
kill_block_super+0x7a/0xe0 fs/super.c:1414
deactivate_locked_super+0xa0/0x110 fs/super.c:335
cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
task_work_run+0x129/0x1a0 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0

The buggy address belongs to the object at ffff8880735d1000
which belongs to the cache gfs2_quotad of size 272
The buggy address is located 144 bytes inside of
272-byte region [ffff8880735d1000, ffff8880735d1110)
The buggy address belongs to the page:
page:ffffea0001cd7440 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x735d1
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 0000000000000000 dead000000000122 ffff8881465d2140
raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x112c50(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 3671, ts 69207562934, free_ts 64636945442
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
__alloc_pages+0x272/0x700 mm/page_alloc.c:5423
alloc_slab_page mm/slub.c:1775 [inline]
allocate_slab mm/slub.c:1912 [inline]
new_slab+0xbb/0x4b0 mm/slub.c:1975
___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
__slab_alloc mm/slub.c:3095 [inline]
slab_alloc_node mm/slub.c:3186 [inline]
slab_alloc mm/slub.c:3228 [inline]
kmem_cache_alloc+0x18e/0x280 mm/slub.c:3233
kmem_cache_zalloc include/linux/slab.h:711 [inline]
qd_alloc+0x51/0x250 fs/gfs2/quota.c:216
gfs2_quota_init+0x7ea/0x1110 fs/gfs2/quota.c:1426
gfs2_make_fs_rw+0x436/0x5b0 fs/gfs2/super.c:155
gfs2_fill_super+0x23e8/0x2750 fs/gfs2/ops_fstype.c:1276
get_tree_bdev+0x3fe/0x620 fs/super.c:1312
gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1332
vfs_get_tree+0x88/0x270 fs/super.c:1517
do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
do_mount fs/namespace.c:3348 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317
free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396
free_slab mm/slub.c:2015 [inline]
discard_slab mm/slub.c:2021 [inline]
__unfreeze_partials+0x1b7/0x210 mm/slub.c:2507
put_cpu_partial+0x132/0x1a0 mm/slub.c:2587
do_slab_free mm/slub.c:3487 [inline]
___cache_free+0xe3/0x100 mm/slub.c:3506
qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3220 [inline]
slab_alloc mm/slub.c:3228 [inline]
kmem_cache_alloc_trace+0xfb/0x290 mm/slub.c:3245
kmalloc include/linux/slab.h:591 [inline]
kzalloc include/linux/slab.h:721 [inline]
kernfs_fop_open+0x3b5/0xbc0 fs/kernfs/file.c:628
do_dentry_open+0x807/0xfb0 fs/open.c:826
do_open fs/namei.c:3608 [inline]
path_openat+0x2705/0x2f20 fs/namei.c:3742
do_filp_open+0x21c/0x460 fs/namei.c:3769
do_sys_openat2+0x13b/0x500 fs/open.c:1253
do_sys_open fs/open.c:1269 [inline]
__do_sys_openat fs/open.c:1285 [inline]
__se_sys_openat fs/open.c:1280 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1280

Memory state around the buggy address:
ffff8880735d0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8880735d1000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8880735d1080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb



---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at [email protected].

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jun 24, 2024, 9:01:22 PM6/24/24
Hello,

syzbot found the following issue on:

HEAD commit: eb44d83053d6 Linux 6.1.94
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13cfc341980000
kernel config: https://syzkaller.appspot.com/x/.config?x=485614fd53648699
dashboard link: https://syzkaller.appspot.com/bug?extid=34d903364cf7e2fd0bce
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/afed7237b37c/disk-eb44d830.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/b9b899645df5/vmlinux-eb44d830.xz
kernel image: https://storage.googleapis.com/syzbot-assets/83347623a9ea/Image-eb44d830.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
==================================================================
BUG: KASAN: use-after-free in generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline]
BUG: KASAN: use-after-free in qd_unlock+0x44/0x2b8 fs/gfs2/quota.c:501
Read of size 8 at addr ffff0000dec17330 by task syz-executor.1/6484

CPU: 1 PID: 6484 Comm: syz-executor.1 Not tainted 6.1.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call trace:
dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:284 [inline]
print_report+0x174/0x4c0 mm/kasan/report.c:395
kasan_report+0xd4/0x130 mm/kasan/report.c:495
__asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:351
generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline]
qd_unlock+0x44/0x2b8 fs/gfs2/quota.c:501
gfs2_quota_sync+0x3c0/0x534 fs/gfs2/quota.c:1336
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:648
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1459
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Allocated by task 7007:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:52
kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505
__kasan_slab_alloc+0x74/0x8c mm/kasan/common.c:328
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x74/0x458 mm/slab.h:737
slab_alloc_node mm/slub.c:3398 [inline]
slab_alloc mm/slub.c:3406 [inline]
__kmem_cache_alloc_lru mm/slub.c:3413 [inline]
kmem_cache_alloc+0x230/0x37c mm/slub.c:3422
kmem_cache_zalloc include/linux/slab.h:682 [inline]
qd_alloc+0x64/0x23c fs/gfs2/quota.c:216
gfs2_quota_init+0x6a0/0xee4 fs/gfs2/quota.c:1426
gfs2_make_fs_rw+0x360/0x4b0 fs/gfs2/super.c:155
gfs2_fill_super+0x1c3c/0x1f9c fs/gfs2/ops_fstype.c:1274
get_tree_bdev+0x360/0x54c fs/super.c:1355
gfs2_get_tree+0x54/0x1b4 fs/gfs2/ops_fstype.c:1330
vfs_get_tree+0x90/0x274 fs/super.c:1562
do_new_mount+0x278/0x8fc fs/namespace.c:3051
path_mount+0x590/0xe5c fs/namespace.c:3381
do_mount fs/namespace.c:3394 [inline]
__do_sys_mount fs/namespace.c:3602 [inline]
__se_sys_mount fs/namespace.c:3579 [inline]
__arm64_sys_mount+0x45c/0x594 fs/namespace.c:3579
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Freed by task 6484:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:52
kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516
____kasan_slab_free+0x144/0x1c0 mm/kasan/common.c:236
__kasan_slab_free+0x18/0x28 mm/kasan/common.c:244
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1724 [inline]
slab_free_freelist_hook mm/slub.c:1750 [inline]
slab_free mm/slub.c:3661 [inline]
kmem_cache_free+0x2f0/0x588 mm/slub.c:3683
gfs2_qd_dealloc+0x54/0x64 fs/gfs2/quota.c:109
rcu_do_batch kernel/rcu/tree.c:2296 [inline]
rcu_core+0x878/0x1c24 kernel/rcu/tree.c:2556
rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2573
handle_softirqs+0x318/0xd58 kernel/softirq.c:571
__do_softirq+0x14/0x20 kernel/softirq.c:605

Last potentially related work creation:
kasan_save_stack+0x40/0x70 mm/kasan/common.c:45
__kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:486
kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496
call_rcu+0xfc/0xa40 kernel/rcu/tree.c:2844
gfs2_quota_cleanup+0x3f8/0x664 fs/gfs2/quota.c:1490
gfs2_make_fs_ro+0x484/0x57c fs/gfs2/super.c:558
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4dc/0x1310 fs/gfs2/util.c:351
gfs2_meta_check_ii+0x80/0x9c fs/gfs2/util.c:508
gfs2_metatype_check_i fs/gfs2/util.h:126 [inline]
gfs2_rgrp_go_instantiate+0x2f8/0xecc fs/gfs2/rgrp.c:1223
gfs2_instantiate+0x17c/0x2c8 fs/gfs2/glock.c:520
gfs2_glock_holder_ready fs/gfs2/glock.c:1330 [inline]
gfs2_glock_wait+0x1b8/0x298 fs/gfs2/glock.c:1350
gfs2_glock_nq+0x940/0x13d8 fs/gfs2/glock.c:1600
gfs2_glock_nq_init fs/gfs2/glock.h:264 [inline]
gfs2_inplace_reserve+0xc54/0x2ca0 fs/gfs2/rgrp.c:2095
do_sync+0x5e8/0xb48 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e4/0x534 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:648
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1459
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

The buggy address belongs to the object at ffff0000dec172a0
which belongs to the cache gfs2_quotad of size 272
The buggy address is located 144 bytes inside of
272-byte region [ffff0000dec172a0, ffff0000dec173b0)

The buggy address belongs to the physical page:
page:00000000bf03f772 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000dec17000 pfn:0x11ec17
flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000000200 0000000000000000 dead000000000122 ffff0000c4af3380
raw: ffff0000dec17000 00000000800c000b 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff0000dec17200: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff0000dec17280: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb
>ffff0000dec17300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff0000dec17380: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc
ffff0000dec17400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

syzbot

unread,
Jul 12, 2024, 4:35:26 PM7/12/24
syzbot has found a reproducer for the following issue on:

HEAD commit: f45bea23c39c Linux 5.15.162
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14fa9585980000
kernel config: https://syzkaller.appspot.com/x/.config?x=f702ec9668213f54
dashboard link: https://syzkaller.appspot.com/bug?extid=edea969b2d7e2438f7f1
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=130d66a5980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1067e19e980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9fad2b1de641/disk-f45bea23.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/96419fe4a867/vmlinux-f45bea23.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b6c1a2e443c6/Image-f45bea23.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/7af185c08407/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
==================================================================
BUG: KASAN: use-after-free in arch_test_bit include/asm-generic/bitops/non-atomic.h:118 [inline]
BUG: KASAN: use-after-free in qd_unlock+0x44/0x2c8 fs/gfs2/quota.c:497
Read of size 8 at addr ffff0000e2711b10 by task syz-executor119/3965

CPU: 0 PID: 3965 Comm: syz-executor119 Not tainted 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
print_address_description+0x7c/0x3f0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0x174/0x1e4 mm/kasan/report.c:451
__asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309
arch_test_bit include/asm-generic/bitops/non-atomic.h:118 [inline]
qd_unlock+0x44/0x2c8 fs/gfs2/quota.c:497
gfs2_quota_sync+0x3c4/0x548 fs/gfs2/quota.c:1336
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Allocated by task 4202:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
__kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519
slab_alloc_node mm/slub.c:3220 [inline]
slab_alloc mm/slub.c:3228 [inline]
kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233
kmem_cache_zalloc include/linux/slab.h:711 [inline]
qd_alloc+0x64/0x23c fs/gfs2/quota.c:216
gfs2_quota_init+0x68c/0xebc fs/gfs2/quota.c:1426
gfs2_make_fs_rw+0x364/0x4c4 fs/gfs2/super.c:155
gfs2_fill_super+0x1c74/0x2010 fs/gfs2/ops_fstype.c:1276
get_tree_bdev+0x360/0x54c fs/super.c:1312
gfs2_get_tree+0x54/0x1b4 fs/gfs2/ops_fstype.c:1332
vfs_get_tree+0x90/0x274 fs/super.c:1517
do_new_mount+0x278/0x8fc fs/namespace.c:3005
path_mount+0x594/0x101c fs/namespace.c:3335
do_mount fs/namespace.c:3348 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount fs/namespace.c:3533 [inline]
__arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Freed by task 14:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4c/0x84 mm/kasan/common.c:46
kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360
____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366
__kasan_slab_free+0x18/0x28 mm/kasan/common.c:374
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1705 [inline]
slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731
slab_free mm/slub.c:3499 [inline]
kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515
gfs2_qd_dealloc+0x54/0x64 fs/gfs2/quota.c:109
rcu_do_batch kernel/rcu/tree.c:2523 [inline]
rcu_core+0x830/0x1b34 kernel/rcu/tree.c:2763
rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2776
handle_softirqs+0x384/0xdbc kernel/softirq.c:558
run_ksoftirqd+0x6c/0x29c kernel/softirq.c:925
smpboot_thread_fn+0x4b0/0x920 kernel/smpboot.c:164
kthread+0x37c/0x45c kernel/kthread.c:334
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870

Last potentially related work creation:
kasan_save_stack+0x38/0x68 mm/kasan/common.c:38
kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348
__call_rcu kernel/rcu/tree.c:3007 [inline]
call_rcu+0x118/0xb40 kernel/rcu/tree.c:3087
gfs2_quota_cleanup+0x400/0x67c fs/gfs2/quota.c:1490
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Second to last potentially related work creation:
kasan_save_stack+0x38/0x68 mm/kasan/common.c:38
kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348
__call_rcu kernel/rcu/tree.c:3007 [inline]
call_rcu+0x118/0xb40 kernel/rcu/tree.c:3087
gfs2_quota_cleanup+0x400/0x67c fs/gfs2/quota.c:1490
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

The buggy address belongs to the object at ffff0000e2711a80
which belongs to the cache gfs2_quotad of size 272
The buggy address is located 144 bytes inside of
272-byte region [ffff0000e2711a80, ffff0000e2711b90)
The buggy address belongs to the page:
page:00000000b93a2c26 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff0000e2711930 pfn:0x122711
flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000000200 fffffc0003897f40 0000000300000003 ffff0000c690e000
raw: ffff0000e2711930 00000000800c000a 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff0000e2711a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff0000e2711a80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff0000e2711b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff0000e2711b80: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb
ffff0000e2711c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 1 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 0 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 1 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 0 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 0 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 0 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 1 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 1 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 0 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 1 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 0 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
gfs2: fsid=syz:syz.0: fatal: invalid metadata block
bh = 2080 (type: exp=2, found=0)
function = gfs2_rgrp_bh_get, file = fs/gfs2/rgrp.c, line = 1224
gfs2: fsid=syz:syz.0: about to withdraw this file system
gfs2: fsid=syz:syz.0: warning: assertion "!qd->qd_change" failed at function = gfs2_quota_cleanup, file = fs/gfs2/quota.c, line = 1485
CPU: 1 PID: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_assert_warn_i+0x16c/0x278 fs/gfs2/util.c:416
gfs2_quota_cleanup+0x464/0x67c fs/gfs2/quota.c:1485
gfs2_make_fs_ro+0x1f0/0x554 fs/gfs2/super.c:557
signal_our_withdraw fs/gfs2/util.c:166 [inline]
gfs2_withdraw+0x4ec/0x12a4 fs/gfs2/util.c:343
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:1329
gfs2_sync_fs+0x4c/0xc4 fs/gfs2/super.c:647
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x29c fs/super.c:448
kill_block_super+0x70/0xdc fs/super.c:1414
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xb8/0x13c fs/super.c:335
deactivate_super+0x108/0x128 fs/super.c:366
cleanup_mnt+0x3c0/0x474 fs/namespace.c:1143
__cleanup_mnt+0x20/0x30 fs/namespace.c:1150
task_work_run+0x130/0x1e4 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
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: 3965 Comm: syz-executor119 Tainted: G B 5.15.162-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
gfs2_withdraw+0xeac/0x12a4 fs/gfs2/util.c:355
gfs2_metatype_check_ii+0x8c/0xac fs/gfs2/util.c:520
gfs2_metatype_check_i fs/gfs2/util.h:129 [inline]
gfs2_rgrp_bh_get+0x314/0xf00 fs/gfs2/rgrp.c:1223
gfs2_rgrp_go_lock+0xe4/0x134 fs/gfs2/rgrp.c:1300
do_promote+0x680/0xa80 fs/gfs2/glock.c:507
finish_xmote+0x478/0xbb4 fs/gfs2/glock.c:678
do_xmote+0x6e4/0x1054 fs/gfs2/glock.c:824
run_queue+0x3f8/0x6bc fs/gfs2/glock.c:872
gfs2_glock_nq+0xa60/0x144c fs/gfs2/glock.c:1534
gfs2_glock_nq_init fs/gfs2/glock.h:246 [inline]
gfs2_inplace_reserve+0xb18/0x3098 fs/gfs2/rgrp.c:2109
do_sync+0x57c/0xaf8 fs/gfs2/quota.c:951
gfs2_quota_sync+0x2e8/0x548 fs/gfs2/quota.c:13

---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
Oct 11, 2024, 1:13:17 AM10/11/24
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.

syzbot

unread,
May 13, 2025, 5:16:04 PMMay 13
syzbot suspects this issue could be fixed by backporting the following commit:

commit f66af88e33212b57ea86da2c5d66c0d9d5c46344
git tree: upstream
Author: Andreas Gruenbacher <[email protected]>
Date: Mon Aug 28 14:39:20 2023 +0000

gfs2: Stop using gfs2_make_fs_ro for withdraw

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15ea4af4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f2c956168ff5b89
dashboard link: https://syzkaller.appspot.com/bug?extid=edea969b2d7e2438f7f1
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17e58518580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11085ddf980000


Please keep in mind that other backports might be required as well.

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages