================================================================== BUG: KASAN: slab-out-of-bounds in dtMoveEntry fs/jfs/jfs_dtree.c:4217 [inline] BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x1f8d/0x3ec0 fs/jfs/jfs_dtree.c:1558 Write of size 1 at addr ffff888022e64020 by task syz.2.124/4922 CPU: 1 PID: 4922 Comm: syz.2.124 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 dtMoveEntry fs/jfs/jfs_dtree.c:4217 [inline] dtSplitPage+0x1f8d/0x3ec0 fs/jfs/jfs_dtree.c:1558 dtSplitUp fs/jfs/jfs_dtree.c:1089 [inline] dtInsert+0x14fc/0x6b00 fs/jfs/jfs_dtree.c:868 jfs_rename+0xafa/0x1cb0 fs/jfs/namei.c:1224 vfs_rename+0xd32/0x10f0 fs/namei.c:4832 do_renameat2+0xe0f/0x1700 fs/namei.c:4985 __do_sys_rename fs/namei.c:5031 [inline] __se_sys_rename fs/namei.c:5029 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:5029 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f61e9c96169 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:00007f61e7ade038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f61e9eaf080 RCX: 00007f61e9c96169 RDX: 0000000000000000 RSI: 0000200000000f40 RDI: 0000200000000300 RBP: 00007f61e9d172a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f61e9eaf080 R15: 00007ffc0396cfc8 Allocated by task 23: 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+0x8e/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x53/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] lsm_inode_alloc security/security.c:595 [inline] security_inode_alloc+0x24/0x110 security/security.c:1033 inode_init_always+0x939/0xc70 fs/inode.c:232 alloc_inode fs/inode.c:268 [inline] new_inode_pseudo+0x8f/0x210 fs/inode.c:1001 new_inode+0x25/0x1d0 fs/inode.c:1030 shmem_get_inode+0x327/0xad0 mm/shmem.c:2290 shmem_mknod+0x54/0x1b0 mm/shmem.c:2850 vfs_mknod+0x444/0x4d0 fs/namei.c:3944 handle_create drivers/base/devtmpfs.c:222 [inline] handle drivers/base/devtmpfs.c:387 [inline] devtmpfs_work_loop+0x960/0x1030 drivers/base/devtmpfs.c:402 devtmpfsd+0x44/0x50 drivers/base/devtmpfs.c:444 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888022e64000 which belongs to the cache lsm_inode_cache of size 32 The buggy address is located 0 bytes to the right of 32-byte region [ffff888022e64000, ffff888022e64020) The buggy address belongs to the page: page:ffffea00008b9900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x22e64 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff8880175ea140 raw: 0000000000000000 0000000000550055 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 0x12c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY), pid 23, ts 9081510796, free_ts 9077947084 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5466 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xbb/0x4b0 mm/slub.c:1975 ___slab_alloc+0x6f6/0xe10 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+0x18e/0x280 mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] lsm_inode_alloc security/security.c:595 [inline] security_inode_alloc+0x24/0x110 security/security.c:1033 inode_init_always+0x939/0xc70 fs/inode.c:232 alloc_inode fs/inode.c:268 [inline] new_inode_pseudo+0x8f/0x210 fs/inode.c:1001 new_inode+0x25/0x1d0 fs/inode.c:1030 shmem_get_inode+0x327/0xad0 mm/shmem.c:2290 shmem_mknod+0x54/0x1b0 mm/shmem.c:2850 vfs_mknod+0x444/0x4d0 fs/namei.c:3944 handle_create drivers/base/devtmpfs.c:222 [inline] handle drivers/base/devtmpfs.c:387 [inline] devtmpfs_work_loop+0x960/0x1030 drivers/base/devtmpfs.c:402 devtmpfsd+0x44/0x50 drivers/base/devtmpfs.c:444 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 __vunmap+0x8b3/0xa50 mm/vmalloc.c:2621 free_work+0x57/0x80 mm/vmalloc.c:95 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888022e63f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888022e63f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888022e64000: 00 00 00 00 fc fc 00 00 00 00 fc fc 00 00 00 00 ^ ffff888022e64080: fc fc 00 00 00 00 fc fc 00 00 00 00 fc fc 00 00 ffff888022e64100: 00 00 fc fc 00 00 00 00 fc fc 00 00 00 00 fc fc ==================================================================