================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x13ba/0x3940 fs/ext4/xattr.c:1736 Read of size 18446744073709551600 at addr ffff888119f7d2b8 by task kworker/u4:5/364 CPU: 1 PID: 364 Comm: kworker/u4:5 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: writeback wb_workfn (flush-7:1) Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0xf1/0x140 mm/kasan/report.c:444 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x249/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x13ba/0x3940 fs/ext4/xattr.c:1736 ext4_xattr_ibody_set+0x122/0x360 fs/ext4/xattr.c:2238 ext4_destroy_inline_data_nolock+0x234/0x5d0 fs/ext4/inline.c:468 ext4_destroy_inline_data+0x84/0xe0 fs/ext4/inline.c:1915 ext4_writepages+0x64f/0x3090 fs/ext4/inode.c:2748 do_writepages+0x473/0x6c0 mm/page-writeback.c:2388 __writeback_single_inode+0xd5/0x9c0 fs/fs-writeback.c:1657 writeback_sb_inodes+0xa10/0x1610 fs/fs-writeback.c:1940 wb_writeback+0x40b/0x9d0 fs/fs-writeback.c:2116 wb_do_writeback fs/fs-writeback.c:2263 [inline] wb_workfn+0x3ac/0xf30 fs/fs-writeback.c:2304 process_one_work+0x6be/0xba0 kernel/workqueue.c:2325 worker_thread+0xa59/0x1200 kernel/workqueue.c:2472 kthread+0x411/0x500 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the page: page:ffffea000467df40 refcount:2 mapcount:0 mapping:ffff88810928db18 index:0x26 pfn:0x119f7d memcg:ffff888129e9a280 aops:def_blk_aops ino:700001 flags: 0x4000000000022036(referenced|uptodate|lru|active|private|mappedtodisk|zone=1) raw: 4000000000022036 ffffea000467df08 ffffea00045ec708 ffff88810928db18 raw: 0000000000000026 ffff8881371df348 00000002ffffffff ffff888129e9a280 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 1569, ts 66042717732, free_ts 66011104686 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2605 prep_new_page+0x1c/0x110 mm/page_alloc.c:2611 get_page_from_freelist+0x2d3a/0x2dc0 mm/page_alloc.c:4485 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5822 __alloc_pages_node include/linux/gfp.h:595 [inline] alloc_pages_node include/linux/gfp.h:609 [inline] alloc_pages include/linux/gfp.h:622 [inline] __page_cache_alloc include/linux/pagemap.h:305 [inline] page_cache_ra_unbounded+0x2d5/0x9a0 mm/readahead.c:227 do_page_cache_ra mm/readahead.c:280 [inline] ondemand_readahead+0x8fa/0xe80 mm/readahead.c:565 page_cache_async_ra+0x2a9/0x2e0 mm/readahead.c:624 page_cache_async_readahead include/linux/pagemap.h:854 [inline] do_async_mmap_readahead mm/filemap.c:3045 [inline] filemap_fault+0x9b5/0x1770 mm/filemap.c:3150 __do_fault+0x264/0x2f0 mm/memory.c:4192 do_read_fault mm/memory.c:4556 [inline] do_fault mm/memory.c:4697 [inline] handle_pte_fault+0x187d/0x2710 mm/memory.c:4911 __handle_mm_fault mm/memory.c:-1 [inline] do_handle_mm_fault+0x1af9/0x1de0 mm/memory.c:5333 handle_mm_fault include/linux/mm.h:1847 [inline] faultin_page mm/gup.c:976 [inline] __get_user_pages+0x80e/0x10c0 mm/gup.c:1197 populate_vma_page_range mm/gup.c:1529 [inline] __mm_populate+0x324/0x470 mm/gup.c:1638 mm_populate include/linux/mm.h:2704 [inline] vm_mmap_pgoff+0x262/0x430 mm/util.c:560 ksys_mmap_pgoff+0x161/0x1d0 mm/mmap.c:1647 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0xfa/0x110 arch/x86/kernel/sys_x86_64.c:86 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1472 [inline] free_pcp_prepare mm/page_alloc.c:1544 [inline] free_unref_page_prepare+0x542/0x550 mm/page_alloc.c:3534 free_unref_page+0xae/0x540 mm/page_alloc.c:3616 free_the_page mm/page_alloc.c:805 [inline] __free_pages+0x6c/0x100 mm/page_alloc.c:5898 free_image_page+0x154/0x190 kernel/power/snapshot.c:265 free_zone_bm_rtree kernel/power/snapshot.c:578 [inline] memory_bm_free kernel/power/snapshot.c:724 [inline] free_basic_memory_bitmaps+0x183/0x200 kernel/power/snapshot.c:1168 snapshot_release+0xe0/0x1c0 kernel/power/user.c:121 __fput+0x20b/0x8b0 fs/file_table.c:311 ____fput+0x15/0x20 fs/file_table.c:339 task_work_run+0x127/0x190 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0xa9e/0x27e0 kernel/exit.c:889 do_group_exit+0x141/0x310 kernel/exit.c:1003 get_signal+0x66a/0x1480 kernel/signal.c:2907 arch_do_signal_or_restart+0xdf/0x11c0 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0xa7/0xe0 kernel/entry/common.c:178 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:307 Memory state around the buggy address: ffff888119f7d180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119f7d200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888119f7d280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888119f7d300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888119f7d380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== attempt to access beyond end of device loop4: rw=2049, want=40976, limit=40427