================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x11b3/0x3a60 fs/ext4/xattr.c:1731 Read of size 18446744073709551600 at addr ffff888117b8e008 by task syz.2.16/500 CPU: 0 PID: 500 Comm: syz.2.16 Not tainted 5.10.234-syzkaller-1006684-g094fc3778d6b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x1e2/0x24b lib/dump_stack.c:118 print_address_description+0x81/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:452 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x293/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x11b3/0x3a60 fs/ext4/xattr.c:1731 ext4_xattr_ibody_set+0x124/0x390 fs/ext4/xattr.c:2234 ext4_destroy_inline_data_nolock+0x1d3/0x5d0 fs/ext4/inline.c:447 ext4_convert_inline_data_nolock+0x3d8/0xd80 fs/ext4/inline.c:1240 ext4_try_add_inline_entry+0x805/0xb60 fs/ext4/inline.c:1349 ext4_add_entry+0x6c2/0x1280 fs/ext4/namei.c:2414 ext4_add_nondir+0x97/0x270 fs/ext4/namei.c:2786 ext4_create+0x348/0x530 fs/ext4/namei.c:2831 lookup_open fs/namei.c:3247 [inline] open_last_lookups fs/namei.c:3317 [inline] path_openat+0x1377/0x3000 fs/namei.c:3506 do_filp_open+0x21c/0x460 fs/namei.c:3536 do_sys_openat2+0x13f/0x710 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1244 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:-1 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f90768df169 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:00007f9076351038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f9076af7fa0 RCX: 00007f90768df169 RDX: 000000000000275a RSI: 00002000000000c0 RDI: ffffffffffffff9c RBP: 00007f90769602a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9076af7fa0 R15: 00007ffcda54d948 The buggy address belongs to the page: page:ffffea00045ee380 refcount:2 mapcount:1 mapping:ffff8881091a4b10 index:0x4 pfn:0x117b8e aops:def_blk_aops ino:0 flags: 0x4000000000020036(referenced|uptodate|lru|active|mappedtodisk) raw: 4000000000020036 ffffea00045ee348 ffffea00045ee3c8 ffff8881091a4b10 raw: 0000000000000004 0000000000000000 0000000200000000 ffff88810013a000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88810013a000 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 439, ts 54688950338, free_ts 54635141926 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x166/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2d8c/0x2f30 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x435/0xaf0 mm/page_alloc.c:5348 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] __page_cache_alloc include/linux/pagemap.h:290 [inline] page_cache_ra_unbounded+0x363/0x890 mm/readahead.c:226 do_page_cache_ra mm/readahead.c:277 [inline] force_page_cache_ra+0x373/0x3e0 mm/readahead.c:308 page_cache_sync_ra+0x254/0x2c0 mm/readahead.c:582 page_cache_sync_readahead include/linux/pagemap.h:837 [inline] generic_file_buffered_read+0x6da/0x2ad0 mm/filemap.c:2250 generic_file_read_iter+0x107/0x6b0 mm/filemap.c:2568 blkdev_read_iter+0x135/0x190 fs/block_dev.c:1956 call_read_iter include/linux/fs.h:2052 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x990/0xba0 fs/read_write.c:496 ksys_read+0x199/0x2c0 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:-1 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] __free_pages_ok+0x82c/0x850 mm/page_alloc.c:1629 free_the_page+0x76/0x370 mm/page_alloc.c:5409 __free_pages+0x67/0xc0 mm/page_alloc.c:5418 __free_slab+0xcf/0x190 mm/slub.c:1894 free_slab mm/slub.c:1909 [inline] discard_slab mm/slub.c:1915 [inline] unfreeze_partials+0x15e/0x190 mm/slub.c:2410 put_cpu_partial+0xbf/0x180 mm/slub.c:2446 __slab_free+0x2c8/0x3a0 mm/slub.c:3095 do_slab_free mm/slub.c:3191 [inline] ___cache_free+0x111/0x130 mm/slub.c:3210 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x47/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x15a/0x170 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x61/0x2f0 mm/slab.h:583 slab_alloc_node mm/slub.c:2947 [inline] slab_alloc mm/slub.c:2955 [inline] __kmalloc+0x183/0x330 mm/slub.c:4029 __kmalloc_node include/linux/slab.h:418 [inline] kmalloc_node include/linux/slab.h:575 [inline] kzalloc_node include/linux/slab.h:675 [inline] qdisc_alloc+0x76/0x750 net/sched/sch_generic.c:861 qdisc_create_dflt+0x6b/0x3d0 net/sched/sch_generic.c:924 Memory state around the buggy address: ffff888117b8df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888117b8df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888117b8e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888117b8e080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888117b8e100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================