System zones: 0-1, 3-36 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. ================================================================== BUG: KASAN: use-after-free in ext4_get_inode_usage+0x493/0x640 fs/ext4/xattr.c:874 Read of size 4 at addr ffff8880606840f0 by task syz.0.17/6328 CPU: 0 UID: 0 PID: 6328 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 ext4_get_inode_usage+0x493/0x640 fs/ext4/xattr.c:874 __dquot_transfer+0x17b/0x2320 fs/quota/dquot.c:2026 dquot_transfer+0x48f/0x660 fs/quota/dquot.c:2189 ext4_setattr+0x894/0x1d60 fs/ext4/inode.c:5935 notify_change+0xc1a/0xf40 fs/attr.c:556 chown_common+0x466/0x6b0 fs/open.c:776 vfs_fchown fs/open.c:841 [inline] ksys_fchown+0xe9/0x160 fs/open.c:853 __do_sys_fchown fs/open.c:858 [inline] __se_sys_fchown fs/open.c:856 [inline] __x64_sys_fchown+0x7a/0x90 fs/open.c:856 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10a/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fdb3739ce59 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:00007fdb38181028 EFLAGS: 00000246 ORIG_RAX: 000000000000005d RAX: ffffffffffffffda RBX: 00007fdb37615fa0 RCX: 00007fdb3739ce59 RDX: 000000000000ee01 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007fdb37432d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdb37616038 R14: 00007fdb37615fa0 R15: 00007fff459602a8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888060684000 pfn:0x60684 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001d72008 ffffea000179f708 0000000000000000 raw: ffff888060684000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5832, tgid 5832 (scp), ts 97396939607, free_ts 121089292371 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x238/0x280 mm/page_alloc.c:1858 prep_new_page mm/page_alloc.c:1866 [inline] get_page_from_freelist+0x24a0/0x2520 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5226 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x650 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x339/0x3c0 mm/slub.c:7272 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x321/0x710 mm/slub.c:4652 alloc_from_pcs mm/slub.c:4750 [inline] slab_alloc_node mm/slub.c:4884 [inline] kmem_cache_alloc_node_noprof+0x40d/0x650 mm/slub.c:4951 kmalloc_reserve net/core/skbuff.c:613 [inline] __alloc_skb+0x27d/0x770 net/core/skbuff.c:713 napi_alloc_skb+0x5d/0x7a0 net/core/skbuff.c:853 page_to_skb+0x225/0x14a0 drivers/net/virtio_net.c:884 receive_mergeable drivers/net/virtio_net.c:2411 [inline] receive_buf+0x766/0x1c80 drivers/net/virtio_net.c:2575 virtnet_receive_packets drivers/net/virtio_net.c:2900 [inline] virtnet_receive drivers/net/virtio_net.c:2924 [inline] virtnet_poll+0x215e/0x2e70 drivers/net/virtio_net.c:3013 __napi_poll+0xae/0x320 net/core/dev.c:7733 napi_poll net/core/dev.c:7796 [inline] net_rx_action+0x622/0xce0 net/core/dev.c:7953 handle_softirqs+0x22a/0x830 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x210 kernel/softirq.c:735 page last free pid 3292 tgid 3292 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1402 [inline] __free_frozen_pages+0xb6f/0xcb0 mm/page_alloc.c:2943 __slab_free+0x274/0x2c0 mm/slub.c:5613 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x60 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4570 [inline] slab_alloc_node mm/slub.c:4899 [inline] __do_kmalloc_node mm/slub.c:5295 [inline] __kmalloc_noprof+0x311/0x730 mm/slub.c:5308 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] ethnl_default_notify+0x196/0xac0 net/ethtool/netlink.c:989 ethtool_notify net/ethtool/netlink.c:1094 [inline] ethnl_notify_features net/ethtool/netlink.c:1102 [inline] ethnl_netdev_event+0xe2/0x160 net/ethtool/netlink.c:1117 notifier_call_chain+0x1ad/0x3c0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline] call_netdevice_notifiers net/core/dev.c:2301 [inline] netdev_features_change net/core/dev.c:1590 [inline] netdev_change_features net/core/dev.c:11103 [inline] netdev_compute_master_upper_features+0x91e/0xac0 net/core/dev.c:12870 team_port_del+0xcc0/0xe70 drivers/net/team/team_core.c:1448 team_del_slave_on_unregister drivers/net/team/team_core.c:2110 [inline] team_device_event+0x1ec/0x570 drivers/net/team/team_core.c:3171 notifier_call_chain+0x1ad/0x3c0 kernel/notifier.c:85 call_netdevice_notifiers_extack net/core/dev.c:2287 [inline] call_netdevice_notifiers net/core/dev.c:2301 [inline] unregister_netdevice_many_notify+0x17a3/0x22a0 net/core/dev.c:12421 unregister_netdevice_many net/core/dev.c:12484 [inline] default_device_exit_batch+0xaf0/0xb70 net/core/dev.c:13076 ops_exit_list net/core/net_namespace.c:205 [inline] ops_undo_list+0x52b/0x940 net/core/net_namespace.c:252 Memory state around the buggy address: ffff888060683f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888060684000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888060684080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888060684100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888060684180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================