loop2: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in dtMoveEntry fs/jfs/jfs_dtree.c:3850 [inline] BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x1ed1/0x31d0 fs/jfs/jfs_dtree.c:1561 Write of size 4 at addr ffff88802710505c by task syz.2.63/4644 CPU: 0 PID: 4644 Comm: syz.2.63 Not tainted 6.1.143-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 dtMoveEntry fs/jfs/jfs_dtree.c:3850 [inline] dtSplitPage+0x1ed1/0x31d0 fs/jfs/jfs_dtree.c:1561 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0xfbd/0x58a0 fs/jfs/jfs_dtree.c:871 jfs_create+0x69d/0xa50 fs/jfs/namei.c:137 lookup_open fs/namei.c:3482 [inline] open_last_lookups fs/namei.c:3550 [inline] path_openat+0x1187/0x2e70 fs/namei.c:3780 do_filp_open+0x1c1/0x3c0 fs/namei.c:3810 do_sys_openat2+0x142/0x490 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_creat fs/open.c:1412 [inline] __se_sys_creat fs/open.c:1406 [inline] __x64_sys_creat+0x8c/0xb0 fs/open.c:1406 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f95a858e929 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:00007f95a93f2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f95a87b5fa0 RCX: 00007f95a858e929 RDX: 0000000000000000 RSI: 0000000000000032 RDI: 00002000000008c0 RBP: 00007f95a8610b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f95a87b5fa0 R15: 00007ffd61b50218 Allocated by task 4254: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:689 [inline] lsm_file_alloc security/security.c:575 [inline] security_file_alloc+0x30/0x110 security/security.c:1543 __alloc_file+0xc2/0x230 fs/file_table.c:143 alloc_empty_file+0x90/0x180 fs/file_table.c:187 alloc_file+0x5c/0x5f0 fs/file_table.c:229 alloc_file_clone+0x23/0xa0 fs/file_table.c:284 create_pipe_files+0x420/0x700 fs/pipe.c:945 __do_pipe_flags+0x46/0x1f0 fs/pipe.c:967 do_pipe2+0x99/0x170 fs/pipe.c:1015 __do_sys_pipe2 fs/pipe.c:1033 [inline] __se_sys_pipe2 fs/pipe.c:1031 [inline] __x64_sys_pipe2+0x56/0x60 fs/pipe.c:1031 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888027105000 which belongs to the cache lsm_file_cache of size 80 The buggy address is located 12 bytes to the right of 80-byte region [ffff888027105000, ffff888027105050) The buggy address belongs to the physical page: page:ffffea00009c4140 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x27105 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000001 ffff888140009140 raw: 0000000000000000 0000000000240024 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 3641, tgid 3641 (udevd), ts 24966361790, free_ts 24945011588 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x87/0x2c0 mm/slub.c:1992 ___slab_alloc+0xbc6/0x1220 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x1b7/0x2f0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:689 [inline] lsm_file_alloc security/security.c:575 [inline] security_file_alloc+0x30/0x110 security/security.c:1543 __alloc_file+0xc2/0x230 fs/file_table.c:143 alloc_empty_file+0x90/0x180 fs/file_table.c:187 path_openat+0xfc/0x2e70 fs/namei.c:3769 do_filp_open+0x1c1/0x3c0 fs/namei.c:3810 do_sys_openat2+0x142/0x490 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1345 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_slab mm/slub.c:2031 [inline] discard_slab mm/slub.c:2037 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2586 put_cpu_partial+0x17c/0x250 mm/slub.c:2662 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x123/0x2f0 mm/slub.c:3422 getname_flags+0xb7/0x500 fs/namei.c:139 do_sys_openat2+0xcf/0x490 fs/open.c:1312 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1345 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888027104f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888027104f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888027105000: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fa fb ^ ffff888027105080: fb fb fb fb fb fb fb fb fc fc fc fc fa fb fb fb ffff888027105100: fb fb fb fb fb fb fc fc fc fc fa fb fb fb fb fb ==================================================================