================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 Read of size 8 at addr ffff8880259d64c0 by task kworker/1:1/30 CPU: 1 UID: 0 PID: 30 Comm: kworker/1:1 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: events gfs2_withdraw_func Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __list_del_entry_valid_or_report+0x92/0x190 lib/list_debug.c:62 __list_del_entry_valid include/linux/list.h:132 [inline] __list_del_entry include/linux/list.h:253 [inline] list_del_init include/linux/list.h:325 [inline] gfs2_remove_from_ail fs/gfs2/log.c:79 [inline] gfs2_ail_empty_tr fs/gfs2/log.c:287 [inline] gfs2_ail_drain+0x44c/0xb20 fs/gfs2/log.c:947 do_withdraw+0x10d/0x2f0 fs/gfs2/util.c:126 gfs2_withdraw_func+0x2ef/0x440 fs/gfs2/util.c:-1 process_one_work kernel/workqueue.c:3375 [inline] process_scheduled_works+0xc4e/0x1630 kernel/workqueue.c:3458 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3539 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 10924: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_noprof+0x2b5/0x600 mm/slub.c:5010 gfs2_glock_get+0x276/0xf20 fs/gfs2/glock.c:1074 gfs2_create_inode+0xdc6/0x1710 fs/gfs2/inode.c:835 gfs2_atomic_open+0x116/0x200 fs/gfs2/inode.c:1403 atomic_open+0x199/0x550 fs/namei.c:4367 lookup_open+0x925/0x1a40 fs/namei.c:4522 open_last_lookups fs/namei.c:4767 [inline] path_openat+0x677/0x1d60 fs/namei.c:4997 do_file_open+0x23e/0x4a0 fs/namei.c:5029 do_sys_openat2+0x115/0x200 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_open fs/open.c:1431 [inline] __se_sys_open fs/open.c:1427 [inline] __x64_sys_open+0x11e/0x150 fs/open.c:1427 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x510 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 13: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6499 [inline] kmem_cache_free+0x182/0x650 mm/slub.c:6626 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x91c/0x1250 kernel/rcu/tree.c:2919 handle_softirqs+0x225/0x840 kernel/softirq.c:622 do_softirq+0x76/0xd0 kernel/softirq.c:523 __local_bh_enable_ip+0xf8/0x130 kernel/softirq.c:450 local_bh_enable include/linux/bottom_half.h:33 [inline] __alloc_skb+0x1ad/0x7a0 net/core/skbuff.c:699 alloc_skb include/linux/skbuff.h:1384 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:819 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:876 [inline] nsim_dev_trap_report_work+0x25f/0xb40 drivers/net/netdevsim/dev.c:922 process_one_work kernel/workqueue.c:3375 [inline] process_scheduled_works+0xc4e/0x1630 kernel/workqueue.c:3458 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3539 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3181 [inline] call_rcu+0xee/0x8b0 kernel/rcu/tree.c:3301 gfs2_glock_free+0x3c/0xa0 fs/gfs2/glock.c:150 process_one_work kernel/workqueue.c:3375 [inline] process_scheduled_works+0xc4e/0x1630 kernel/workqueue.c:3458 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3539 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Second to last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 insert_work+0x3d/0x330 kernel/workqueue.c:2260 __queue_work+0xd05/0x10d0 kernel/workqueue.c:2436 queue_delayed_work_on+0x11a/0x1e0 kernel/workqueue.c:2657 queue_delayed_work include/linux/workqueue.h:714 [inline] gfs2_glock_queue_work fs/gfs2/glock.c:198 [inline] do_xmote+0x539/0x770 fs/gfs2/glock.c:718 glock_work_func+0x30d/0x610 fs/gfs2/glock.c:987 process_one_work kernel/workqueue.c:3375 [inline] process_scheduled_works+0xc4e/0x1630 kernel/workqueue.c:3458 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3539 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff8880259d63a8 which belongs to the cache gfs2_glock(aspace) of size 1176 The buggy address is located 280 bytes inside of freed 1176-byte region [ffff8880259d63a8, ffff8880259d6840) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880259d5e90 pfn:0x259d4 head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff88801ef23c80 ffff88801ef20dc8 ffffea0001555710 raw: ffff8880259d5e90 00000002000c000b 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff88801ef23c80 ffff88801ef20dc8 ffffea0001555710 head: ffff8880259d5e90 00000002000c000b 00000000f5000000 0000000000000000 head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9767, tgid 9766 (syz.1.703), ts 637577431907 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2205/0x2280 mm/page_alloc.c:4001 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5498 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x2c4/0x6b0 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] kmem_cache_alloc_noprof+0x395/0x600 mm/slub.c:5010 gfs2_glock_get+0x276/0xf20 fs/gfs2/glock.c:1074 gfs2_inode_lookup+0x2a3/0xc30 fs/gfs2/inode.c:149 gfs2_dir_search+0x168/0x220 fs/gfs2/dir.c:1663 gfs2_lookupi+0x45b/0x640 fs/gfs2/inode.c:354 gfs2_lookup_meta+0xaf/0x180 fs/gfs2/inode.c:294 init_statfs fs/gfs2/ops_fstype.c:642 [inline] init_journal+0x12d4/0x2330 fs/gfs2/ops_fstype.c:781 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:846 gfs2_fill_super+0x1959/0x20d0 fs/gfs2/ops_fstype.c:1252 get_tree_bdev_flags+0x430/0x4f0 fs/super.c:1887 page last free pid 5637 tgid 5637 ts 560014488452 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0xc8f/0xd80 mm/page_alloc.c:3020 __slab_free+0x274/0x2c0 mm/slub.c:5815 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] kmem_cache_alloc_noprof+0x2b5/0x600 mm/slub.c:5010 alloc_filename fs/namei.c:147 [inline] do_getname+0x2e/0x250 fs/namei.c:187 getname include/linux/fs.h:2558 [inline] getname_maybe_null include/linux/fs.h:2565 [inline] class_filename_maybe_null_constructor include/linux/fs.h:2589 [inline] vfs_fstatat+0x45/0x170 fs/stat.c:368 __do_sys_newfstatat fs/stat.c:538 [inline] __se_sys_newfstatat fs/stat.c:532 [inline] __x64_sys_newfstatat+0x151/0x200 fs/stat.c:532 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x510 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff8880259d6380: fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb ffff8880259d6400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880259d6480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880259d6500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880259d6580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================