================================================================== BUG: KASAN: slab-out-of-bounds in diWrite+0x91c/0x1218 fs/jfs/jfs_imap.c:753 Write of size 64 at addr ffff0000ce1054c0 by task syz.3.169/4818 CPU: 1 PID: 4818 Comm: syz.3.169 Not tainted 5.15.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x270/0x2b0 mm/kasan/generic.c:189 memcpy+0xb4/0xe8 mm/kasan/shadow.c:66 diWrite+0x91c/0x1218 fs/jfs/jfs_imap.c:753 txCommit+0x5d4/0x3c1c fs/jfs/jfs_txnmgr.c:1255 jfs_mkdir+0x6e4/0x8b4 fs/jfs/namei.c:290 vfs_mkdir+0x314/0x4d4 fs/namei.c:4065 do_mkdirat+0x1bc/0x508 fs/namei.c:4090 __do_sys_mkdirat fs/namei.c:4105 [inline] __se_sys_mkdirat fs/namei.c:4103 [inline] __arm64_sys_mkdirat+0x90/0xa8 fs/namei.c:4103 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Allocated by task 1: 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_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb0/0xf0 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] kmem_cache_alloc_trace+0x274/0x3fc mm/slub.c:3247 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:735 [inline] class_dir_create_and_add drivers/base/core.c:2957 [inline] get_device_parent+0x2c4/0x3d4 drivers/base/core.c:3021 device_add+0x2e0/0xf94 drivers/base/core.c:3333 wiphy_register+0x1634/0x2100 net/wireless/core.c:919 ieee80211_register_hw+0x20dc/0x2f58 net/mac80211/main.c:1308 mac80211_hwsim_new_radio+0x19fc/0x371c drivers/net/wireless/mac80211_hwsim.c:3374 init_mac80211_hwsim+0x61c/0x748 drivers/net/wireless/mac80211_hwsim.c:4607 do_one_initcall+0x228/0x8b0 init/main.c:1302 do_initcall_level+0x154/0x214 init/main.c:1375 do_initcalls+0x58/0xac init/main.c:1391 do_basic_setup+0x8c/0xa0 init/main.c:1410 kernel_init_freeable+0x404/0x5fc init/main.c:1615 kernel_init+0x24/0x1d0 init/main.c:1506 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 The buggy address belongs to the object at ffff0000ce105400 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 64 bytes to the right of 128-byte region [ffff0000ce105400, ffff0000ce105480) The buggy address belongs to the page: page:00000000c29fad7c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e105 flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 fffffc00031fe0c0 0000000800000008 ffff0000c0002300 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000ce105380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ce105400: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc >ffff0000ce105480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000ce105500: 05 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000ce105580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================