================================================================== BUG: KASAN: slab-out-of-bounds in addressPXD fs/jfs/jfs_types.h:80 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x1906/0x1f60 fs/jfs/jfs_dtree.c:785 Read of size 4 at addr ffff88805faf9fe0 by task syz.9.3475/17204 CPU: 1 PID: 17204 Comm: syz.9.3475 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x188/0x24e 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 addressPXD fs/jfs/jfs_types.h:80 [inline] dtSearch+0x1906/0x1f60 fs/jfs/jfs_dtree.c:785 jfs_lookup+0x1ad/0x420 fs/jfs/namei.c:1461 lookup_one_qstr_excl+0x10e/0x240 fs/namei.c:1613 filename_create+0x242/0x450 fs/namei.c:3928 do_mkdirat+0xa5/0x440 fs/namei.c:4172 __do_sys_mkdirat fs/namei.c:4197 [inline] __se_sys_mkdirat fs/namei.c:4195 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4195 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc38779d007 Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc388727e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc388727ee0 RCX: 00007fc38779d007 RDX: 00000000000001ff RSI: 0000200000000040 RDI: 00000000ffffff9c RBP: 0000200000000140 R08: 00002000000000c0 R09: 0000000000000000 R10: 0000200000000140 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fc388727ea0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 15739: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x18b/0x2f0 mm/slub.c:3383 kmem_cache_zalloc include/linux/slab.h:689 [inline] __kernfs_new_node+0xe1/0x7f0 fs/kernfs/dir.c:614 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:690 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:1068 sysfs_add_file_mode_ns+0x233/0x2f0 fs/sysfs/file.c:298 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x490/0xce0 fs/sysfs/group.c:148 internal_create_groups fs/sysfs/group.c:188 [inline] sysfs_create_groups+0x55/0x120 fs/sysfs/group.c:214 device_add_groups drivers/base/core.c:2752 [inline] device_add_attrs+0xdb/0x830 drivers/base/core.c:2900 device_add+0x677/0x1050 drivers/base/core.c:3648 netdev_register_kobject+0x184/0x320 net/core/net-sysfs.c:2013 register_netdevice+0x133a/0x1b80 net/core/dev.c:10243 register_vlan_dev+0x3a0/0x820 net/8021q/vlan.c:180 vlan_newlink+0x436/0x580 net/8021q/vlan_netlink.c:195 rtnl_newlink_create net/core/rtnetlink.c:3436 [inline] __rtnl_newlink net/core/rtnetlink.c:3656 [inline] rtnl_newlink+0x14b3/0x1f90 net/core/rtnetlink.c:3669 rtnetlink_rcv_msg+0x863/0xfb0 net/core/rtnetlink.c:6166 netlink_rcv_skb+0x1ef/0x440 net/netlink/af_netlink.c:2516 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x7ad/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ad/0xbd0 net/netlink/af_netlink.c:1877 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] __sys_sendto+0x497/0x650 net/socket.c:2153 __do_sys_sendto net/socket.c:2165 [inline] __se_sys_sendto net/socket.c:2161 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2161 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88805faf9e80 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 184 bytes to the right of 168-byte region [ffff88805faf9e80, ffff88805faf9f28) The buggy address belongs to the physical page: page:ffffea00017ebe40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5faf9 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888140009c80 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 15773, tgid 15773 (syz-executor), ts 562282208876, free_ts 559642353078 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2d0 mm/slub.c:1997 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc+0x111/0x2f0 mm/slub.c:3383 kmem_cache_zalloc include/linux/slab.h:689 [inline] __kernfs_new_node+0xe1/0x7f0 fs/kernfs/dir.c:614 kernfs_new_node+0x148/0x250 fs/kernfs/dir.c:690 __kernfs_create_file+0x47/0x2e0 fs/kernfs/file.c:1068 sysfs_add_file_mode_ns+0x233/0x2f0 fs/sysfs/file.c:298 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x490/0xce0 fs/sysfs/group.c:148 netdev_queue_add_kobject net/core/net-sysfs.c:1670 [inline] netdev_queue_update_kobjects+0x21d/0x480 net/core/net-sysfs.c:1716 register_queue_kobjects net/core/net-sysfs.c:1777 [inline] netdev_register_kobject+0x273/0x320 net/core/net-sysfs.c:2017 register_netdevice+0x133a/0x1b80 net/core/dev.c:10243 veth_newlink+0x8be/0xd60 drivers/net/veth.c:1772 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 __vunmap+0x874/0xa40 mm/vmalloc.c:2783 kcov_put kernel/kcov.c:439 [inline] kcov_close+0x27/0x50 kernel/kcov.c:535 __fput+0x20a/0x8b0 fs/file_table.c:320 task_work_run+0x1d0/0x260 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x9d5/0x2570 kernel/exit.c:887 do_group_exit+0x229/0x2e0 kernel/exit.c:1030 __do_sys_exit_group kernel/exit.c:1041 [inline] __se_sys_exit_group kernel/exit.c:1039 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1039 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff88805faf9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805faf9f00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff88805faf9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805fafa000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805fafa080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================