loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in diWrite+0xbe6/0x1600 fs/jfs/jfs_imap.c:753 Write of size 32 at addr ffff888054a670c0 by task syz.0.134/5012 CPU: 1 PID: 5012 Comm: syz.0.134 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/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/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x27b/0x290 mm/kasan/generic.c:189 memcpy+0x3c/0x60 mm/kasan/shadow.c:66 diWrite+0xbe6/0x1600 fs/jfs/jfs_imap.c:753 txCommit+0x84b/0x51c0 fs/jfs/jfs_txnmgr.c:1255 add_missing_indices+0x791/0xaa0 fs/jfs/jfs_dtree.c:2664 jfs_readdir+0x1da7/0x3b40 fs/jfs/jfs_dtree.c:3020 iterate_dir+0x218/0x560 fs/readdir.c:-1 __do_sys_getdents64 fs/readdir.c:369 [inline] __se_sys_getdents64+0xe5/0x260 fs/readdir.c:354 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:0x7f917458eba9 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:00007f917548d038 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f91747d5fa0 RCX: 00007f917458eba9 RDX: 0000000000001000 RSI: 0000200000000f80 RDI: 0000000000000006 RBP: 00007f9174611e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f91747d6038 R14: 00007f91747d5fa0 R15: 00007ffdc36d3a88 The buggy address belongs to the object at ffff888054a670a0 which belongs to the cache audit_buffer of size 24 The buggy address is located 8 bytes to the right of 24-byte region [ffff888054a670a0, ffff888054a670b8) The buggy address belongs to the physical page: page:ffffea00015299c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888054a67028 pfn:0x54a67 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888141e6d500 raw: ffff888054a67028 0000000080660064 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 4508, tgid 4505 (syz.3.20), ts 89964905083, free_ts 89953927940 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:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 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+0x1b7/0x2f0 mm/slub.c:3383 audit_buffer_alloc kernel/audit.c:1793 [inline] audit_log_start+0x122/0x830 kernel/audit.c:1915 integrity_audit_message+0xfa/0x400 security/integrity/integrity_audit.c:47 integrity_audit_msg+0x3d/0x50 security/integrity/integrity_audit.c:32 ima_collect_measurement+0x853/0xac0 security/integrity/ima/ima_api.c:324 process_measurement+0xfae/0x1a10 security/integrity/ima/ima_main.c:351 ima_file_check+0xc2/0x100 security/integrity/ima/ima_main.c:534 do_open fs/namei.c:3628 [inline] path_openat+0x2679/0x2e70 fs/namei.c:3783 do_filp_open+0x1c1/0x3c0 fs/namei.c:3810 do_sys_openat2+0x142/0x490 fs/open.c:1318 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:2036 [inline] discard_slab mm/slub.c:2042 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2591 put_cpu_partial+0x17c/0x250 mm/slub.c:2667 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:3359 [inline] kmem_cache_alloc_node+0x14d/0x320 mm/slub.c:3404 __alloc_skb+0xfc/0x7e0 net/core/skbuff.c:505 alloc_skb_fclone include/linux/skbuff.h:1321 [inline] tcp_stream_alloc_skb+0x3e/0x330 net/ipv4/tcp.c:869 tcp_sendmsg_locked+0xd1c/0x3f10 net/ipv4/tcp.c:1332 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1490 sock_sendmsg_nosec net/socket.c:718 [inline] __sock_sendmsg net/socket.c:730 [inline] sock_write_iter+0x2b5/0x3a0 net/socket.c:1143 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x44c/0x960 fs/read_write.c:584 ksys_write+0x143/0x240 fs/read_write.c:637 Memory state around the buggy address: ffff888054a66f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888054a67000: fb fb fb fc fc fb fb fb fc fc fc fc fc fc fc fc >ffff888054a67080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888054a67100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888054a67180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================