================================================================== BUG: KASAN: use-after-free in string_nocheck lib/vsprintf.c:641 [inline] BUG: KASAN: use-after-free in string+0x20f/0x2a0 lib/vsprintf.c:723 Read of size 1 at addr ffff888100fc2c30 by task syz.5.6163/12407 CPU: 0 PID: 12407 Comm: syz.5.6163 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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+0x100/0x140 mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 string_nocheck lib/vsprintf.c:641 [inline] string+0x20f/0x2a0 lib/vsprintf.c:723 vsnprintf+0xec5/0x1990 lib/vsprintf.c:2689 seq_vprintf fs/seq_file.c:398 [inline] seq_printf+0x185/0x280 fs/seq_file.c:413 show_interrupts+0x921/0xa90 kernel/irq/proc.c:526 seq_read_iter+0x908/0xce0 fs/seq_file.c:272 proc_reg_read_iter+0x1be/0x290 fs/proc/inode.c:310 call_read_iter include/linux/fs.h:2066 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x62a/0xa50 fs/read_write.c:496 ksys_read+0x14a/0x260 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x7b/0x90 fs/read_write.c:642 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f8452cd5159 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:00007f845172e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f8452f5cfa0 RCX: 00007f8452cd5159 RDX: 0000000000002020 RSI: 00002000000043c0 RDI: 0000000000000007 RBP: 00007f8452d6c06b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8452f5d038 R14: 00007f8452f5cfa0 R15: 00007fff6bca0468 Allocated by task 54: 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_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] kmem_cache_alloc_trace+0x179/0x2e0 mm/slub.c:2979 kmalloc include/linux/slab.h:555 [inline] usb_control_msg+0x74/0x3f0 drivers/usb/core/message.c:156 get_port_status drivers/usb/core/hub.c:595 [inline] hub_ext_port_status+0xf2/0x6a0 drivers/usb/core/hub.c:612 hub_port_wait_reset drivers/usb/core/hub.c:-1 [inline] hub_port_reset+0x498/0x1720 drivers/usb/core/hub.c:3035 hub_port_init+0xae7/0x2520 drivers/usb/core/hub.c:4992 hub_port_connect drivers/usb/core/hub.c:5433 [inline] hub_port_connect_change drivers/usb/core/hub.c:5644 [inline] port_event drivers/usb/core/hub.c:5810 [inline] hub_event+0x23b1/0x4220 drivers/usb/core/hub.c:5892 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Freed by task 865: 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] kfree+0xc0/0x270 mm/slub.c:4196 kfree_const+0x39/0x40 mm/util.c:43 kobject_cleanup lib/kobject.c:719 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1fb/0x270 lib/kobject.c:761 net_rx_queue_update_kobjects+0x3a1/0x410 net/core/net-sysfs.c:1083 remove_queue_kobjects net/core/net-sysfs.c:1805 [inline] netdev_unregister_kobject+0xf7/0x260 net/core/net-sysfs.c:1959 unregister_netdevice_many+0x14c6/0x19f0 net/core/dev.c:10805 default_device_exit_batch+0x35e/0x3c0 net/core/dev.c:11298 ops_exit_list net/core/net_namespace.c:190 [inline] cleanup_net+0x5fe/0xb80 net/core/net_namespace.c:609 process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301 worker_thread+0xa8e/0x13c0 kernel/workqueue.c:2447 kthread+0x324/0x3b0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 The buggy address belongs to the object at ffff888100fc2c30 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes inside of 8-byte region [ffff888100fc2c30, ffff888100fc2c38) The buggy address belongs to the page: page:ffffea000403f080 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100fc2 flags: 0x4000000000000200(slab) raw: 4000000000000200 ffffea00044a66c0 0000000500000005 ffff888100043c80 raw: 0000000000000000 0000000000660066 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 1570351161, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 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+0x2f8/0x4c0 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] __kmalloc+0x1f9/0x330 mm/slub.c:4034 kmalloc include/linux/slab.h:560 [inline] acpi_os_allocate include/acpi/platform/aclinuxex.h:52 [inline] acpi_ex_allocate_name_string drivers/acpi/acpica/exnames.c:66 [inline] acpi_ex_get_name_string+0x5a9/0xca0 drivers/acpi/acpica/exnames.c:367 acpi_ds_create_operand+0x168/0x8b0 drivers/acpi/acpica/dsutils.c:446 acpi_ds_create_operands+0x271/0x410 drivers/acpi/acpica/dsutils.c:707 acpi_ds_eval_buffer_field_operands+0x67/0x300 drivers/acpi/acpica/dsopcode.c:290 acpi_ds_exec_end_op+0x98f/0x1190 drivers/acpi/acpica/dswexec.c:546 acpi_ps_parse_loop+0xbff/0x19f0 drivers/acpi/acpica/psloop.c:526 acpi_ps_parse_aml+0x214/0x9a0 drivers/acpi/acpica/psparse.c:475 acpi_ps_execute_method+0x681/0x7b0 drivers/acpi/acpica/psxface.c:190 acpi_ns_evaluate+0x650/0xa20 drivers/acpi/acpica/nseval.c:205 page_owner free stack trace missing Memory state around the buggy address: ffff888100fc2b00: fc fc fc 00 fc fc fc fc fa fc fc fc fc 00 fc fc ffff888100fc2b80: fc fc fa fc fc fc fc fa fc fc fc fc fa fc fc fc >ffff888100fc2c00: fc fa fc fc fc fc fa fc fc fc fc fa fc fc fc fc ^ ffff888100fc2c80: 00 fc fc fc fc fa fc fc fc fc fa fc fc fc fc 00 ffff888100fc2d00: fc fc fc fc fa fc fc fc fc fa fc fc fc fc fa fc ==================================================================