[ 45.054167] audit: type=1800 audit(1555583382.088:27): pid=5198 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2469 res=0 [ 45.073719] audit: type=1800 audit(1555583382.098:28): pid=5198 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2450 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 45.761154] audit: type=1800 audit(1555583382.828:29): pid=5198 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 45.780558] audit: type=1800 audit(1555583382.828:30): pid=5198 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.157' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 57.345696] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 57.585692] usb 1-1: Using ep0 maxpacket: 8 [ 57.705733] usb 1-1: config 0 has an invalid interface number: 28 but max is 0 [ 57.713200] usb 1-1: config 0 has no interface number 0 [ 57.718734] usb 1-1: New USB device found, idVendor=04fa, idProduct=2490, bcdDevice=74.f9 [ 57.727691] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 57.736977] usb 1-1: config 0 descriptor?? [ 57.965856] ================================================================== [ 57.973341] BUG: KASAN: use-after-free in ds_probe+0x604/0x760 [ 57.979296] Read of size 1 at addr ffff88821ae85b62 by task kworker/0:1/12 [ 57.986283] [ 57.987894] CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.1.0-rc5-319617-gd34f951 #4 [ 57.995838] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.005178] Workqueue: usb_hub_wq hub_event [ 58.009505] Call Trace: [ 58.012083] dump_stack+0xe8/0x16e [ 58.015618] ? ds_probe+0x604/0x760 [ 58.019248] ? ds_probe+0x604/0x760 [ 58.022854] print_address_description+0x6c/0x236 [ 58.027688] ? ds_probe+0x604/0x760 [ 58.031295] ? ds_probe+0x604/0x760 [ 58.034919] kasan_report.cold+0x1a/0x3c [ 58.038964] ? ds_probe+0x604/0x760 [ 58.042589] ds_probe+0x604/0x760 [ 58.046037] usb_probe_interface+0x31d/0x820 [ 58.050424] ? usb_probe_device+0x150/0x150 [ 58.054747] really_probe+0x2da/0xb10 [ 58.058540] driver_probe_device+0x21d/0x350 [ 58.062931] __device_attach_driver+0x1d8/0x290 [ 58.067597] ? driver_allows_async_probing+0x160/0x160 [ 58.072855] bus_for_each_drv+0x163/0x1e0 [ 58.076986] ? bus_rescan_devices+0x30/0x30 [ 58.081289] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 58.086372] ? lockdep_hardirqs_on+0x37e/0x580 [ 58.090940] __device_attach+0x223/0x3a0 [ 58.094983] ? device_bind_driver+0xe0/0xe0 [ 58.099298] ? kobject_uevent_env+0x295/0x13d0 [ 58.103862] bus_probe_device+0x1f1/0x2a0 [ 58.108005] ? blocking_notifier_call_chain+0x59/0xb0 [ 58.113178] device_add+0xad2/0x16e0 [ 58.116874] ? get_device_parent.isra.0+0x560/0x560 [ 58.121872] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 58.126966] usb_set_configuration+0xdf7/0x1740 [ 58.131622] generic_probe+0xa2/0xda [ 58.135316] usb_probe_device+0xc0/0x150 [ 58.139358] ? usb_suspend+0x5f0/0x5f0 [ 58.143238] really_probe+0x2da/0xb10 [ 58.147021] driver_probe_device+0x21d/0x350 [ 58.151855] __device_attach_driver+0x1d8/0x290 [ 58.156520] ? driver_allows_async_probing+0x160/0x160 [ 58.161803] bus_for_each_drv+0x163/0x1e0 [ 58.165933] ? bus_rescan_devices+0x30/0x30 [ 58.170235] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 58.175316] ? lockdep_hardirqs_on+0x37e/0x580 [ 58.179890] __device_attach+0x223/0x3a0 [ 58.183938] ? device_bind_driver+0xe0/0xe0 [ 58.188247] ? kobject_uevent_env+0x295/0x13d0 [ 58.192898] bus_probe_device+0x1f1/0x2a0 [ 58.197043] ? blocking_notifier_call_chain+0x59/0xb0 [ 58.202216] device_add+0xad2/0x16e0 [ 58.205923] ? get_device_parent.isra.0+0x560/0x560 [ 58.210933] usb_new_device.cold+0x537/0xccf [ 58.215323] hub_event+0x1398/0x3b00 [ 58.219028] ? hub_port_debounce+0x350/0x350 [ 58.223433] ? _raw_spin_unlock_irq+0x29/0x40 [ 58.227917] process_one_work+0x90f/0x1580 [ 58.232150] ? wq_pool_ids_show+0x300/0x300 [ 58.236468] ? do_raw_spin_lock+0x11f/0x290 [ 58.240779] worker_thread+0x9b/0xe20 [ 58.244562] ? process_one_work+0x1580/0x1580 [ 58.249037] kthread+0x313/0x420 [ 58.252385] ? kthread_park+0x1a0/0x1a0 [ 58.256343] ret_from_fork+0x3a/0x50 [ 58.260041] [ 58.261651] Allocated by task 12: [ 58.265087] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 58.269998] kobject_get_path+0xb7/0x200 [ 58.274039] kobject_uevent_env+0x23f/0x13d0 [ 58.278428] device_add+0xaca/0x16e0 [ 58.282121] usb_new_device.cold+0x537/0xccf [ 58.286510] hub_event+0x1398/0x3b00 [ 58.290204] process_one_work+0x90f/0x1580 [ 58.294426] worker_thread+0x9b/0xe20 [ 58.298206] kthread+0x313/0x420 [ 58.301554] ret_from_fork+0x3a/0x50 [ 58.305241] [ 58.306845] Freed by task 12: [ 58.309932] __kasan_slab_free+0x130/0x180 [ 58.314144] slab_free_freelist_hook+0x5e/0x140 [ 58.318789] kfree+0xce/0x280 [ 58.321871] kobject_uevent_env+0x287/0x13d0 [ 58.326260] device_add+0xaca/0x16e0 [ 58.329952] usb_new_device.cold+0x537/0xccf [ 58.334337] hub_event+0x1398/0x3b00 [ 58.338044] process_one_work+0x90f/0x1580 [ 58.342258] worker_thread+0x9b/0xe20 [ 58.346042] kthread+0x313/0x420 [ 58.349386] ret_from_fork+0x3a/0x50 [ 58.353089] [ 58.354720] The buggy address belongs to the object at ffff88821ae85b40 [ 58.354720] which belongs to the cache kmalloc-64 of size 64 [ 58.367268] The buggy address is located 34 bytes inside of [ 58.367268] 64-byte region [ffff88821ae85b40, ffff88821ae85b80) [ 58.378940] The buggy address belongs to the page: [ 58.383848] page:ffffea00086ba140 count:1 mapcount:0 mapping:ffff88812c3f5600 index:0x0 [ 58.391967] flags: 0x57ff00000000200(slab) [ 58.396186] raw: 057ff00000000200 dead000000000100 dead000000000200 ffff88812c3f5600 [ 58.404049] raw: 0000000000000000 00000000802a002a 00000001ffffffff 0000000000000000 [ 58.411902] page dumped because: kasan: bad access detected [ 58.417604] [ 58.419214] Memory state around the buggy address: [ 58.424120] ffff88821ae85a00: fc fc fc fc 00 00 00 00 00 00 00 00 fc fc fc fc [ 58.431471] ffff88821ae85a80: 00 00 00 00 00 fc fc fc fc fc fc fc 00 00 00 00 [ 58.438810] >ffff88821ae85b00: 00 00 fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 58.446162] ^ [ 58.452638] ffff88821ae85b80: fc fc fc fc 00 00 00 00 00 fc fc fc fc fc fc fc [ 58.459976] ffff88821ae85c00: fb fb fb fb fb fb fb fb fc fc fc fc 00 00 00 00 [ 58.467308] ================================================================== [ 58.474643] Disabling lock debugging due to kernel taint [ 58.480195] Kernel panic - not syncing: panic_on_warn set ... [ 58.486089] CPU: 0 PID: 12 Comm: kworker/0:1 Tainted: G B 5.1.0-rc5-319617-gd34f951 #4 [ 58.495430] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 58.504781] Workqueue: usb_hub_wq hub_event [ 58.509085] Call Trace: [ 58.511675] dump_stack+0xe8/0x16e [ 58.515211] panic+0x29d/0x5f2 [ 58.518397] ? __warn_printk+0xf8/0xf8 [ 58.522279] ? retint_kernel+0x10/0x10 [ 58.526163] ? trace_hardirqs_on+0x55/0x1c0 [ 58.530476] ? ds_probe+0x604/0x760 [ 58.534093] end_report+0x48/0x4e [ 58.537541] ? ds_probe+0x604/0x760 [ 58.541155] kasan_report.cold+0xd/0x3c [ 58.545119] ? ds_probe+0x604/0x760 [ 58.548742] ds_probe+0x604/0x760 [ 58.552196] usb_probe_interface+0x31d/0x820 [ 58.556613] ? usb_probe_device+0x150/0x150 [ 58.560930] really_probe+0x2da/0xb10 [ 58.564724] driver_probe_device+0x21d/0x350 [ 58.569131] __device_attach_driver+0x1d8/0x290 [ 58.573805] ? driver_allows_async_probing+0x160/0x160 [ 58.579084] bus_for_each_drv+0x163/0x1e0 [ 58.583229] ? bus_rescan_devices+0x30/0x30 [ 58.587547] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 58.592645] ? lockdep_hardirqs_on+0x37e/0x580 [ 58.597224] __device_attach+0x223/0x3a0 [ 58.601279] ? device_bind_driver+0xe0/0xe0 [ 58.605683] ? kobject_uevent_env+0x295/0x13d0 [ 58.610260] bus_probe_device+0x1f1/0x2a0 [ 58.614403] ? blocking_notifier_call_chain+0x59/0xb0 [ 58.619589] device_add+0xad2/0x16e0 [ 58.623313] ? get_device_parent.isra.0+0x560/0x560 [ 58.628335] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 58.633434] usb_set_configuration+0xdf7/0x1740 [ 58.638126] generic_probe+0xa2/0xda [ 58.641836] usb_probe_device+0xc0/0x150 [ 58.645889] ? usb_suspend+0x5f0/0x5f0 [ 58.649771] really_probe+0x2da/0xb10 [ 58.653569] driver_probe_device+0x21d/0x350 [ 58.657977] __device_attach_driver+0x1d8/0x290 [ 58.662659] ? driver_allows_async_probing+0x160/0x160 [ 58.667929] bus_for_each_drv+0x163/0x1e0 [ 58.672072] ? bus_rescan_devices+0x30/0x30 [ 58.676408] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 58.681520] ? lockdep_hardirqs_on+0x37e/0x580 [ 58.686099] __device_attach+0x223/0x3a0 [ 58.690150] ? device_bind_driver+0xe0/0xe0 [ 58.694467] ? kobject_uevent_env+0x295/0x13d0 [ 58.699044] bus_probe_device+0x1f1/0x2a0 [ 58.703199] ? blocking_notifier_call_chain+0x59/0xb0 [ 58.708381] device_add+0xad2/0x16e0 [ 58.712107] ? get_device_parent.isra.0+0x560/0x560 [ 58.717121] usb_new_device.cold+0x537/0xccf [ 58.721527] hub_event+0x1398/0x3b00 [ 58.725256] ? hub_port_debounce+0x350/0x350 [ 58.729664] ? _raw_spin_unlock_irq+0x29/0x40 [ 58.734155] process_one_work+0x90f/0x1580 [ 58.738391] ? wq_pool_ids_show+0x300/0x300 [ 58.742888] ? do_raw_spin_lock+0x11f/0x290 [ 58.747206] worker_thread+0x9b/0xe20 [ 58.751002] ? process_one_work+0x1580/0x1580 [ 58.755496] kthread+0x313/0x420 [ 58.758859] ? kthread_park+0x1a0/0x1a0 [ 58.762831] ret_from_fork+0x3a/0x50 [ 58.767220] Kernel Offset: disabled [ 58.770838] Rebooting in 86400 seconds..