================================================================== BUG: KASAN: slab-out-of-bounds in dtMoveEntry fs/jfs/jfs_dtree.c:4146 [inline] BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x1ed6/0x31d0 fs/jfs/jfs_dtree.c:1559 Write of size 4 at addr ffff88801fd730bc by task syz.5.126/4779 CPU: 1 PID: 4779 Comm: syz.5.126 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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 dtMoveEntry fs/jfs/jfs_dtree.c:4146 [inline] dtSplitPage+0x1ed6/0x31d0 fs/jfs/jfs_dtree.c:1559 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:0x7effdfb68929 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:00007effdd9d0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007effdfd8ffa0 RCX: 00007effdfb68929 RDX: 0000000000000000 RSI: 0000000000000032 RDI: 00002000000008c0 RBP: 00007effdfbeab39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007effdfd8ffa0 R15: 00007fff78d75f48 Allocated by task 4171: 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 kmem_cache_zalloc include/linux/slab.h:725 [inline] __kernfs_new_node+0xd6/0x680 fs/kernfs/dir.c:593 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:669 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x2d4/0x3a0 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x489/0xcf0 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:215 create_dir lib/kobject.c:100 [inline] kobject_add_internal+0x7a5/0xd00 lib/kobject.c:263 kobject_add_varg lib/kobject.c:398 [inline] kobject_init_and_add+0x122/0x190 lib/kobject.c:481 netdev_queue_add_kobject net/core/net-sysfs.c:1666 [inline] netdev_queue_update_kobjects+0x19c/0x3e0 net/core/net-sysfs.c:1711 register_queue_kobjects net/core/net-sysfs.c:1772 [inline] netdev_register_kobject+0x265/0x310 net/core/net-sysfs.c:2018 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 __rtnl_newlink net/core/rtnetlink.c:3524 [inline] rtnl_newlink+0x114c/0x17d0 net/core/rtnetlink.c:3572 rtnetlink_rcv_msg+0x9b9/0xe60 net/core/rtnetlink.c:5650 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2489 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x77c/0x920 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x423/0x580 net/socket.c:2063 __do_sys_sendto net/socket.c:2075 [inline] __se_sys_sendto net/socket.c:2071 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2071 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 The buggy address belongs to the object at ffff88801fd73000 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 20 bytes to the right of 168-byte region [ffff88801fd73000, ffff88801fd730a8) The buggy address belongs to the page: page:ffffea00007f5cc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1fd73 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff8880169e9b40 raw: 0000000000000000 0000000000110011 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 4171, ts 62514266411, free_ts 62512321248 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:5474 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 kmem_cache_zalloc include/linux/slab.h:725 [inline] __kernfs_new_node+0xd6/0x680 fs/kernfs/dir.c:593 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:669 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x2d4/0x3a0 fs/sysfs/file.c:317 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x489/0xcf0 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:215 create_dir lib/kobject.c:100 [inline] kobject_add_internal+0x7a5/0xd00 lib/kobject.c:263 kobject_add_varg lib/kobject.c:398 [inline] kobject_init_and_add+0x122/0x190 lib/kobject.c:481 netdev_queue_add_kobject net/core/net-sysfs.c:1666 [inline] netdev_queue_update_kobjects+0x19c/0x3e0 net/core/net-sysfs.c:1711 register_queue_kobjects net/core/net-sysfs.c:1772 [inline] netdev_register_kobject+0x265/0x310 net/core/net-sysfs.c:2018 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 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] slab_alloc mm/slub.c:3228 [inline] __kmalloc_track_caller+0x125/0x330 mm/slub.c:4925 kvasprintf+0xd4/0x180 lib/kasprintf.c:25 kobject_set_name_vargs+0x5d/0x110 lib/kobject.c:297 kobject_add_varg lib/kobject.c:392 [inline] kobject_init_and_add+0xda/0x190 lib/kobject.c:481 rx_queue_add_kobject net/core/net-sysfs.c:1059 [inline] net_rx_queue_update_kobjects+0x1af/0x490 net/core/net-sysfs.c:1110 register_queue_kobjects net/core/net-sysfs.c:1767 [inline] netdev_register_kobject+0x223/0x310 net/core/net-sysfs.c:2018 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 __rtnl_newlink net/core/rtnetlink.c:3524 [inline] rtnl_newlink+0x114c/0x17d0 net/core/rtnetlink.c:3572 Memory state around the buggy address: ffff88801fd72f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801fd73000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801fd73080: 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 ^ ffff88801fd73100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801fd73180: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ==================================================================