usb 5-1: new high-speed USB device number 2 using dummy_hcd usb 5-1: Using ep0 maxpacket: 8 usb 5-1: config 15 has an invalid interface number: 90 but max is 3 usb 5-1: config 15 has an invalid interface number: 121 but max is 3 usb 5-1: config 15 contains an unexpected descriptor of type 0x1, skipping usb 5-1: config 15 has an invalid interface number: 248 but max is 3 usb 5-1: config 15 has an invalid interface number: 122 but max is 3 usb 5-1: config 15 has 5 interfaces, different from the descriptor's value: 4 usb 5-1: config 15 has no interface number 0 usb 5-1: config 15 has no interface number 1 usb 5-1: config 15 has no interface number 2 usb 5-1: config 15 has no interface number 4 usb 5-1: config 15 interface 90 altsetting 247 has 0 endpoint descriptors, different from the interface descriptor's value: 1 usb 5-1: too many endpoints for config 15 interface 3 altsetting 1: 248, using maximum allowed: 30 usb 5-1: config 15 interface 3 altsetting 1 endpoint 0x1 has invalid maxpacket 96, setting to 64 usb 5-1: config 15 interface 3 altsetting 1 has 1 endpoint descriptor, different from the interface descriptor's value: 248 usb 5-1: config 15 interface 121 altsetting 110 endpoint 0xD has an invalid bInterval 0, changing to 7 usb 5-1: config 15 interface 121 altsetting 110 endpoint 0x6 has invalid maxpacket 512, setting to 64 usb 5-1: config 15 interface 121 altsetting 110 has a duplicate endpoint with address 0xE, skipping usb 5-1: config 15 interface 121 altsetting 110 endpoint 0x4 has an invalid bInterval 0, changing to 7 usb 5-1: config 15 interface 121 altsetting 110 has a duplicate endpoint with address 0xD, skipping usb 5-1: config 15 interface 121 altsetting 110 has an endpoint descriptor with address 0x2A, changing to 0xA usb 5-1: config 15 interface 121 altsetting 110 endpoint 0xA has invalid maxpacket 31497, setting to 1024 usb 5-1: config 15 interface 121 altsetting 110 bulk endpoint 0xA has invalid maxpacket 1024 usb 5-1: config 15 interface 121 altsetting 110 has 10 endpoint descriptors, different from the interface descriptor's value: 9 usb 5-1: config 15 interface 248 altsetting 0 has a duplicate endpoint with address 0x9, skipping usb 5-1: config 15 interface 248 altsetting 0 has a duplicate endpoint with address 0x1, skipping usb 5-1: config 15 interface 248 altsetting 0 endpoint 0x8 has invalid maxpacket 512, setting to 64 usb 5-1: config 15 interface 248 altsetting 0 has a duplicate endpoint with address 0x4, skipping usb 5-1: config 15 interface 248 altsetting 0 has an invalid descriptor for endpoint zero, skipping usb 5-1: config 15 interface 248 altsetting 0 endpoint 0xC has invalid maxpacket 512, setting to 64 usb 5-1: config 15 interface 248 altsetting 0 has a duplicate endpoint with address 0xE, skipping usb 5-1: config 15 interface 248 altsetting 0 has a duplicate endpoint with address 0x9, skipping usb 5-1: config 15 interface 122 altsetting 1 has a duplicate endpoint with address 0x1, skipping usb 5-1: config 15 interface 90 has no altsetting 0 usb 5-1: config 15 interface 3 has no altsetting 0 usb 5-1: config 15 interface 121 has no altsetting 0 usb 5-1: config 15 interface 122 has no altsetting 0 usb 5-1: New USB device found, idVendor=0424, idProduct=cf18, bcdDevice= 4.42 usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 5-1: Product: ᪽胲咰ళᣯ峺鋥寒揄庉᧢딜ߴ惓俏Ⴢ䓜뚪옢靧憮㶟鿾滨곏竸㔇뺲즤㍽펵쾽秴㦁谵쯾ɬ䬏괲ᒃ嘼箢愹慄ហ툱ᛓც든╉ꤿﴍ娛䇋峘㞓䴺蟼ࡸ牏ἒ셽릷ɳ貿椩똢略Ȍ곙⢭컠 usb 5-1: Manufacturer: 㡐鮜鞵⮧喇ϭᑗ攺功詮弔鬓挆載엝ぅ자䟋ꐚ蠰ⅺⵎ閜␫Ꞌ䈍꾉闆賸蚮㴕⮯뱊箣듿埡粺輝힪꿩뗚ꡡ㊉醭魆퉭魵⣆ퟙ抽荿宓渪ࣻㆣ瓕䠓첩懁꘬肠⺔㒜腔衕㚱餖ᖲ洬 usb 5-1: USB disconnect, device number 2 ================================================================== BUG: KASAN: slab-use-after-free in hdm_disconnect+0x10d/0x1c0 drivers/most/most_usb.c:1125 Read of size 8 at addr ffff88803372d8a0 by task kworker/0:5/5361 CPU: 0 UID: 0 PID: 5361 Comm: kworker/0:5 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: usb_hub_wq hub_event Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 hdm_disconnect+0x10d/0x1c0 drivers/most/most_usb.c:1125 usb_unbind_interface+0x26e/0x910 drivers/usb/core/driver.c:458 device_remove drivers/base/dd.c:571 [inline] __device_release_driver drivers/base/dd.c:1274 [inline] device_release_driver_internal+0x4d9/0x800 drivers/base/dd.c:1297 bus_remove_device+0x34d/0x410 drivers/base/bus.c:579 device_del+0x511/0x8e0 drivers/base/core.c:3878 usb_disable_device+0x3e9/0x8a0 drivers/usb/core/message.c:1418 usb_disconnect+0x330/0x950 drivers/usb/core/hub.c:2344 hub_port_connect drivers/usb/core/hub.c:5406 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5870 [inline] hub_event+0x1cf5/0x4a20 drivers/usb/core/hub.c:5952 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x439/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 5361: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __kmalloc_cache_noprof+0x230/0x3d0 mm/slub.c:4407 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] hdm_probe+0x96/0x1400 drivers/most/most_usb.c:959 usb_probe_interface+0x665/0xc30 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x26d/0x9e0 drivers/base/dd.c:659 __driver_probe_device+0x18c/0x2f0 drivers/base/dd.c:801 driver_probe_device+0x4f/0x430 drivers/base/dd.c:831 __device_attach_driver+0x2ce/0x530 drivers/base/dd.c:959 bus_for_each_drv+0x24e/0x2e0 drivers/base/bus.c:462 __device_attach+0x2b8/0x400 drivers/base/dd.c:1031 bus_probe_device+0x185/0x260 drivers/base/bus.c:537 device_add+0x7b6/0xb50 drivers/base/core.c:3689 usb_set_configuration+0x1a87/0x20e0 drivers/usb/core/message.c:2210 usb_generic_driver_probe+0x8d/0x150 drivers/usb/core/generic.c:250 usb_probe_device+0x1c1/0x390 drivers/usb/core/driver.c:291 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x26d/0x9e0 drivers/base/dd.c:659 __driver_probe_device+0x18c/0x2f0 drivers/base/dd.c:801 driver_probe_device+0x4f/0x430 drivers/base/dd.c:831 __device_attach_driver+0x2ce/0x530 drivers/base/dd.c:959 bus_for_each_drv+0x24e/0x2e0 drivers/base/bus.c:462 __device_attach+0x2b8/0x400 drivers/base/dd.c:1031 bus_probe_device+0x185/0x260 drivers/base/bus.c:537 device_add+0x7b6/0xb50 drivers/base/core.c:3689 usb_new_device+0xa39/0x16f0 drivers/usb/core/hub.c:2694 hub_port_connect drivers/usb/core/hub.c:5566 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5870 [inline] hub_event+0x2958/0x4a20 drivers/usb/core/hub.c:5952 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x439/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 5361: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x5b/0x80 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2422 [inline] slab_free mm/slub.c:4695 [inline] kfree+0x18e/0x440 mm/slub.c:4894 device_release+0x99/0x1c0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x22b/0x480 lib/kobject.c:737 hdm_disconnect+0xf3/0x1c0 drivers/most/most_usb.c:1123 usb_unbind_interface+0x26e/0x910 drivers/usb/core/driver.c:458 device_remove drivers/base/dd.c:571 [inline] __device_release_driver drivers/base/dd.c:1274 [inline] device_release_driver_internal+0x4d9/0x800 drivers/base/dd.c:1297 bus_remove_device+0x34d/0x410 drivers/base/bus.c:579 device_del+0x511/0x8e0 drivers/base/core.c:3878 usb_disable_device+0x3e9/0x8a0 drivers/usb/core/message.c:1418 usb_disconnect+0x330/0x950 drivers/usb/core/hub.c:2344 hub_port_connect drivers/usb/core/hub.c:5406 [inline] hub_port_connect_change drivers/usb/core/hub.c:5706 [inline] port_event drivers/usb/core/hub.c:5870 [inline] hub_event+0x1cf5/0x4a20 drivers/usb/core/hub.c:5952 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x439/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88803372c000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 6304 bytes inside of freed 8192-byte region [ffff88803372c000, ffff88803372e000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x33728 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000040 ffff88801a842280 ffffea0000cec400 0000000000000006 raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 head: 04fff00000000040 ffff88801a842280 ffffea0000cec400 0000000000000006 head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 head: 04fff00000000003 ffffea0000cdca01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5332, tgid 5332 (sh), ts 80394869241, free_ts 80392606840 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2492 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2660 new_slab mm/slub.c:2714 [inline] ___slab_alloc+0xbeb/0x1420 mm/slub.c:3901 __slab_alloc mm/slub.c:3992 [inline] __slab_alloc_node mm/slub.c:4067 [inline] slab_alloc_node mm/slub.c:4228 [inline] __kmalloc_cache_noprof+0x296/0x3d0 mm/slub.c:4402 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] tomoyo_print_bprm security/tomoyo/audit.c:26 [inline] tomoyo_init_log+0x111f/0x1f70 security/tomoyo/audit.c:264 tomoyo_supervisor+0x340/0x1480 security/tomoyo/common.c:2198 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x149/0x1e0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0x15cf/0x1aa0 security/tomoyo/domain.c:888 tomoyo_bprm_check_security+0x11c/0x180 security/tomoyo/tomoyo.c:102 security_bprm_check+0x89/0x270 security/security.c:1302 search_binary_handler fs/exec.c:1660 [inline] exec_binprm fs/exec.c:1702 [inline] bprm_execve+0x8ee/0x1450 fs/exec.c:1754 do_execveat_common+0x510/0x6a0 fs/exec.c:1860 do_execve fs/exec.c:1934 [inline] __do_sys_execve fs/exec.c:2010 [inline] __se_sys_execve fs/exec.c:2005 [inline] __x64_sys_execve+0x94/0xb0 fs/exec.c:2005 page last free pid 5332 tgid 5332 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 __slab_free+0x303/0x3c0 mm/slub.c:4606 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] __do_kmalloc_node mm/slub.c:4375 [inline] __kmalloc_noprof+0x224/0x4f0 mm/slub.c:4388 kmalloc_noprof include/linux/slab.h:909 [inline] tomoyo_add_entry security/tomoyo/common.c:2132 [inline] tomoyo_supervisor+0xbd5/0x1480 security/tomoyo/common.c:2204 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x149/0x1e0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0x15cf/0x1aa0 security/tomoyo/domain.c:888 tomoyo_bprm_check_security+0x11c/0x180 security/tomoyo/tomoyo.c:102 security_bprm_check+0x89/0x270 security/security.c:1302 search_binary_handler fs/exec.c:1660 [inline] exec_binprm fs/exec.c:1702 [inline] bprm_execve+0x8ee/0x1450 fs/exec.c:1754 do_execveat_common+0x510/0x6a0 fs/exec.c:1860 do_execve fs/exec.c:1934 [inline] __do_sys_execve fs/exec.c:2010 [inline] __se_sys_execve fs/exec.c:2005 [inline] __x64_sys_execve+0x94/0xb0 fs/exec.c:2005 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88803372d780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803372d800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88803372d880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803372d900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803372d980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================