================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:82 [inline] BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-use-after-free in mapping_unevictable include/linux/pagemap.h:268 [inline] BUG: KASAN: slab-use-after-free in folio_evictable mm/internal.h:656 [inline] BUG: KASAN: slab-use-after-free in lru_add+0x25a/0xea0 mm/folio.c:130 Read of size 8 at addr ffff88802170bbc0 by task syz.0.18/6390 CPU: 1 UID: 0 PID: 6390 Comm: syz.0.18 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 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 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x264/0x2c0 mm/kasan/generic.c:200 instrument_atomic_read include/linux/instrumented.h:82 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] mapping_unevictable include/linux/pagemap.h:268 [inline] folio_evictable mm/internal.h:656 [inline] lru_add+0x25a/0xea0 mm/folio.c:130 folio_batch_move_lru+0x6e9/0xa60 mm/folio.c:194 __folio_batch_add_and_move+0x510/0xc50 mm/folio.c:225 shmem_alloc_and_add_folio+0xcc2/0xf60 mm/shmem.c:2241 shmem_get_folio_gfp+0x594/0x1330 mm/shmem.c:2735 shmem_get_folio mm/shmem.c:2834 [inline] shmem_write_begin+0x16c/0x330 mm/shmem.c:3469 generic_perform_write+0x2d5/0x8e0 mm/filemap.c:4392 shmem_file_write_iter+0xf8/0x120 mm/shmem.c:3644 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb9eaf5d60e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fb9ebe14da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb9ebe156c0 RCX: 00007fb9eaf5d60e RDX: 0000000001000000 RSI: 00007fb9e2000000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007fb9ebe14ee0 R14: 00007fb9ebe14ea0 R15: 00007fb9e2000000 Allocated by task 6386: 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:351 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] kmem_cache_alloc_noprof+0x2b4/0x600 mm/slub.c:5047 gfs2_glock_get+0x276/0xf20 fs/gfs2/glock.c:1069 gfs2_inode_lookup+0x296/0xb90 fs/gfs2/inode.c:150 gfs2_dir_search+0x168/0x220 fs/gfs2/dir.c:1675 gfs2_lookupi+0x3ee/0x5c0 fs/gfs2/inode.c:356 gfs2_jindex_hold fs/gfs2/ops_fstype.c:574 [inline] init_journal+0x5b1/0x2390 fs/gfs2/ops_fstype.c:713 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:844 gfs2_fill_super+0x193f/0x20b0 fs/gfs2/ops_fstype.c:1250 get_tree_bdev_flags+0x430/0x4f0 fs/super.c:1883 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1331 vfs_get_tree+0x92/0x2a0 fs/super.c:1943 fc_mount fs/namespace.c:1209 [inline] do_new_mount_fc fs/namespace.c:3785 [inline] do_new_mount+0x319/0xdc0 fs/namespace.c:3861 do_mount fs/namespace.c:4194 [inline] __do_sys_mount fs/namespace.c:4407 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4384 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 15: 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:264 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6630 [inline] kmem_cache_free+0x182/0x650 mm/slub.c:6757 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x926/0x1260 kernel/rcu/tree.c:2919 handle_softirqs+0x223/0x840 kernel/softirq.c:645 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1099 smpboot_thread_fn+0x565/0xa70 kernel/smpboot.c:160 kthread+0x38b/0x480 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:3287 [inline] call_rcu+0x86/0x300 kernel/rcu/tree.c:3395 gfs2_glock_free+0x3c/0xa0 fs/gfs2/glock.c:150 gfs2_glock_put_eventually fs/gfs2/super.c:1176 [inline] gfs2_evict_inode+0xdfc/0x13f0 fs/gfs2/super.c:1535 evict+0x624/0xb50 fs/inode.c:823 gfs2_jindex_free+0x398/0x450 fs/gfs2/super.c:79 init_journal+0x8dd/0x2390 fs/gfs2/ops_fstype.c:826 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:844 gfs2_fill_super+0x193f/0x20b0 fs/gfs2/ops_fstype.c:1250 get_tree_bdev_flags+0x430/0x4f0 fs/super.c:1883 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1331 vfs_get_tree+0x92/0x2a0 fs/super.c:1943 fc_mount fs/namespace.c:1209 [inline] do_new_mount_fc fs/namespace.c:3785 [inline] do_new_mount+0x319/0xdc0 fs/namespace.c:3861 do_mount fs/namespace.c:4194 [inline] __do_sys_mount fs/namespace.c:4407 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4384 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f 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:2356 __queue_work+0xd3c/0x1360 kernel/workqueue.c:2546 queue_delayed_work_on+0x11a/0x1e0 kernel/workqueue.c:2767 queue_delayed_work include/linux/workqueue.h:715 [inline] gfs2_glock_queue_work fs/gfs2/glock.c:198 [inline] do_xmote+0x539/0x770 fs/gfs2/glock.c:711 glock_work_func+0x2d4/0x5d0 fs/gfs2/glock.c:982 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 kthread+0x38b/0x480 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 ffff88802170b808 which belongs to the cache gfs2_glock(aspace) of size 1176 The buggy address is located 952 bytes inside of freed 1176-byte region [ffff88802170b808, ffff88802170bca0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x21708 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 ffff88801e773b40 dead000000000122 0000000000000000 raw: 0000000000000000 00000002000c000c 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801e773b40 dead000000000122 0000000000000000 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 6386, tgid 6385 (syz.0.17), ts 117289703707 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1854 prep_new_page mm/page_alloc.c:1862 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3933 __alloc_frozen_pages_noprof+0x1fc/0x400 mm/page_alloc.c:5441 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] kmem_cache_alloc_noprof+0x394/0x600 mm/slub.c:5047 gfs2_glock_get+0x276/0xf20 fs/gfs2/glock.c:1069 gfs2_inode_lookup+0x296/0xb90 fs/gfs2/inode.c:150 gfs2_dir_search+0x168/0x220 fs/gfs2/dir.c:1675 gfs2_lookupi+0x3ee/0x5c0 fs/gfs2/inode.c:356 gfs2_jindex_hold fs/gfs2/ops_fstype.c:574 [inline] init_journal+0x5b1/0x2390 fs/gfs2/ops_fstype.c:713 init_inodes+0xdb/0x320 fs/gfs2/ops_fstype.c:844 gfs2_fill_super+0x193f/0x20b0 fs/gfs2/ops_fstype.c:1250 get_tree_bdev_flags+0x430/0x4f0 fs/super.c:1883 gfs2_get_tree+0x51/0x1e0 fs/gfs2/ops_fstype.c:1331 page last free pid 1001 tgid 1001 ts 112532787567 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1401 [inline] __free_frozen_pages+0xc97/0xd90 mm/page_alloc.c:2952 __slab_free+0x269/0x2c0 mm/slub.c:5926 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:361 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] kmem_cache_alloc_node_noprof+0x34f/0x600 mm/slub.c:5105 __alloc_skb+0x1db/0x7a0 net/core/skbuff.c:704 alloc_skb include/linux/skbuff.h:1384 [inline] nlmsg_new include/net/netlink.h:1055 [inline] inet_netconf_notify_devconf+0x173/0x240 net/ipv4/devinet.c:2312 __devinet_sysctl_unregister net/ipv4/devinet.c:2774 [inline] devinet_sysctl_unregister net/ipv4/devinet.c:2798 [inline] inetdev_destroy net/ipv4/devinet.c:336 [inline] inetdev_event+0x633/0x1610 net/ipv4/devinet.c:1657 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2348 [inline] call_netdevice_notifiers net/core/dev.c:2362 [inline] unregister_netdevice_many_notify+0x17f4/0x2140 net/core/dev.c:12566 unregister_netdevice_many net/core/dev.c:12637 [inline] default_device_exit_batch+0x6cf/0x760 net/core/dev.c:13349 ops_exit_list net/core/net_namespace.c:206 [inline] ops_undo_list+0x4d7/0x8f0 net/core/net_namespace.c:253 cleanup_net+0x572/0x810 net/core/net_namespace.c:706 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3578 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3659 Memory state around the buggy address: ffff88802170ba80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802170bb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88802170bb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802170bc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802170bc80: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================