================================================================== 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 mapping_unevictable include/linux/pagemap.h:254 [inline] BUG: KASAN: use-after-free in folio_evictable mm/internal.h:157 [inline] BUG: KASAN: use-after-free in lru_add_fn+0x204/0xda0 mm/swap.c:202 Read of size 8 at addr ffff0000dfda7e78 by task kworker/1:16/4552 CPU: 1 PID: 4552 Comm: kworker/1:16 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: mm_percpu_wq lru_add_drain_per_cpu Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 print_address_description+0x88/0x218 mm/kasan/report.c:316 print_report+0x50/0x68 mm/kasan/report.c:420 kasan_report+0xa8/0xfc mm/kasan/report.c:524 __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] mapping_unevictable include/linux/pagemap.h:254 [inline] folio_evictable mm/internal.h:157 [inline] lru_add_fn+0x204/0xda0 mm/swap.c:202 folio_batch_move_lru+0x290/0x4cc mm/swap.c:238 lru_add_drain_cpu+0xc4/0x4f4 mm/swap.c:661 lru_add_and_bh_lrus_drain mm/swap.c:779 [inline] lru_add_drain_per_cpu+0x8c/0x16c mm/swap.c:800 process_one_work+0x7e4/0x13bc kernel/workqueue.c:2292 process_scheduled_works kernel/workqueue.c:2355 [inline] worker_thread+0xb5c/0xfe8 kernel/workqueue.c:2444 kthread+0x254/0x2e0 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 Allocated by task 4628: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x70/0x88 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x74/0x430 mm/slab.h:742 slab_alloc_node mm/slub.c:3366 [inline] slab_alloc mm/slub.c:3374 [inline] __kmem_cache_alloc_lru mm/slub.c:3381 [inline] kmem_cache_alloc+0x234/0x310 mm/slub.c:3390 gfs2_glock_get+0x218/0xcb8 fs/gfs2/glock.c:1207 gfs2_inode_lookup+0x1f0/0xafc fs/gfs2/inode.c:135 gfs2_dir_search+0x14c/0x210 fs/gfs2/dir.c:1665 gfs2_lookupi+0x3dc/0x5c0 fs/gfs2/inode.c:323 gfs2_jindex_hold fs/gfs2/ops_fstype.c:610 [inline] init_journal+0x4b8/0x1e8c fs/gfs2/ops_fstype.c:754 init_inodes+0xe0/0x2e0 fs/gfs2/ops_fstype.c:890 gfs2_fill_super+0x1238/0x1a28 fs/gfs2/ops_fstype.c:1247 get_tree_bdev+0x35c/0x54c fs/super.c:1377 gfs2_get_tree+0x58/0x1b8 fs/gfs2/ops_fstype.c:1328 vfs_get_tree+0x90/0x278 fs/super.c:1584 do_new_mount+0x228/0x818 fs/namespace.c:3104 path_mount+0x5ac/0xe6c fs/namespace.c:3462 do_mount fs/namespace.c:3475 [inline] __do_sys_mount fs/namespace.c:3683 [inline] __se_sys_mount fs/namespace.c:3660 [inline] __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3660 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c 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:589 Freed by task 15: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:53 kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516 ____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:237 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:245 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1735 [inline] slab_free_freelist_hook+0x16c/0x1e8 mm/slub.c:1761 slab_free mm/slub.c:3694 [inline] kmem_cache_free+0x118/0x318 mm/slub.c:3716 gfs2_glock_dealloc+0xc0/0xd4 fs/gfs2/glock.c:-1 rcu_do_batch kernel/rcu/tree.c:2297 [inline] rcu_core+0x848/0x18e8 kernel/rcu/tree.c:2557 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2574 handle_softirqs+0x318/0xc90 kernel/softirq.c:596 run_ksoftirqd+0x7c/0x2ac kernel/softirq.c:968 smpboot_thread_fn+0x4e8/0x960 kernel/smpboot.c:164 kthread+0x254/0x2e0 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 call_rcu+0x104/0x958 kernel/rcu/tree.c:2849 __gfs2_glock_free+0x908/0xba0 fs/gfs2/glock.c:176 gfs2_glock_free+0x44/0xd0 fs/gfs2/glock.c:182 __gfs2_glock_put+0x264/0x52c fs/gfs2/glock.c:319 gfs2_glock_put+0x48/0x58 fs/gfs2/glock.c:341 gfs2_glock_put_eventually fs/gfs2/super.c:1258 [inline] gfs2_evict_inode+0xb90/0xe5c fs/gfs2/super.c:1535 evict+0x3d8/0x81c fs/inode.c:703 iput_final fs/inode.c:1832 [inline] iput+0x728/0x7e8 fs/inode.c:1858 gfs2_jindex_free+0x320/0x3d4 fs/gfs2/super.c:79 init_journal+0x7b4/0x1e8c fs/gfs2/ops_fstype.c:872 init_inodes+0xe0/0x2e0 fs/gfs2/ops_fstype.c:890 gfs2_fill_super+0x1238/0x1a28 fs/gfs2/ops_fstype.c:1247 get_tree_bdev+0x35c/0x54c fs/super.c:1377 gfs2_get_tree+0x58/0x1b8 fs/gfs2/ops_fstype.c:1328 vfs_get_tree+0x90/0x278 fs/super.c:1584 do_new_mount+0x228/0x818 fs/namespace.c:3104 path_mount+0x5ac/0xe6c fs/namespace.c:3462 do_mount fs/namespace.c:3475 [inline] __do_sys_mount fs/namespace.c:3683 [inline] __se_sys_mount fs/namespace.c:3660 [inline] __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3660 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c 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:589 Second to last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:46 __kasan_record_aux_stack+0xc0/0xdc mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 insert_work+0x64/0x37c kernel/workqueue.c:1361 __queue_work+0xd00/0x1280 kernel/workqueue.c:1520 __queue_delayed_work kernel/workqueue.c:1668 [inline] queue_delayed_work_on+0x208/0x30c kernel/workqueue.c:1704 queue_delayed_work include/linux/workqueue.h:530 [inline] __gfs2_glock_queue_work fs/gfs2/glock.c:285 [inline] gfs2_glock_queue_work fs/gfs2/glock.c:299 [inline] do_xmote+0x670/0x112c fs/gfs2/glock.c:898 run_queue+0x3b8/0x67c fs/gfs2/glock.c:932 glock_work_func+0x200/0x420 fs/gfs2/glock.c:1116 process_one_work+0x7e4/0x13bc kernel/workqueue.c:2292 worker_thread+0x8cc/0xfe8 kernel/workqueue.c:2439 kthread+0x254/0x2e0 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 The buggy address belongs to the object at ffff0000dfda7a18 which belongs to the cache gfs2_glock(aspace) of size 1224 The buggy address is located 1120 bytes inside of 1224-byte region [ffff0000dfda7a18, ffff0000dfda7ee0) The buggy address belongs to the physical page: page:0000000078adb5ad refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11fda4 head:0000000078adb5ad order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c4d14000 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dfda7d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000dfda7d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000dfda7e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000dfda7e80: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff0000dfda7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================