ffff8880709d3fe0: 00 02 00 00 00 00 00 00 e8 3f 9d 70 80 88 ff ff .........?.p.... ffff8880709d3ff0: e8 3f 9d 70 80 88 ff ff 00 00 00 00 00 00 00 00 .?.p............ ffff8880709d4000: 00 40 9d 70 80 88 ff ff 00 40 9d 70 80 88 ff ff .@.p.....@.p.... ffff8880709d4010: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ................ ffff8880709d4020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff8880709d4030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ================================================================== BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0x72d/0xba0 lib/hexdump.c:193 Read of size 1 at addr ffff8880709d4040 by task syz-executor.0/3930 CPU: 0 PID: 3930 Comm: syz-executor.0 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 hex_dump_to_buffer+0x72d/0xba0 lib/hexdump.c:193 print_hex_dump+0x13b/0x250 lib/hexdump.c:276 ea_get+0xd02/0x12b0 fs/jfs/xattr.c:565 jfs_listxattr+0xe1/0x980 fs/jfs/xattr.c:879 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x282/0x2e0 fs/xattr.c:804 path_listxattr fs/xattr.c:828 [inline] __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __x64_sys_listxattr+0x172/0x230 fs/xattr.c:837 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f8d9c87cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8d9d67c0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007f8d9c99bf80 RCX: 00007f8d9c87cb29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f8d9c8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8d9c99bf80 R15: 00007ffcf60495a8 Allocated by task 3930: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 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_lru+0x10c/0x2d0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3245 [inline] jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1c8/0x830 fs/inode.c:1369 jfs_iget+0x1e/0x3b0 fs/jfs/inode.c:29 jfs_lookup+0x222/0x400 fs/jfs/namei.c:1467 __lookup_slow+0x27e/0x3d0 fs/namei.c:1690 lookup_slow+0x53/0x70 fs/namei.c:1707 walk_component+0x2d0/0x400 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2479 filename_lookup+0x251/0x600 fs/namei.c:2508 user_path_at_empty+0x3e/0x60 fs/namei.c:2905 user_path_at include/linux/namei.h:57 [inline] path_listxattr fs/xattr.c:825 [inline] __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __x64_sys_listxattr+0x108/0x230 fs/xattr.c:837 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff8880709d3780 which belongs to the cache jfs_ip of size 2240 The buggy address is located 0 bytes to the right of 2240-byte region [ffff8880709d3780, ffff8880709d4040) The buggy address belongs to the physical page: page:ffffea0001c27400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x709d0 head:ffffea0001c27400 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff8880196f6d01 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888146afa3c0 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff8880196f6d01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 3930, tgid 3929 (syz-executor.0), ts 91182390356, free_ts 86917012874 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2517 prep_new_page mm/page_alloc.c:2524 [inline] get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4313 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5590 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x84/0x2d0 mm/slub.c:1992 ___slab_alloc+0xc20/0x1270 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_lru+0x1a5/0x2d0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3245 [inline] jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x61/0x1d0 fs/inode.c:1059 new_inode+0x25/0x1d0 fs/inode.c:1087 jfs_fill_super+0x404/0xc40 fs/jfs/super.c:544 mount_bdev+0x2c9/0x3f0 fs/super.c:1443 legacy_get_tree+0xeb/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x2ba/0xb40 fs/namespace.c:3056 do_mount fs/namespace.c:3399 [inline] __do_sys_mount fs/namespace.c:3607 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3464 free_slab mm/slub.c:2031 [inline] discard_slab mm/slub.c:2037 [inline] __unfreeze_partials+0x1b7/0x210 mm/slub.c:2586 put_cpu_partial+0x17b/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+0x156/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 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_lru+0x10c/0x2d0 mm/slub.c:3429 alloc_inode_sb include/linux/fs.h:3245 [inline] alloc_inode fs/inode.c:263 [inline] new_inode_pseudo+0x81/0x1d0 fs/inode.c:1059 get_pipe_inode fs/pipe.c:878 [inline] create_pipe_files+0x4c/0x700 fs/pipe.c:918 __do_pipe_flags+0x46/0x200 fs/pipe.c:967 do_pipe2+0xd0/0x300 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+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff8880709d3f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880709d3f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880709d4000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8880709d4080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880709d4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================