loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in ciCompare fs/jfs/jfs_dtree.c:3428 [inline] BUG: KASAN: slab-out-of-bounds in dtSearch+0x16b0/0x21b0 fs/jfs/jfs_dtree.c:645 Read of size 1 at addr ffff88807721e1cc by task syz.0.18/6479 CPU: 1 UID: 0 PID: 6479 Comm: syz.0.18 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x185/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x114/0x150 mm/kasan/report.c:595 ciCompare fs/jfs/jfs_dtree.c:3428 [inline] dtSearch+0x16b0/0x21b0 fs/jfs/jfs_dtree.c:645 jfs_lookup+0x151/0x380 fs/jfs/namei.c:1461 lookup_open fs/namei.c:3686 [inline] open_last_lookups fs/namei.c:3807 [inline] path_openat+0x10fd/0x3830 fs/namei.c:4043 do_filp_open+0x1f6/0x400 fs/namei.c:4073 do_sys_openat2+0x11d/0x1b0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x134/0x160 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x86/0x2e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f39fd18ebe9 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:00007f39fdf37038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f39fd3b5fa0 RCX: 00007f39fd18ebe9 RDX: 0000000000183341 RSI: 0000200000000080 RDI: ffffffffffffff9c RBP: 00007f39fd211e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f39fd3b6038 R14: 00007f39fd3b5fa0 R15: 00007ffdb4313ce8 The buggy address belongs to the object at ffff88807721dc30 which belongs to the cache jfs_ip of size 2232 The buggy address is located 1436 bytes inside of allocated 2232-byte region [ffff88807721dc30, ffff88807721e4e8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x77218 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff8881472a8780 dead000000000100 dead000000000122 raw: 0000000000000000 00000000800d000d 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff8881472a8780 dead000000000100 dead000000000122 head: 0000000000000000 00000000800d000d 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001dc8601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0xd2050(__GFP_RECLAIMABLE|__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6477, tgid 6476 (syz.0.17), ts 137785391950, free_ts 114171108023 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x230/0x280 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x2b2b/0x2ce0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x17d/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab+0x8a/0x360 mm/slub.c:2655 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0xc1a/0x1460 mm/slub.c:3891 __slab_alloc mm/slub.c:3981 [inline] __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] kmem_cache_alloc_lru_noprof+0x278/0x3b0 mm/slub.c:4248 jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode+0x66/0x1a0 fs/inode.c:346 new_inode+0x1e/0x170 fs/inode.c:1145 jfs_fill_super+0x565/0xd80 fs/jfs/super.c:511 get_tree_bdev_flags+0x40a/0x4d0 fs/super.c:1692 vfs_get_tree+0x8e/0x280 fs/super.c:1815 do_new_mount+0x29e/0x9e0 fs/namespace.c:3808 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4324 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x86/0x2e0 arch/x86/entry/syscall_64.c:94 page last free pid 5460 tgid 5460 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbaa/0xd00 mm/page_alloc.c:2895 __slab_free+0x2ff/0x3b0 mm/slub.c:4591 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] kmem_cache_alloc_node_noprof+0x1af/0x3a0 mm/slub.c:4281 __alloc_skb+0x10e/0x2d0 net/core/skbuff.c:659 alloc_skb include/linux/skbuff.h:1336 [inline] alloc_skb_with_frags+0xc6/0x880 net/core/skbuff.c:6665 sock_alloc_send_pskb+0x853/0x990 net/core/sock.c:2980 unix_dgram_sendmsg+0x45d/0x1850 net/unix/af_unix.c:2153 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 sock_write_iter+0x254/0x330 net/socket.c:1179 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x58b/0xb10 fs/read_write.c:686 ksys_write+0x141/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x86/0x2e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e Memory state around the buggy address: ffff88807721e080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807721e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807721e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807721e200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807721e280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================