[EXT4 FS bs=1024, gc=1, bpg=131072, ipg=32, mo=e855c01c, mo2=0003] System zones: 0-1, 3-36 EXT4-fs (loop4): mounted filesystem without journal. Opts: grpquota,delalloc,resuid=0x0000000000000000,debug,dioread_nolock,bsddf,nomblk_io_submit,noauto_da_alloc,,errors=continue ================================================================== BUG: KASAN: use-after-free in ext4_get_inode_usage+0x3a1/0x520 fs/ext4/xattr.c:817 Read of size 4 at addr ffff888112035070 by task syz.4.62/602 CPU: 0 PID: 602 Comm: syz.4.62 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:0x7f08ea835e59 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:00007f08e9290028 EFLAGS: 00000246 ORIG_RAX: 000000000000005d RAX: ffffffffffffffda RBX: 00007f08eaaaefa0 RCX: 00007f08ea835e59 RDX: 000000000000ee01 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f08ea8cbd6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f08eaaaf038 R14: 00007f08eaaaefa0 R15: 00007ffd1e300468 Allocated by task 307: 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 device_add_groups drivers/base/core.c:2364 [inline] device_add_attrs+0xd7/0x430 drivers/base/core.c:2518 device_add+0x504/0xc10 drivers/base/core.c:3224 input_register_device+0x9c1/0xf90 drivers/input/input.c:2306 aiptek_probe+0x138f/0x19e0 drivers/input/tablet/aiptek.c:1871 usb_probe_interface+0x62e/0xb10 drivers/usb/core/driver.c:397 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8db/0xc10 drivers/base/core.c:3273 usb_set_configuration+0x1a47/0x1f80 drivers/usb/core/message.c:2219 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x148/0x260 drivers/usb/core/driver.c:294 really_probe+0x3d8/0xa90 drivers/base/dd.c:562 driver_probe_device+0xe7/0x190 drivers/base/dd.c:752 __device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433 __device_attach+0x2a8/0x410 drivers/base/dd.c:932 device_initial_probe+0x1a/0x20 drivers/base/dd.c:981 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493 device_add+0x8db/0xc10 drivers/base/core.c:3273 usb_new_device+0xce3/0x1470 drivers/usb/core/hub.c:2654 hub_port_connect drivers/usb/core/hub.c:5499 [inline] hub_port_connect_change drivers/usb/core/hub.c:5639 [inline] port_event drivers/usb/core/hub.c:5805 [inline] hub_event+0x2922/0x4420 drivers/usb/core/hub.c:5887 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13c0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Freed by task 307: 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 device_remove_groups drivers/base/core.c:2371 [inline] device_remove_attrs+0xe4/0x130 drivers/base/core.c:2565 device_del+0x6a6/0xef0 drivers/base/core.c:3452 __input_unregister_device+0x2e7/0x320 drivers/input/input.c:2195 input_unregister_device+0x9b/0xf0 drivers/input/input.c:2367 aiptek_disconnect+0x96/0x150 drivers/input/tablet/aiptek.c:1903 usb_unbind_interface+0x212/0x8c0 drivers/usb/core/driver.c:459 __device_release_driver drivers/base/dd.c:-1 [inline] device_release_driver_internal+0x4bc/0x750 drivers/base/dd.c:1221 device_release_driver+0x19/0x20 drivers/base/dd.c:1244 bus_remove_device+0x2dd/0x340 drivers/base/bus.c:535 device_del+0x6ae/0xef0 drivers/base/core.c:3453 usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1470 usb_disconnect+0x31e/0x850 drivers/usb/core/hub.c:2310 hub_port_connect drivers/usb/core/hub.c:5338 [inline] hub_port_connect_change drivers/usb/core/hub.c:5639 [inline] port_event drivers/usb/core/hub.c:5805 [inline] hub_event+0x1aec/0x4420 drivers/usb/core/hub.c:5887 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 process_scheduled_works kernel/workqueue.c:2363 [inline] worker_thread+0xcf8/0x13c0 kernel/workqueue.c:2449 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff888112035000 which belongs to the cache kernfs_node_cache of size 144 The buggy address is located 112 bytes inside of 144-byte region [ffff888112035000, ffff888112035090) The buggy address belongs to the page: page:ffffea0004480d40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x112035 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff88810018a780 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 307, ts 26161483415, free_ts 26153057628 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_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 device_add_groups drivers/base/core.c:2364 [inline] device_add_attrs+0xd7/0x430 drivers/base/core.c:2518 device_add+0x504/0xc10 drivers/base/core.c:3224 input_register_device+0x9c1/0xf90 drivers/input/input.c:2306 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 __vunmap+0x86d/0x9f0 mm/vmalloc.c:2307 __vfree mm/vmalloc.c:2356 [inline] vfree+0x61/0x90 mm/vmalloc.c:2387 free_partitions block/partitions/core.c:111 [inline] blk_add_partitions+0xeaa/0x11b0 block/partitions/core.c:775 bdev_disk_changed+0x3c0/0x4c0 fs/block_dev.c:1436 __blkdev_get+0x5d6/0x1300 fs/block_dev.c:1565 blkdev_get fs/block_dev.c:1653 [inline] blkdev_get_by_dev+0x302/0x530 fs/block_dev.c:1734 blkdev_reread_part block/ioctl.c:114 [inline] blkdev_common_ioctl+0x1948/0x1cc0 block/ioctl.c:564 blkdev_ioctl+0x231/0x640 block/ioctl.c:633 block_ioctl+0xae/0x100 fs/block_dev.c:1888 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Memory state around the buggy address: ffff888112034f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888112034f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888112035000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888112035080: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb ffff888112035100: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================