================================================================== BUG: KASAN: slab-out-of-bounds in iov_iter_revert lib/iov_iter.c:633 [inline] BUG: KASAN: slab-out-of-bounds in iov_iter_revert+0x443/0x5a0 lib/iov_iter.c:611 Read of size 4 at addr ffff88802994b538 by task kworker/u8:7/1109 CPU: 1 UID: 0 PID: 1109 Comm: kworker/u8:7 Not tainted 6.15.0-rc4-syzkaller-00147-gebd297a2affa #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Workqueue: events_unbound netfs_write_collection_worker Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xc3/0x670 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 iov_iter_revert lib/iov_iter.c:633 [inline] iov_iter_revert+0x443/0x5a0 lib/iov_iter.c:611 netfs_retry_write_stream fs/netfs/write_retry.c:44 [inline] netfs_retry_writes+0x166d/0x1a50 fs/netfs/write_retry.c:231 netfs_collect_write_results fs/netfs/write_collect.c:352 [inline] netfs_write_collection_worker+0x23fd/0x3830 fs/netfs/write_collect.c:374 process_one_work+0x9cc/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 5807: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ref_tracker_alloc+0x18e/0x5b0 lib/ref_tracker.c:203 __netdev_tracker_alloc include/linux/netdevice.h:4331 [inline] netdev_hold include/linux/netdevice.h:4360 [inline] dst_init+0xda/0x580 net/core/dst.c:52 dst_alloc+0xbb/0x1a0 net/core/dst.c:93 rt_dst_alloc+0x35/0x3a0 net/ipv4/route.c:1638 ip_route_input_slow+0x1671/0x3df0 net/ipv4/route.c:2409 ip_route_input_rcu net/ipv4/route.c:2523 [inline] ip_route_input_noref+0x120/0x2e0 net/ipv4/route.c:2534 ip_rcv_finish_core+0x46f/0x2290 net/ipv4/ip_input.c:364 ip_list_rcv_finish+0x1b8/0x720 net/ipv4/ip_input.c:609 ip_sublist_rcv net/ipv4/ip_input.c:635 [inline] ip_list_rcv+0x335/0x450 net/ipv4/ip_input.c:669 __netif_receive_skb_list_ptype net/core/dev.c:5930 [inline] __netif_receive_skb_list_core+0x752/0x950 net/core/dev.c:5977 __netif_receive_skb_list net/core/dev.c:6029 [inline] netif_receive_skb_list_internal+0x752/0xdb0 net/core/dev.c:6120 gro_normal_list include/net/gro.h:532 [inline] gro_normal_list include/net/gro.h:528 [inline] napi_complete_done+0x23f/0x970 net/core/dev.c:6490 virtqueue_napi_complete drivers/net/virtio_net.c:737 [inline] virtnet_poll+0x1cfd/0x3c00 drivers/net/virtio_net.c:3053 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:7324 napi_poll net/core/dev.c:7388 [inline] net_rx_action+0xa97/0x1010 net/core/dev.c:7510 handle_softirqs+0x216/0x8e0 kernel/softirq.c:579 __do_softirq kernel/softirq.c:613 [inline] invoke_softirq kernel/softirq.c:453 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:680 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696 common_interrupt+0xbf/0xe0 arch/x86/kernel/irq.c:285 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 The buggy address belongs to the object at ffff88802994b500 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 24 bytes to the right of allocated 32-byte region [ffff88802994b500, ffff88802994b520) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2994b anon flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801b441780 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000400040 00000000f5000000 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 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 1, tgid 1 (swapper/0), ts 8659185960, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x135c/0x3920 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x263/0x23a0 mm/page_alloc.c:4970 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2468 [inline] allocate_slab mm/slub.c:2632 [inline] new_slab+0x244/0x340 mm/slub.c:2686 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3872 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3962 __slab_alloc_node mm/slub.c:4037 [inline] slab_alloc_node mm/slub.c:4198 [inline] __do_kmalloc_node mm/slub.c:4340 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4353 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] rh_call_control drivers/usb/core/hcd.c:491 [inline] rh_urb_enqueue drivers/usb/core/hcd.c:821 [inline] usb_hcd_submit_urb+0x5cf/0x1c60 drivers/usb/core/hcd.c:1529 usb_submit_urb+0x87c/0x1730 drivers/usb/core/urb.c:581 usb_start_wait_urb+0x104/0x4b0 drivers/usb/core/message.c:59 usb_internal_control_msg drivers/usb/core/message.c:103 [inline] usb_control_msg+0x326/0x4a0 drivers/usb/core/message.c:154 usb_get_descriptor+0xbb/0x1b0 drivers/usb/core/message.c:794 usb_get_configuration+0x3ba/0x6510 drivers/usb/core/config.c:976 usb_enumerate_device drivers/usb/core/hub.c:2495 [inline] usb_new_device+0x11ac/0x1a20 drivers/usb/core/hub.c:2633 register_root_hub+0x299/0x730 drivers/usb/core/hcd.c:994 page_owner free stack trace missing Memory state around the buggy address: ffff88802994b400: 00 00 00 00 fc fc fc fc fa fb fb fb fc fc fc fc ffff88802994b480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc >ffff88802994b500: 00 00 00 00 fc fc fc fc 00 00 00 00 fc fc fc fc ^ ffff88802994b580: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ffff88802994b600: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ==================================================================