================================================================== BUG: KASAN: use-after-free in dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] BUG: KASAN: use-after-free in dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561 Write of size 1 at addr ffff888077dcf000 by task syz.3.7/4437 CPU: 0 PID: 4437 Comm: syz.3.7 Not tainted 6.1.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline] dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0xfbd/0x58a0 fs/jfs/jfs_dtree.c:871 jfs_rename+0x7b9/0x16a0 fs/jfs/namei.c:1224 vfs_rename+0xbbf/0x10d0 fs/namei.c:4874 do_renameat2+0x89d/0xc70 fs/namei.c:5027 __do_sys_rename fs/namei.c:5073 [inline] __se_sys_rename fs/namei.c:5071 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5071 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f910598ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f910684c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f9105bb6090 RCX: 00007f910598ebe9 RDX: 0000000000000000 RSI: 0000200000000f40 RDI: 0000200000000300 RBP: 00007f9105a11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9105bb6128 R14: 00007f9105bb6090 R15: 00007ffe635eece8 Allocated by task 3737: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3422 dst_alloc+0x101/0x160 net/core/dst.c:88 ip6_dst_alloc net/ipv6/route.c:345 [inline] icmp6_dst_alloc+0x7f/0x460 net/ipv6/route.c:3308 mld_sendpack+0x710/0xe80 net/ipv6/mcast.c:1815 ipv6_mc_dad_complete+0x84/0x210 net/ipv6/mcast.c:2253 addrconf_dad_completed+0x6c3/0xcf0 net/ipv6/addrconf.c:4277 addrconf_dad_work+0xc3e/0x14d0 net/ipv6/addrconf.c:-1 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Freed by task 4388: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2d/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x131/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] kmem_cache_free+0xf7/0x290 mm/slub.c:3683 dst_destroy+0x21e/0x2f0 net/core/dst.c:120 rcu_do_batch kernel/rcu/tree.c:2297 [inline] rcu_core+0x9c0/0x16a0 kernel/rcu/tree.c:2557 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x154/0x980 kernel/rcu/tree.c:2849 refdst_drop include/net/dst.h:256 [inline] skb_dst_drop include/net/dst.h:268 [inline] skb_scrub_packet+0xce/0x430 net/core/skbuff.c:5550 geneve_build_skb+0xf5/0x900 drivers/net/geneve.c:783 geneve_xmit_skb drivers/net/geneve.c:1006 [inline] geneve_xmit+0x23bb/0x3080 drivers/net/geneve.c:1124 __netdev_start_xmit include/linux/netdevice.h:4896 [inline] netdev_start_xmit include/linux/netdevice.h:4910 [inline] xmit_one net/core/dev.c:3658 [inline] dev_hard_start_xmit+0x262/0x870 net/core/dev.c:3674 __dev_queue_xmit+0x1bf1/0x3760 net/core/dev.c:4334 dev_queue_xmit include/linux/netdevice.h:3051 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip6_finish_output2+0xd6b/0x1590 net/ipv6/ip6_output.c:138 dst_output include/net/dst.h:453 [inline] NF_HOOK+0x15d/0x460 include/linux/netfilter.h:302 mld_sendpack+0x893/0xe80 net/ipv6/mcast.c:1826 ipv6_mc_dad_complete+0x84/0x210 net/ipv6/mcast.c:2253 addrconf_dad_completed+0x6c3/0xcf0 net/ipv6/addrconf.c:4277 addrconf_dad_work+0xc3e/0x14d0 net/ipv6/addrconf.c:-1 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff888077dcf000 which belongs to the cache ip6_dst_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff888077dcf000, ffff888077dcf0f0) The buggy address belongs to the physical page: page:ffffea0001df73c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x77dcf memcg:ffff88807de5df81 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff88802ee92000 raw: 0000000000000000 00000000000c000c 00000001ffffffff ffff88807de5df81 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 3737, tgid 3737 (kworker/0:3), ts 80459886825, free_ts 80420217943 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x1b7/0x2f0 mm/slub.c:3422 dst_alloc+0x101/0x160 net/core/dst.c:88 ip6_dst_alloc net/ipv6/route.c:345 [inline] icmp6_dst_alloc+0x7f/0x460 net/ipv6/route.c:3308 mld_sendpack+0x710/0xe80 net/ipv6/mcast.c:1815 ipv6_mc_dad_complete+0x84/0x210 net/ipv6/mcast.c:2253 addrconf_dad_completed+0x6c3/0xcf0 net/ipv6/addrconf.c:4277 addrconf_dad_work+0xc3e/0x14d0 net/ipv6/addrconf.c:-1 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_slab mm/slub.c:2031 [inline] discard_slab mm/slub.c:2037 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2586 put_cpu_partial+0x17c/0x250 mm/slub.c:2662 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] __kmem_cache_alloc_node+0x140/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa0/0x240 mm/slab_common.c:949 kmalloc_array include/linux/slab.h:615 [inline] kcalloc include/linux/slab.h:646 [inline] __list_lru_init+0xa2/0x5f0 mm/list_lru.c:571 alloc_super+0x764/0x930 fs/super.c:270 sget+0x1ca/0x490 fs/super.c:676 btrfs_mount_root+0x5c2/0x8c0 fs/btrfs/super.c:1817 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 Memory state around the buggy address: ffff888077dcef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888077dcef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888077dcf000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888077dcf080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888077dcf100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================