================================================================== BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x2117/0x31d0 fs/jfs/jfs_dtree.c:1569 Write of size 1 at addr ffff888076b28100 by task syz.0.17/4330 CPU: 1 PID: 4330 Comm: syz.0.17 Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 dtSplitPage+0x2117/0x31d0 fs/jfs/jfs_dtree.c:1569 dtSplitUp fs/jfs/jfs_dtree.c:1090 [inline] dtInsert+0xf2a/0x5730 fs/jfs/jfs_dtree.c:869 jfs_create+0x69d/0xa50 fs/jfs/namei.c:137 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x11e1/0x2f30 fs/namei.c:3739 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_creat fs/open.c:1345 [inline] __se_sys_creat fs/open.c:1339 [inline] __x64_sys_creat+0x8c/0xb0 fs/open.c:1339 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7faf617a8969 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:00007faf5f5ef038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007faf619d0080 RCX: 00007faf617a8969 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000006c0 RBP: 00007faf6182aab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007faf619d0080 R15: 00007ffcab1b57d8 Allocated by task 21: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 dst_alloc+0x101/0x160 net/core/dst.c:88 ip6_dst_alloc net/ipv6/route.c:342 [inline] ip6_rt_pcpu_alloc net/ipv6/route.c:1372 [inline] rt6_make_pcpu_route net/ipv6/route.c:1421 [inline] ip6_pol_route+0x8ed/0x1290 net/ipv6/route.c:2256 pol_lookup_func include/net/ip6_fib.h:582 [inline] fib6_rule_lookup+0x1d3/0x570 net/ipv6/fib6_rules.c:115 ip6_route_input_lookup net/ipv6/route.c:2289 [inline] ip6_route_input+0x6bf/0xa40 net/ipv6/route.c:2585 ip6_rcv_finish+0x136/0x240 net/ipv6/ip6_input.c:77 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5525 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5639 process_backlog+0x364/0x780 net/core/dev.c:6516 __napi_poll+0xc0/0x430 net/core/dev.c:7075 napi_poll net/core/dev.c:7142 [inline] net_rx_action+0x4a8/0x9c0 net/core/dev.c:7232 handle_softirqs+0x328/0x820 kernel/softirq.c:558 do_softirq+0x13b/0x200 kernel/softirq.c:459 __local_bh_enable_ip+0x174/0x1b0 kernel/softirq.c:383 rcu_read_unlock_bh include/linux/rcupdate.h:809 [inline] ip6_finish_output2+0x110b/0x1500 net/ipv6/ip6_output.c:131 dst_output include/net/dst.h:452 [inline] NF_HOOK+0x15f/0x430 include/linux/netfilter.h:302 mld_sendpack+0x713/0xc30 net/ipv6/mcast.c:1826 mld_send_cr net/ipv6/mcast.c:2127 [inline] mld_ifc_work+0x836/0xb40 net/ipv6/mcast.c:2659 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888076b28000 which belongs to the cache ip6_dst_cache of size 232 The buggy address is located 24 bytes to the right of 232-byte region [ffff888076b28000, ffff888076b280e8) The buggy address belongs to the page: page:ffffea0001daca00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x76b28 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888023385c80 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 21, ts 67489029639, free_ts 67432065232 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5466 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3233 dst_alloc+0x101/0x160 net/core/dst.c:88 ip6_dst_alloc net/ipv6/route.c:342 [inline] ip6_rt_pcpu_alloc net/ipv6/route.c:1372 [inline] rt6_make_pcpu_route net/ipv6/route.c:1421 [inline] ip6_pol_route+0x8ed/0x1290 net/ipv6/route.c:2256 pol_lookup_func include/net/ip6_fib.h:582 [inline] fib6_rule_lookup+0x1d3/0x570 net/ipv6/fib6_rules.c:115 ip6_route_input_lookup net/ipv6/route.c:2289 [inline] ip6_route_input+0x6bf/0xa40 net/ipv6/route.c:2585 ip6_rcv_finish+0x136/0x240 net/ipv6/ip6_input.c:77 NF_HOOK+0x2d6/0x360 include/linux/netfilter.h:302 __netif_receive_skb_one_core net/core/dev.c:5525 [inline] __netif_receive_skb+0xcc/0x290 net/core/dev.c:5639 process_backlog+0x364/0x780 net/core/dev.c:6516 __napi_poll+0xc0/0x430 net/core/dev.c:7075 napi_poll net/core/dev.c:7142 [inline] net_rx_action+0x4a8/0x9c0 net/core/dev.c:7232 handle_softirqs+0x328/0x820 kernel/softirq.c:558 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 free_slab mm/slub.c:2015 [inline] discard_slab mm/slub.c:2021 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2507 put_cpu_partial+0x12d/0x190 mm/slub.c:2587 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] __kmalloc_node+0x15a/0x3b0 mm/slub.c:4451 kmalloc_node include/linux/slab.h:627 [inline] kvmalloc_node+0x84/0x130 mm/util.c:619 kvmalloc include/linux/mm.h:805 [inline] seq_buf_alloc fs/seq_file.c:38 [inline] seq_read_iter+0x1f6/0xd50 fs/seq_file.c:210 proc_reg_read_iter+0x1a9/0x270 fs/proc/inode.c:300 call_read_iter include/linux/fs.h:2166 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x725/0xcf0 fs/read_write.c:485 ksys_read+0x14d/0x250 fs/read_write.c:623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff888076b28000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888076b28080: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc >ffff888076b28100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ^ ffff888076b28180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888076b28200: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ==================================================================