loop7: detected capacity change from 0 to 1024 EXT4-fs (loop7): mounted filesystem without journal. Opts: ,errors=continue. Quota mode: writeback. ================================================================== BUG: KASAN: use-after-free in string_nocheck lib/vsprintf.c:642 [inline] BUG: KASAN: use-after-free in string+0x20f/0x2a0 lib/vsprintf.c:724 Read of size 1 at addr ffff888101bd9ac8 by task syz.7.653/2738 CPU: 1 PID: 2738 Comm: syz.7.653 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: __dump_stack+0x21/0x30 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x10f/0x150 mm/kasan/report.c:444 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 string_nocheck lib/vsprintf.c:642 [inline] string+0x20f/0x2a0 lib/vsprintf.c:724 vsnprintf+0xec5/0x1990 lib/vsprintf.c:2811 seq_vprintf fs/seq_file.c:407 [inline] seq_printf+0x185/0x280 fs/seq_file.c:422 show_interrupts+0x91d/0xa90 kernel/irq/proc.c:527 seq_read_iter+0x472/0xce0 fs/seq_file.c:230 proc_reg_read_iter+0x1be/0x290 fs/proc/inode.c:300 do_iter_readv_writev+0x477/0x5f0 fs/read_write.c:-1 do_iter_read+0x1fa/0x780 fs/read_write.c:790 vfs_readv fs/read_write.c:910 [inline] do_preadv+0x233/0x390 fs/read_write.c:1002 __do_sys_preadv fs/read_write.c:1052 [inline] __se_sys_preadv fs/read_write.c:1047 [inline] __x64_sys_preadv+0x9e/0xb0 fs/read_write.c:1047 x64_sys_call+0x4f8/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:296 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f1676725f19 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:00007f1675174028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f16769a2fa0 RCX: 00007f1676725f19 RDX: 0000000000000001 RSI: 00002000000012c0 RDI: 0000000000000006 RBP: 00007f16767b4f6d R08: 0000000080000002 R09: 0000000000000000 R10: 0000000000000074 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f16769a3038 R14: 00007f16769a2fa0 R15: 00007ffc5ed4ff18 Allocated by task 352: 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:433 [inline] ____kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521 kasan_kmalloc include/linux/kasan.h:227 [inline] kmem_cache_alloc_trace+0x119/0x270 mm/slub.c:3274 kmalloc include/linux/slab.h:619 [inline] usb_control_msg+0x74/0x3f0 drivers/usb/core/message.c:156 usb_get_string+0xa8/0x3d0 drivers/usb/core/message.c:901 usb_string_sub+0x7f/0x450 drivers/usb/core/message.c:940 usb_string+0x38e/0x6b0 drivers/usb/core/message.c:1045 usb_cache_string+0x7e/0x100 drivers/usb/core/message.c:1087 usb_set_configuration+0x18bb/0x1f70 drivers/usb/core/message.c:2195 usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238 usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x27d/0x970 drivers/base/dd.c:595 __driver_probe_device+0x193/0x270 drivers/base/dd.c:755 driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785 __device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907 bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429 __device_attach+0x2b0/0x420 drivers/base/dd.c:979 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028 bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489 device_add+0xaef/0xe90 drivers/base/core.c:3422 usb_new_device+0xa1f/0x1720 drivers/usb/core/hub.c:2643 hub_port_connect drivers/usb/core/hub.c:5560 [inline] hub_port_connect_change drivers/usb/core/hub.c:5700 [inline] port_event drivers/usb/core/hub.c:5866 [inline] hub_event+0x291b/0x43f0 drivers/usb/core/hub.c:5948 process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328 worker_thread+0xaa0/0x1250 kernel/workqueue.c:2475 kthread+0x3f5/0x4f0 kernel/kthread.c:337 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff888101bd9ac8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff888101bd9ac8, ffff888101bd9ad0) The buggy address belongs to the page: page:ffffea000406f640 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888101bd9eb0 pfn:0x101bd9 flags: 0x4000000000000200(slab|zone=1) raw: 4000000000000200 ffffea000405f208 ffffea0004329c88 ffff888100042300 raw: ffff888101bd9eb0 0000000000660046 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 1, ts 2043632740, free_ts 0 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610 prep_new_page+0x1c/0x110 mm/page_alloc.c:2616 get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492 __alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1937 [inline] new_slab+0xa0/0x4d0 mm/slub.c:2000 ___slab_alloc+0x3ac/0x840 mm/slub.c:3033 __slab_alloc+0x49/0x90 mm/slub.c:3120 slab_alloc_node mm/slub.c:3211 [inline] slab_alloc mm/slub.c:3255 [inline] __kmalloc_track_caller+0x169/0x2c0 mm/slub.c:4954 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 dev_set_name+0xdf/0x130 drivers/base/core.c:3210 register_virtio_device+0x106/0x660 drivers/virtio/virtio.c:399 virtio_pci_probe+0x26f/0x320 drivers/virtio/virtio_pci_common.c:555 local_pci_probe drivers/pci/pci-driver.c:323 [inline] pci_call_probe drivers/pci/pci-driver.c:380 [inline] __pci_device_probe drivers/pci/pci-driver.c:405 [inline] pci_device_probe+0x27a/0x440 drivers/pci/pci-driver.c:448 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x27d/0x970 drivers/base/dd.c:595 page_owner free stack trace missing Memory state around the buggy address: ffff888101bd9980: fc fb fc fc fc fc 06 fc fc fc fc 05 fc fc fc fc ffff888101bd9a00: fb fc fc fc fc fb fc fc fc fc 05 fc fc fc fc fb >ffff888101bd9a80: fc fc fc fc 05 fc fc fc fc fb fc fc fc fc 00 fc ^ ffff888101bd9b00: fc fc fc fb fc fc fc fc 00 fc fc fc fc 05 fc fc ffff888101bd9b80: fc fc 06 fc fc fc fc fb fc fc fc fc 06 fc fc fc ==================================================================