loop0: detected capacity change from 0 to 33280 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. loop0: detected capacity change from 33280 to 49 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0xa14/0x1ee0 fs/ext4/xattr.c:1763 Read of size 18446744073709551600 at addr ffff8880750c26d0 by task syz.0.17/5967 CPU: 1 PID: 5967 Comm: syz.0.17 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xa8/0x210 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x241/0x290 mm/kasan/generic.c:187 __asan_memmove+0x29/0x70 mm/kasan/shadow.c:94 ext4_xattr_set_entry+0xa14/0x1ee0 fs/ext4/xattr.c:1763 ext4_xattr_ibody_set+0x262/0x700 fs/ext4/xattr.c:2272 ext4_destroy_inline_data_nolock+0x23b/0x5f0 fs/ext4/inline.c:467 ext4_convert_inline_data_to_extent fs/ext4/inline.c:626 [inline] ext4_try_to_write_inline_data+0x739/0x1310 fs/ext4/inline.c:766 ext4_write_begin+0x252/0x10b0 fs/ext4/inode.c:1182 ext4_da_write_begin+0x2e5/0x9a0 fs/ext4/inode.c:2924 generic_perform_write+0x2fe/0x5c0 mm/filemap.c:4032 ext4_buffered_write_iter+0xd5/0x360 fs/ext4/file.c:306 ext4_file_write_iter+0x1e7/0x1980 fs/ext4/file.c:-1 call_write_iter include/linux/fs.h:2021 [inline] aio_write+0x564/0x7d0 fs/aio.c:1604 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x768/0x12d0 fs/aio.c:2028 __do_sys_io_submit fs/aio.c:2087 [inline] __se_sys_io_submit+0x1a1/0x310 fs/aio.c:2057 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fcb035a9b59 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:00007ffc95cf1c88 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007fcb03835fa0 RCX: 00007fcb035a9b59 RDX: 000020000002a640 RSI: 0000000000000001 RDI: 00007fcb0450d000 RBP: 00007fcb0363a18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcb03835fa0 R15: 00007fcb03835fa0 The buggy address belongs to the physical page: page:ffffea0001d43080 refcount:3 mapcount:0 mapping:ffff88802110ac08 index:0x3 pfn:0x750c2 memcg:ffff88807a4d6000 aops:def_blk_aops ino:700000 flags: 0xfff1800000821c(referenced|uptodate|dirty|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff1800000821c 0000000000000000 dead000000000122 ffff88802110ac08 raw: 0000000000000003 ffff888060be31d0 00000003ffffffff ffff88807a4d6000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x140cc0(GFP_USER|__GFP_COMP), pid 5967, tgid 5967 (syz.0.17), ts 110024258323, free_ts 110019840385 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1c1/0x200 mm/page_alloc.c:1583 prep_new_page mm/page_alloc.c:1590 [inline] get_page_from_freelist+0x219a/0x22c0 mm/page_alloc.c:3231 __alloc_pages+0x1f0/0x460 mm/page_alloc.c:4511 folio_alloc+0x1e/0x30 mm/mempolicy.c:2280 filemap_alloc_folio+0xdf/0x490 mm/filemap.c:1007 do_read_cache_folio+0x381/0x7f0 mm/filemap.c:3769 read_mapping_folio include/linux/pagemap.h:898 [inline] read_part_sector+0xd2/0x350 block/partitions/core.c:718 ultrix_partition+0xb6/0x860 block/partitions/ultrix.c:29 check_partition block/partitions/core.c:138 [inline] blk_add_partitions block/partitions/core.c:600 [inline] bdev_disk_changed+0x755/0x1450 block/partitions/core.c:689 loop_reread_partitions drivers/block/loop.c:513 [inline] loop_set_status+0x568/0x6c0 drivers/block/loop.c:1318 loop_set_status64 drivers/block/loop.c:1414 [inline] lo_ioctl+0xd17/0x1d00 drivers/block/loop.c:1589 blkdev_ioctl+0x5b2/0x730 block/ioctl.c:639 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1183 [inline] free_unref_page_prepare+0x7d7/0x8f0 mm/page_alloc.c:2374 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2467 discard_slab mm/slub.c:2155 [inline] __unfreeze_partials+0x1cf/0x210 mm/slub.c:2695 put_cpu_partial+0x17c/0x250 mm/slub.c:2771 __slab_free+0x319/0x400 mm/slub.c:3729 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xd0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x143/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:306 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6a/0x4d0 mm/slab.h:770 slab_alloc_node mm/slub.c:3524 [inline] __kmem_cache_alloc_node+0x197/0x260 mm/slub.c:3563 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] gro_cells_destroy+0x2f1/0x3c0 net/core/gro_cells.c:125 ip_tunnel_dev_free+0x19/0x60 net/ipv4/ip_tunnel.c:1042 netdev_run_todo+0xbe7/0xdb0 net/core/dev.c:10720 ip_tunnel_delete_nets+0x32f/0x380 net/ipv4/ip_tunnel.c:1156 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x785/0xb00 net/core/net_namespace.c:656 Memory state around the buggy address: ffff8880750c2580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880750c2600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880750c2680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff8880750c2700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880750c2780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================