==================================================================
BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x1b1/0x1d0 lib/list_debug.c:62
Read of size 8 at addr ffff8880544c3920 by task kworker/0:0/9
CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026
Workqueue: events gfs2_withdraw_func
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
__list_del_entry_valid_or_report+0x1b1/0x1d0 lib/list_debug.c:62
__list_del_entry_valid include/linux/list.h:140 [inline]
__list_del_entry include/linux/list.h:261 [inline]
list_del_init include/linux/list.h:333 [inline]
gfs2_remove_from_ail+0x138/0x340 fs/gfs2/log.c:79
gfs2_ail_empty_tr fs/gfs2/log.c:287 [inline]
gfs2_ail_drain+0x39c/0x6b0 fs/gfs2/log.c:954
do_withdraw+0xeb/0x300 fs/gfs2/util.c:126
gfs2_withdraw_func+0x349/0x3d0 fs/gfs2/util.c:236
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 20215:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:351 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377
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+0x269/0x6a0 mm/slub.c:5010
gfs2_glock_get+0x1e5/0x1260 fs/gfs2/glock.c:1074
gfs2_inode_lookup+0x2e0/0x920 fs/gfs2/inode.c:149
gfs2_lookup_root+0x57/0xe0 fs/gfs2/ops_fstype.c:428
init_sb+0xa17/0xfd0 fs/gfs2/ops_fstype.c:497
gfs2_fill_super+0x1acb/0x2d00 fs/gfs2/ops_fstype.c:1219
get_tree_bdev_flags+0x38c/0x620 fs/super.c:1883
gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1333
vfs_get_tree+0x92/0x320 fs/super.c:1943
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4566 [inline]
__se_sys_mount fs/namespace.c:4543 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4543
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 11471:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:264 [inline]
__kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2748 [inline]
slab_free mm/slub.c:6509 [inline]
kmem_cache_free+0x127/0x6c0 mm/slub.c:6636
gfs2_glock_dealloc+0xd0/0x160 fs/gfs2/glock.c:134
rcu_do_batch kernel/rcu/tree.c:2650 [inline]
rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
do_softirq kernel/softirq.c:546 [inline]
do_softirq+0xaf/0xf0 kernel/softirq.c:533
__local_bh_enable_ip+0xff/0x120 kernel/softirq.c:473
local_bh_enable include/linux/bottom_half.h:33 [inline]
__alloc_skb+0x5db/0x710 net/core/skbuff.c:699
alloc_skb include/linux/skbuff.h:1384 [inline]
nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:744 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:801 [inline]
nsim_dev_trap_report_work+0x2af/0xd20 drivers/net/netdevsim/dev.c:847
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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+0x30/0x50 mm/kasan/common.c:57
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556
__call_rcu_common.constprop.0+0xa5/0x9b0 kernel/rcu/tree.c:3181
gfs2_glock_free+0x35/0xa0 fs/gfs2/glock.c:150
glock_work_func+0x437/0x4d0 fs/gfs2/glock.c:1003
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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+0x30/0x50 mm/kasan/common.c:57
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556
insert_work+0x36/0x230 kernel/workqueue.c:2272
__queue_work+0xa60/0x1370 kernel/workqueue.c:2448
__queue_delayed_work+0x357/0x450 kernel/workqueue.c:2617
queue_delayed_work_on+0x180/0x1e0 kernel/workqueue.c:2669
queue_delayed_work include/linux/workqueue.h:715 [inline]
gfs2_glock_queue_work+0x75/0x120 fs/gfs2/glock.c:198
do_xmote+0x453/0x680 fs/gfs2/glock.c:718
run_queue+0x555/0x6a0 fs/gfs2/glock.c:757
glock_work_func+0x35b/0x4d0 fs/gfs2/glock.c:987
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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 ffff8880544c3808
which belongs to the cache gfs2_glock(aspace) of size 1176
The buggy address is located 280 bytes inside of
freed 1176-byte region [ffff8880544c3808, ffff8880544c3ca0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x544c0
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff888020bbf3c0 dead000000000100 dead000000000122
raw: 0000000000000000 00000002000c000c 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff888020bbf3c0 dead000000000100 dead000000000122
head: 0000000000000000 00000002000c000c 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 6443, tgid 6442 (syz.4.211), ts 140276298342
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x2e9/0x32e0 mm/page_alloc.c:5436
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab mm/slub.c:3462 [inline]
new_slab+0xa9/0x6e0 mm/slub.c:3513
refill_objects+0xe3/0x410 mm/slub.c:7418
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774
alloc_from_pcs mm/slub.c:4850 [inline]
slab_alloc_node mm/slub.c:4984 [inline]
kmem_cache_alloc_noprof+0x4bf/0x6a0 mm/slub.c:5010
gfs2_glock_get+0x1e5/0x1260 fs/gfs2/glock.c:1074
gfs2_create_inode+0x1e72/0x3530 fs/gfs2/inode.c:835
gfs2_create+0x34/0x40 fs/gfs2/inode.c:973
vfs_create+0x2fb/0x6c0 fs/namei.c:4197
filename_mknodat+0x2de/0x7f0 fs/namei.c:5329
__do_sys_mknod fs/namei.c:5366 [inline]
__se_sys_mknod fs/namei.c:5363 [inline]
__x64_sys_mknod+0x8f/0xc0 fs/namei.c:5363
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 6443 tgid 6442 ts 140257314384 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962
stack_depot_save_flags+0x456/0x9f0 lib/stackdepot.c:735
kasan_save_stack+0x3f/0x50 mm/kasan/common.c:58
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:351 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377
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+0x269/0x6a0 mm/slub.c:5010
lsm_inode_alloc security/security.c:254 [inline]
security_inode_alloc+0x3b/0x2c0 security/security.c:1215
inode_init_always_gfp+0xc6f/0xfb0 fs/inode.c:298
inode_init_always include/linux/fs.h:2970 [inline]
alloc_inode+0x8e/0x250 fs/inode.c:345
new_inode+0x22/0x1c0 fs/inode.c:1170
gfs2_create_inode+0x973/0x3530 fs/gfs2/inode.c:772
gfs2_atomic_open+0xb7/0x210 fs/gfs2/inode.c:1403
atomic_open+0x17e/0x560 fs/namei.c:4367
lookup_open+0x898/0x1940 fs/namei.c:4524
open_last_lookups fs/namei.c:4768 [inline]
path_openat+0xe7a/0x2430 fs/namei.c:5007
do_file_open+0x20e/0x430 fs/namei.c:5039
Memory state around the buggy address:
ffff8880544c3800: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880544c3880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8880544c3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880544c3980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880544c3a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x1a4/0x1d0 lib/list_debug.c:65
Read of size 8 at addr ffff8880544c3928 by task kworker/0:0/9
CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026
Workqueue: events gfs2_withdraw_func
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
__list_del_entry_valid_or_report+0x1a4/0x1d0 lib/list_debug.c:65
__list_del_entry_valid include/linux/list.h:140 [inline]
__list_del_entry include/linux/list.h:261 [inline]
list_del_init include/linux/list.h:333 [inline]
gfs2_remove_from_ail+0x138/0x340 fs/gfs2/log.c:79
gfs2_ail_empty_tr fs/gfs2/log.c:287 [inline]
gfs2_ail_drain+0x39c/0x6b0 fs/gfs2/log.c:954
do_withdraw+0xeb/0x300 fs/gfs2/util.c:126
gfs2_withdraw_func+0x349/0x3d0 fs/gfs2/util.c:236
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 20215:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:351 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377
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+0x269/0x6a0 mm/slub.c:5010
gfs2_glock_get+0x1e5/0x1260 fs/gfs2/glock.c:1074
gfs2_inode_lookup+0x2e0/0x920 fs/gfs2/inode.c:149
gfs2_lookup_root+0x57/0xe0 fs/gfs2/ops_fstype.c:428
init_sb+0xa17/0xfd0 fs/gfs2/ops_fstype.c:497
gfs2_fill_super+0x1acb/0x2d00 fs/gfs2/ops_fstype.c:1219
get_tree_bdev_flags+0x38c/0x620 fs/super.c:1883
gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1333
vfs_get_tree+0x92/0x320 fs/super.c:1943
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4566 [inline]
__se_sys_mount fs/namespace.c:4543 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4543
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 11471:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:264 [inline]
__kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2748 [inline]
slab_free mm/slub.c:6509 [inline]
kmem_cache_free+0x127/0x6c0 mm/slub.c:6636
gfs2_glock_dealloc+0xd0/0x160 fs/gfs2/glock.c:134
rcu_do_batch kernel/rcu/tree.c:2650 [inline]
rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
do_softirq kernel/softirq.c:546 [inline]
do_softirq+0xaf/0xf0 kernel/softirq.c:533
__local_bh_enable_ip+0xff/0x120 kernel/softirq.c:473
local_bh_enable include/linux/bottom_half.h:33 [inline]
__alloc_skb+0x5db/0x710 net/core/skbuff.c:699
alloc_skb include/linux/skbuff.h:1384 [inline]
nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:744 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:801 [inline]
nsim_dev_trap_report_work+0x2af/0xd20 drivers/net/netdevsim/dev.c:847
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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+0x30/0x50 mm/kasan/common.c:57
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556
__call_rcu_common.constprop.0+0xa5/0x9b0 kernel/rcu/tree.c:3181
gfs2_glock_free+0x35/0xa0 fs/gfs2/glock.c:150
glock_work_func+0x437/0x4d0 fs/gfs2/glock.c:1003
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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+0x30/0x50 mm/kasan/common.c:57
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556
insert_work+0x36/0x230 kernel/workqueue.c:2272
__queue_work+0xa60/0x1370 kernel/workqueue.c:2448
__queue_delayed_work+0x357/0x450 kernel/workqueue.c:2617
queue_delayed_work_on+0x180/0x1e0 kernel/workqueue.c:2669
queue_delayed_work include/linux/workqueue.h:715 [inline]
gfs2_glock_queue_work+0x75/0x120 fs/gfs2/glock.c:198
do_xmote+0x453/0x680 fs/gfs2/glock.c:718
run_queue+0x555/0x6a0 fs/gfs2/glock.c:757
glock_work_func+0x35b/0x4d0 fs/gfs2/glock.c:987
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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 ffff8880544c3808
which belongs to the cache gfs2_glock(aspace) of size 1176
The buggy address is located 288 bytes inside of
freed 1176-byte region [ffff8880544c3808, ffff8880544c3ca0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x544c0
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff888020bbf3c0 dead000000000100 dead000000000122
raw: 0000000000000000 00000002000c000c 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff888020bbf3c0 dead000000000100 dead000000000122
head: 0000000000000000 00000002000c000c 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 6443, tgid 6442 (syz.4.211), ts 140276298342
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x2e9/0x32e0 mm/page_alloc.c:5436
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab mm/slub.c:3462 [inline]
new_slab+0xa9/0x6e0 mm/slub.c:3513
refill_objects+0xe3/0x410 mm/slub.c:7418
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774
alloc_from_pcs mm/slub.c:4850 [inline]
slab_alloc_node mm/slub.c:4984 [inline]
kmem_cache_alloc_noprof+0x4bf/0x6a0 mm/slub.c:5010
gfs2_glock_get+0x1e5/0x1260 fs/gfs2/glock.c:1074
gfs2_create_inode+0x1e72/0x3530 fs/gfs2/inode.c:835
gfs2_create+0x34/0x40 fs/gfs2/inode.c:973
vfs_create+0x2fb/0x6c0 fs/namei.c:4197
filename_mknodat+0x2de/0x7f0 fs/namei.c:5329
__do_sys_mknod fs/namei.c:5366 [inline]
__se_sys_mknod fs/namei.c:5363 [inline]
__x64_sys_mknod+0x8f/0xc0 fs/namei.c:5363
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 6443 tgid 6442 ts 140257314384 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962
stack_depot_save_flags+0x456/0x9f0 lib/stackdepot.c:735
kasan_save_stack+0x3f/0x50 mm/kasan/common.c:58
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:351 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377
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+0x269/0x6a0 mm/slub.c:5010
lsm_inode_alloc security/security.c:254 [inline]
security_inode_alloc+0x3b/0x2c0 security/security.c:1215
inode_init_always_gfp+0xc6f/0xfb0 fs/inode.c:298
inode_init_always include/linux/fs.h:2970 [inline]
alloc_inode+0x8e/0x250 fs/inode.c:345
new_inode+0x22/0x1c0 fs/inode.c:1170
gfs2_create_inode+0x973/0x3530 fs/gfs2/inode.c:772
gfs2_atomic_open+0xb7/0x210 fs/gfs2/inode.c:1403
atomic_open+0x17e/0x560 fs/namei.c:4367
lookup_open+0x898/0x1940 fs/namei.c:4524
open_last_lookups fs/namei.c:4768 [inline]
path_openat+0xe7a/0x2430 fs/namei.c:5007
do_file_open+0x20e/0x430 fs/namei.c:5039
Memory state around the buggy address:
ffff8880544c3800: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880544c3880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8880544c3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880544c3980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880544c3a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in __list_del include/linux/list.h:241 [inline]
BUG: KASAN: slab-use-after-free in __list_del_entry include/linux/list.h:264 [inline]
BUG: KASAN: slab-use-after-free in __list_del_entry include/linux/list.h:259 [inline]
BUG: KASAN: slab-use-after-free in list_del_init include/linux/list.h:333 [inline]
BUG: KASAN: slab-use-after-free in gfs2_remove_from_ail+0x323/0x340 fs/gfs2/log.c:79
Write of size 8 at addr ffff8880544c3928 by task kworker/0:0/9
CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/05/2026
Workqueue: events gfs2_withdraw_func
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
__list_del include/linux/list.h:241 [inline]
__list_del_entry include/linux/list.h:264 [inline]
__list_del_entry include/linux/list.h:259 [inline]
list_del_init include/linux/list.h:333 [inline]
gfs2_remove_from_ail+0x323/0x340 fs/gfs2/log.c:79
gfs2_ail_empty_tr fs/gfs2/log.c:287 [inline]
gfs2_ail_drain+0x39c/0x6b0 fs/gfs2/log.c:954
do_withdraw+0xeb/0x300 fs/gfs2/util.c:126
gfs2_withdraw_func+0x349/0x3d0 fs/gfs2/util.c:236
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Allocated by task 20215:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:351 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377
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+0x269/0x6a0 mm/slub.c:5010
gfs2_glock_get+0x1e5/0x1260 fs/gfs2/glock.c:1074
gfs2_inode_lookup+0x2e0/0x920 fs/gfs2/inode.c:149
gfs2_lookup_root+0x57/0xe0 fs/gfs2/ops_fstype.c:428
init_sb+0xa17/0xfd0 fs/gfs2/ops_fstype.c:497
gfs2_fill_super+0x1acb/0x2d00 fs/gfs2/ops_fstype.c:1219
get_tree_bdev_flags+0x38c/0x620 fs/super.c:1883
gfs2_get_tree+0x4e/0x280 fs/gfs2/ops_fstype.c:1333
vfs_get_tree+0x92/0x320 fs/super.c:1943
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4566 [inline]
__se_sys_mount fs/namespace.c:4543 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4543
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 11471:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584
poison_slab_object mm/kasan/common.c:264 [inline]
__kasan_slab_free+0x5f/0x80 mm/kasan/common.c:296
kasan_slab_free include/linux/kasan.h:235 [inline]
slab_free_hook mm/slub.c:2748 [inline]
slab_free mm/slub.c:6509 [inline]
kmem_cache_free+0x127/0x6c0 mm/slub.c:6636
gfs2_glock_dealloc+0xd0/0x160 fs/gfs2/glock.c:134
rcu_do_batch kernel/rcu/tree.c:2650 [inline]
rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
do_softirq kernel/softirq.c:546 [inline]
do_softirq+0xaf/0xf0 kernel/softirq.c:533
__local_bh_enable_ip+0xff/0x120 kernel/softirq.c:473
local_bh_enable include/linux/bottom_half.h:33 [inline]
__alloc_skb+0x5db/0x710 net/core/skbuff.c:699
alloc_skb include/linux/skbuff.h:1384 [inline]
nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:744 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:801 [inline]
nsim_dev_trap_report_work+0x2af/0xd20 drivers/net/netdevsim/dev.c:847
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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+0x30/0x50 mm/kasan/common.c:57
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556
__call_rcu_common.constprop.0+0xa5/0x9b0 kernel/rcu/tree.c:3181
gfs2_glock_free+0x35/0xa0 fs/gfs2/glock.c:150
glock_work_func+0x437/0x4d0 fs/gfs2/glock.c:1003
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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+0x30/0x50 mm/kasan/common.c:57
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:556
insert_work+0x36/0x230 kernel/workqueue.c:2272
__queue_work+0xa60/0x1370 kernel/workqueue.c:2448
__queue_delayed_work+0x357/0x450 kernel/workqueue.c:2617
queue_delayed_work_on+0x180/0x1e0 kernel/workqueue.c:2669
queue_delayed_work include/linux/workqueue.h:715 [inline]
gfs2_glock_queue_work+0x75/0x120 fs/gfs2/glock.c:198
do_xmote+0x453/0x680 fs/gfs2/glock.c:718
run_queue+0x555/0x6a0 fs/gfs2/glock.c:757
glock_work_func+0x35b/0x4d0 fs/gfs2/glock.c:987
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 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 ffff8880544c3808
which belongs to the cache gfs2_glock(aspace) of size 1176
The buggy address is located 288 bytes inside of
freed 1176-byte region [ffff8880544c3808, ffff8880544c3ca0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x544c0
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff888020bbf3c0 dead000000000100 dead000000000122
raw: 0000000000000000 00000002000c000c 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff888020bbf3c0 dead000000000100 dead000000000122
head: 0000000000000000 00000002000c000c 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 6443, tgid 6442 (syz.4.211), ts 140276298342
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x2e9/0x32e0 mm/page_alloc.c:5436
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab mm/slub.c:3462 [inline]
new_slab+0xa9/0x6e0 mm/slub.c:3513
refill_objects+0xe3/0x410 mm/slub.c:7418
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774
alloc_from_pcs mm/slub.c:4850 [inline]
slab_alloc_node mm/slub.c:4984 [inline]
kmem_cache_alloc_noprof+0x4bf/0x6a0 mm/slub.c:5010
gfs2_glock_get+0x1e5/0x1260 fs/gfs2/glock.c:1074
gfs2_create_inode+0x1e72/0x3530 fs/gfs2/inode.c:835
gfs2_create+0x34/0x40 fs/gfs2/inode.c:973
vfs_create+0x2fb/0x6c0 fs/namei.c:4197
filename_mknodat+0x2de/0x7f0 fs/namei.c:5329
__do_sys_mknod fs/namei.c:5366 [inline]
__se_sys_mknod fs/namei.c:5363 [inline]
__x64_sys_mknod+0x8f/0xc0 fs/namei.c:5363
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 6443 tgid 6442 ts 140257314384 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962
stack_depot_save_flags+0x456/0x9f0 lib/stackdepot.c:735
kasan_save_stack+0x3f/0x50 mm/kasan/common.c:58
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:351 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377
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+0x269/0x6a0 mm/slub.c:5010
lsm_inode_alloc security/security.c:254 [inline]
security_inode_alloc+0x3b/0x2c0 security/security.c:1215
inode_init_always_gfp+0xc6f/0xfb0 fs/inode.c:298
inode_init_always include/linux/fs.h:2970 [inline]
alloc_inode+0x8e/0x250 fs/inode.c:345
new_inode+0x22/0x1c0 fs/inode.c:1170
gfs2_create_inode+0x973/0x3530 fs/gfs2/inode.c:772
gfs2_atomic_open+0xb7/0x210 fs/gfs2/inode.c:1403
atomic_open+0x17e/0x560 fs/namei.c:4367
lookup_open+0x898/0x1940 fs/namei.c:4524
open_last_lookups fs/namei.c:4768 [inline]
path_openat+0xe7a/0x2430 fs/namei.c:5007
do_file_open+0x20e/0x430 fs/namei.c:5039
Memory state around the buggy address:
ffff8880544c3800: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880544c3880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8880544c3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880544c3980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880544c3a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================