EXT4-fs (loop3): Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE [EXT4 FS bs=1024, gc=1, bpg=131072, ipg=32, mo=e855c01c, mo2=0003] System zones: 0-1, 3-36 EXT4-fs (loop3): mounted filesystem without journal. Opts: grpquota,delalloc,resuid=0x0000000000000000,debug,dioread_nolock,bsddf,nomblk_io_submit,noauto_da_alloc,,errors=continue overlayfs: './file0' not a directory ================================================================== BUG: KASAN: use-after-free in ext4_get_inode_usage+0x3a1/0x520 fs/ext4/xattr.c:817 Read of size 4 at addr ffff888100fee070 by task syz.3.108/746 CPU: 0 PID: 746 Comm: syz.3.108 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 ext4_get_inode_usage+0x3a1/0x520 fs/ext4/xattr.c:817 __dquot_transfer+0x192/0x20d0 fs/quota/dquot.c:2017 dquot_transfer+0x2f1/0x460 fs/quota/dquot.c:2169 ext4_setattr+0x715/0x1950 fs/ext4/inode.c:5577 notify_change+0xab3/0xe40 fs/attr.c:410 chown_common+0x335/0x500 fs/open.c:675 vfs_fchown fs/open.c:742 [inline] ksys_fchown+0xef/0x160 fs/open.c:753 __do_sys_fchown fs/open.c:761 [inline] __se_sys_fchown fs/open.c:759 [inline] __x64_sys_fchown+0x7a/0x90 fs/open.c:759 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f57cb8a9e59 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:00007f57ca304028 EFLAGS: 00000246 ORIG_RAX: 000000000000005d RAX: ffffffffffffffda RBX: 00007f57cbb22fa0 RCX: 00007f57cb8a9e59 RDX: 000000000000ee01 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f57cb93fd6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f57cbb23038 R14: 00007f57cbb22fa0 R15: 00007fff719a6228 Allocated by task 279: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] __kasan_slab_alloc+0xbd/0xf0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x162/0x2d0 mm/slub.c:2965 kmem_cache_zalloc include/linux/slab.h:657 [inline] __kernfs_new_node+0xe3/0x6b0 fs/kernfs/dir.c:662 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:739 __kernfs_create_file+0x4e/0x270 fs/kernfs/file.c:987 sysfs_add_file_mode_ns+0x29a/0x350 fs/sysfs/file.c:306 create_files fs/sysfs/group.c:64 [inline] internal_create_group+0x495/0xd00 fs/sysfs/group.c:149 internal_create_groups fs/sysfs/group.c:189 [inline] sysfs_create_groups+0x58/0x120 fs/sysfs/group.c:215 create_dir lib/kobject.c:100 [inline] kobject_add_internal+0x825/0xcc0 lib/kobject.c:263 kobject_add_varg lib/kobject.c:398 [inline] kobject_init_and_add+0x128/0x190 lib/kobject.c:481 netdev_queue_add_kobject net/core/net-sysfs.c:1649 [inline] netdev_queue_update_kobjects+0x16c/0x390 net/core/net-sysfs.c:1694 register_queue_kobjects net/core/net-sysfs.c:1755 [inline] netdev_register_kobject+0x2af/0x360 net/core/net-sysfs.c:2001 register_netdevice+0xdf0/0x13e0 net/core/dev.c:10069 veth_newlink+0x853/0xb60 drivers/net/veth.c:1387 __rtnl_newlink net/core/rtnetlink.c:3485 [inline] rtnl_newlink+0x1310/0x18f0 net/core/rtnetlink.c:3533 rtnetlink_rcv_msg+0xa31/0xcc0 net/core/rtnetlink.c:5613 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5631 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x89c/0xb50 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] __sys_sendto+0x467/0x620 net/socket.c:2006 __do_sys_sendto net/socket.c:2018 [inline] __se_sys_sendto net/socket.c:2014 [inline] __x64_sys_sendto+0xe5/0x100 net/socket.c:2014 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 417: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kmem_cache_free+0x100/0x2d0 mm/slub.c:3224 kernfs_put+0x310/0x480 fs/kernfs/dir.c:547 kernfs_remove_by_name_ns+0xea/0x160 fs/kernfs/dir.c:1599 kernfs_remove_by_name include/linux/kernfs.h:623 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0x105/0x2a0 fs/sysfs/group.c:289 sysfs_remove_groups+0x56/0xb0 fs/sysfs/group.c:313 __kobject_del+0x8a/0x2f0 lib/kobject.c:619 kobject_cleanup lib/kobject.c:704 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1db/0x270 lib/kobject.c:761 netdev_queue_update_kobjects+0x326/0x390 net/core/net-sysfs.c:1709 remove_queue_kobjects net/core/net-sysfs.c:1806 [inline] netdev_unregister_kobject+0x110/0x250 net/core/net-sysfs.c:1959 unregister_netdevice_many+0x154f/0x1a80 net/core/dev.c:10807 rtnl_delete_link net/core/rtnetlink.c:3084 [inline] rtnl_dellink+0x4f5/0x770 net/core/rtnetlink.c:3136 rtnetlink_rcv_msg+0xa31/0xcc0 net/core/rtnetlink.c:5613 netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2503 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5631 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x876/0xa40 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x89c/0xb50 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg net/socket.c:664 [inline] ____sys_sendmsg+0x5b7/0x8f0 net/socket.c:2376 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2430 __sys_sendmsg net/socket.c:2459 [inline] __do_sys_sendmsg net/socket.c:2468 [inline] __se_sys_sendmsg net/socket.c:2466 [inline] __x64_sys_sendmsg+0x1f9/0x2c0 net/socket.c:2466 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888100fee000 which belongs to the cache kernfs_node_cache of size 144 The buggy address is located 112 bytes inside of 144-byte region [ffff888100fee000, ffff888100fee090) The buggy address belongs to the page: page:ffffea000403fb80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100fee flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff88810018a480 raw: 0000000000000000 0000000000130013 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 279, ts 20174369118, free_ts 20149576098 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x1ac/0x2d0 mm/slub.c:2965 kmem_cache_zalloc include/linux/slab.h:657 [inline] __kernfs_new_node+0xe3/0x6b0 fs/kernfs/dir.c:662 kernfs_new_node+0x150/0x260 fs/kernfs/dir.c:739 kernfs_create_dir_ns+0x47/0x130 fs/kernfs/dir.c:1087 sysfs_create_dir_ns+0x128/0x290 fs/sysfs/dir.c:59 create_dir lib/kobject.c:89 [inline] kobject_add_internal+0x6cd/0xcc0 lib/kobject.c:263 kobject_add_varg lib/kobject.c:398 [inline] kobject_init_and_add+0x128/0x190 lib/kobject.c:481 rx_queue_add_kobject net/core/net-sysfs.c:1018 [inline] net_rx_queue_update_kobjects+0x180/0x420 net/core/net-sysfs.c:1069 register_queue_kobjects net/core/net-sysfs.c:1750 [inline] netdev_register_kobject+0x26b/0x360 net/core/net-sysfs.c:2001 register_netdevice+0xdf0/0x13e0 net/core/dev.c:10069 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_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x3b0 mm/page_alloc.c:5454 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x15f/0x190 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xf0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc_track_caller+0x17e/0x320 mm/slub.c:4541 kvasprintf+0xe3/0x1a0 lib/kasprintf.c:25 kvasprintf_const+0xf2/0x240 lib/kasprintf.c:49 kobject_set_name_vargs+0x61/0x110 lib/kobject.c:297 Memory state around the buggy address: ffff888100fedf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888100fedf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888100fee000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888100fee080: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb ffff888100fee100: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================