================================================================== BUG: KASAN: slab-out-of-bounds in addressPXD fs/jfs/jfs_types.h:80 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x19ca/0x2050 fs/jfs/jfs_dtree.c:785 Read of size 4 at addr ffff888063a7afe0 by task syz.1.10/4401 CPU: 0 PID: 4401 Comm: syz.1.10 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/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 addressPXD fs/jfs/jfs_types.h:80 [inline] dtSearch+0x19ca/0x2050 fs/jfs/jfs_dtree.c:785 jfs_lookup+0x152/0x380 fs/jfs/namei.c:1459 lookup_one_qstr_excl+0x10e/0x240 fs/namei.c:1571 filename_create+0x21e/0x450 fs/namei.c:3844 do_mknodat+0x16e/0x620 fs/namei.c:3989 __do_sys_mknodat fs/namei.c:4030 [inline] __se_sys_mknodat fs/namei.c:4027 [inline] __x64_sys_mknodat+0xa5/0xc0 fs/namei.c:4027 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:0x7f1262eae749 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:00007f12610d3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000103 RAX: ffffffffffffffda RBX: 00007f1263105180 RCX: 00007f1262eae749 RDX: 0000000000000000 RSI: 0000200000000180 RDI: ffffffffffffff9c RBP: 00007f1262f32f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000103 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1263105218 R14: 00007f1263105180 R15: 00007ffc3f98bc38 Allocated by task 4196: 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:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 kmem_cache_zalloc include/linux/slab.h:728 [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 sysfs_merge_group+0x176/0x300 fs/sysfs/group.c:343 dpm_sysfs_add+0xce/0x270 drivers/base/power/sysfs.c:707 device_add+0x715/0xfb0 drivers/base/core.c:3369 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2014 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 wg_newlink+0x4bf/0x760 drivers/net/wireguard/device.c:356 __rtnl_newlink net/core/rtnetlink.c:3526 [inline] rtnl_newlink+0x114c/0x17d0 net/core/rtnetlink.c:3574 rtnetlink_rcv_msg+0x7ff/0xe90 net/core/rtnetlink.c:5684 netlink_rcv_skb+0x1e0/0x430 net/netlink/af_netlink.c:2507 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8ab/0xbc0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:706 [inline] __sock_sendmsg net/socket.c:718 [inline] __sys_sendto+0x423/0x580 net/socket.c:2073 __do_sys_sendto net/socket.c:2085 [inline] __se_sys_sendto net/socket.c:2081 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2081 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 ffff888063a7ae80 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 [ffff888063a7ae80, ffff888063a7af28) The buggy address belongs to the page: page:ffffea00018e9e80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x63a7a 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 4196, ts 56377792385, free_ts 17771496281 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:5487 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3238 kmem_cache_zalloc include/linux/slab.h:728 [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 device_add_groups drivers/base/core.c:2491 [inline] device_add_attrs+0x137/0x6a0 drivers/base/core.c:2650 device_add+0x64b/0xfb0 drivers/base/core.c:3363 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2014 register_netdevice+0x1019/0x16b0 net/core/dev.c:10397 wg_newlink+0x4bf/0x760 drivers/net/wireguard/device.c:356 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_contig_range+0x96/0xf0 mm/page_alloc.c:9406 destroy_args+0x100/0xa20 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1336 do_one_initcall+0x1ee/0x680 init/main.c:1316 do_initcall_level+0x137/0x1f0 init/main.c:1389 do_initcalls+0x4b/0x90 init/main.c:1405 kernel_init_freeable+0x3ce/0x560 init/main.c:1629 kernel_init+0x19/0x1b0 init/main.c:1520 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888063a7ae80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888063a7af00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff888063a7af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888063a7b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888063a7b080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================