loop0: detected capacity change from 0 to 32768 loop0: detected capacity change from 0 to 32768 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS (format 1801)... gfs2: fsid=syz:syz.0: journal 0 mapped with 3 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount gfs2: fsid=syz:syz.0: found 1 quota changes gfs2: fsid=syz:syz.0: Error 10 writing to journal, jid=0 ================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0xb6/0x190 lib/list_debug.c:65 Read of size 8 at addr ffff8880446e2080 by task syz.0.0/5324 CPU: 0 UID: 0 PID: 5324 Comm: syz.0.0 Not tainted 6.14.0-syzkaller-11270-g08733088b566 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x16e/0x5b0 mm/kasan/report.c:521 kasan_report+0x143/0x180 mm/kasan/report.c:634 __list_del_entry_valid_or_report+0xb6/0x190 lib/list_debug.c:65 __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del_init include/linux/list.h:287 [inline] list_lru_del+0x9a/0x200 mm/list_lru.c:206 gfs2_quota_cleanup+0x202/0x710 fs/gfs2/quota.c:1532 gfs2_make_fs_ro+0x2a7/0x340 fs/gfs2/super.c:578 gfs2_put_super+0x233/0x940 fs/gfs2/super.c:610 generic_shutdown_super+0x139/0x2d0 fs/super.c:642 kill_block_super+0x44/0x90 fs/super.c:1710 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435 task_work_run+0x251/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa11/0x2950 kernel/exit.c:954 do_group_exit+0x207/0x2c0 kernel/exit.c:1103 get_signal+0x1696/0x1730 kernel/signal.c:3035 arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa34658d169 Code: Unable to access opcode bytes at 0x7fa34658d13f. RSP: 002b:00007fa34734b0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00007fa3467a5fa8 RCX: 00007fa34658d169 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007fa3467a5fac RBP: 00007fa3467a5fa0 R08: 7fffffffffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa3467a5fac R13: 0000000000000000 R14: 00007ffdefdc3580 R15: 00007ffdefdc3668 Allocated by task 5324: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4138 [inline] slab_alloc_node mm/slub.c:4187 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4194 qd_alloc+0x51/0x250 fs/gfs2/quota.c:234 gfs2_quota_init+0x827/0x1430 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x44a/0x5d0 fs/gfs2/super.c:159 gfs2_fill_super+0x2529/0x27b0 fs/gfs2/ops_fstype.c:1274 get_tree_bdev_flags+0x490/0x5c0 fs/super.c:1636 gfs2_get_tree+0x54/0x220 fs/gfs2/ops_fstype.c:1330 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3878 do_mount fs/namespace.c:4218 [inline] __do_sys_mount fs/namespace.c:4429 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4406 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 15: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x59/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2376 [inline] slab_free mm/slub.c:4633 [inline] kmem_cache_free+0x197/0x410 mm/slub.c:4735 gfs2_qd_dealloc+0x72/0xf0 fs/gfs2/quota.c:111 rcu_do_batch kernel/rcu/tree.c:2568 [inline] rcu_core+0xaac/0x17a0 kernel/rcu/tree.c:2824 handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:579 run_ksoftirqd+0xcf/0x130 kernel/softirq.c:968 smpboot_thread_fn+0x576/0xaa0 kernel/smpboot.c:164 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xbf/0xd0 mm/kasan/generic.c:548 __call_rcu_common kernel/rcu/tree.c:3082 [inline] call_rcu+0x172/0xad0 kernel/rcu/tree.c:3202 gfs2_quota_sync+0x422/0x4b0 fs/gfs2/quota.c:1361 gfs2_sync_fs+0x4d/0xc0 fs/gfs2/super.c:670 sync_filesystem+0xed/0x230 fs/sync.c:56 generic_shutdown_super+0x72/0x2d0 fs/super.c:621 kill_block_super+0x44/0x90 fs/super.c:1710 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x422/0x4c0 fs/namespace.c:1435 task_work_run+0x251/0x310 kernel/task_work.c:227 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa11/0x2950 kernel/exit.c:954 do_group_exit+0x207/0x2c0 kernel/exit.c:1103 get_signal+0x1696/0x1730 kernel/signal.c:3035 arch_do_signal_or_restart+0x98/0x840 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xce/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880446e2000 which belongs to the cache gfs2_quotad of size 272 The buggy address is located 128 bytes inside of freed 272-byte region [ffff8880446e2000, ffff8880446e2110) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x446e2 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff8880337a1b40 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800c000c 00000000f5000000 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 0x52c50(GFP_NOFS|__GFP_RECLAIMABLE|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5324, tgid 5323 (syz.0.0), ts 78387341565, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1585 prep_new_page mm/page_alloc.c:1593 [inline] get_page_from_freelist+0x3ac1/0x3c60 mm/page_alloc.c:3538 __alloc_frozen_pages_noprof+0x266/0x580 mm/page_alloc.c:4806 alloc_pages_mpol+0x339/0x690 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2446 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2610 new_slab mm/slub.c:2663 [inline] ___slab_alloc+0xc3b/0x1500 mm/slub.c:3849 __slab_alloc+0x58/0xa0 mm/slub.c:3939 __slab_alloc_node mm/slub.c:4014 [inline] slab_alloc_node mm/slub.c:4175 [inline] kmem_cache_alloc_noprof+0x270/0x390 mm/slub.c:4194 qd_alloc+0x51/0x250 fs/gfs2/quota.c:234 gfs2_quota_init+0x827/0x1430 fs/gfs2/quota.c:1448 gfs2_make_fs_rw+0x44a/0x5d0 fs/gfs2/super.c:159 gfs2_fill_super+0x2529/0x27b0 fs/gfs2/ops_fstype.c:1274 get_tree_bdev_flags+0x490/0x5c0 fs/super.c:1636 gfs2_get_tree+0x54/0x220 fs/gfs2/ops_fstype.c:1330 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3878 page_owner free stack trace missing Memory state around the buggy address: ffff8880446e1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880446e2000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880446e2080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880446e2100: fb fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ffff8880446e2180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================