loop9: detected capacity change from 1024 to 64 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x1576/0x20b0 fs/ext4/xattr.c:1763 Read of size 18446744073709551600 at addr ffff8880745112b8 by task syz.9.1662/18763 CPU: 0 UID: 0 PID: 18763 Comm: syz.9.1662 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1d0 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:186 [inline] kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200 __asan_memmove+0x23/0x60 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0x1576/0x20b0 fs/ext4/xattr.c:1763 ext4_xattr_ibody_set+0x3d3/0x5d0 fs/ext4/xattr.c:2275 ext4_destroy_inline_data_nolock+0x28b/0x5c0 fs/ext4/inline.c:472 ext4_convert_inline_data_nolock+0x17d/0xad0 fs/ext4/inline.c:1123 ext4_convert_inline_data+0x540/0x610 fs/ext4/inline.c:1994 ext4_fallocate+0x246/0x3cd0 fs/ext4/extents.c:4884 vfs_fallocate+0x576/0x10d0 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0xd5/0x140 fs/open.c:365 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f92d819ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f92d9025028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f92d8415fa0 RCX: 00007f92d819ce59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007f92d8232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001001f0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f92d8416038 R14: 00007f92d8415fa0 R15: 00007ffcf43dbd98 The buggy address belongs to the physical page: page: refcount:2 mapcount:0 mapping:ffff8880240a88c0 index:0x2 pfn:0x74511 memcg:ffff888056733b00 aops:def_blk_aops ino:700009 dentry name(?):"" flags: 0xfff38000004234(referenced|dirty|lru|workingset|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff38000004234 ffff88807d9d9220 ffffea0001cd7208 ffff8880240a88c0 raw: 0000000000000002 ffff888053619d98 00000002ffffffff ffff888056733b00 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Movable, gfp_mask 0x148c48(GFP_NOFS|__GFP_MOVABLE|__GFP_NOFAIL|__GFP_COMP|__GFP_HARDWALL), pid 18769, tgid 18761 (syz.9.1662), ts 1420977998928, free_ts 1420971094765 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5226 alloc_pages_mpol+0x1fb/0x540 mm/mempolicy.c:2490 alloc_pages_noprof mm/mempolicy.c:2581 [inline] folio_alloc_noprof+0x22/0x250 mm/mempolicy.c:2591 filemap_alloc_folio_noprof.part.0+0x377/0x450 mm/filemap.c:1014 filemap_alloc_folio_noprof mm/filemap.c:2027 [inline] __filemap_get_folio_mpol+0x6a4/0xe70 mm/filemap.c:2012 __filemap_get_folio include/linux/pagemap.h:763 [inline] grow_dev_folio fs/buffer.c:954 [inline] grow_buffers fs/buffer.c:1020 [inline] __getblk_slow fs/buffer.c:1038 [inline] bdev_getblk+0x246/0x6a0 fs/buffer.c:1358 __getblk include/linux/buffer_head.h:380 [inline] sb_getblk include/linux/buffer_head.h:386 [inline] __ext4_get_inode_loc+0x571/0x1510 fs/ext4/inode.c:4890 ext4_get_inode_loc+0xbd/0x160 fs/ext4/inode.c:5018 ext4_xattr_ibody_get+0x106/0x4b0 fs/ext4/xattr.c:648 ext4_xattr_get+0x162/0x770 fs/ext4/xattr.c:709 vfs_getxattr_alloc+0x1ba/0x350 fs/xattr.c:411 ima_read_xattr+0x38/0x60 security/integrity/ima/ima_appraise.c:230 process_measurement+0xd84/0x2350 security/integrity/ima/ima_main.c:406 ima_file_check+0xcc/0x120 security/integrity/ima/ima_main.c:685 page last free pid 18749 tgid 18741 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] free_unref_folios+0xa0d/0x16f0 mm/page_alloc.c:3004 folios_put_refs+0x571/0xa90 mm/swap.c:1008 free_pages_and_swap_cache+0x22d/0x3b0 mm/swap_state.c:401 __tlb_batch_free_encoded_pages+0xe9/0x280 mm/mmu_gather.c:138 tlb_batch_pages_flush mm/mmu_gather.c:151 [inline] tlb_flush_mmu_free mm/mmu_gather.c:417 [inline] tlb_flush_mmu mm/mmu_gather.c:424 [inline] tlb_finish_mmu+0x1b0/0x810 mm/mmu_gather.c:549 exit_mmap+0x454/0xa10 mm/mmap.c:1313 __mmput+0x12a/0x410 kernel/fork.c:1178 mmput+0x67/0x80 kernel/fork.c:1201 exit_mm kernel/exit.c:582 [inline] do_exit+0x8b2/0x2af0 kernel/exit.c:964 do_group_exit+0xd5/0x2a0 kernel/exit.c:1119 get_signal+0x20ff/0x2210 kernel/signal.c:3037 arch_do_signal_or_restart+0x91/0x7e0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x8b/0x4f0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x706/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888074511180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888074511200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888074511280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888074511300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888074511380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================