[ 43.571647] audit: type=1800 audit(1555657112.514:27): pid=5320 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2469 res=0 [ 43.591163] audit: type=1800 audit(1555657112.514:28): pid=5320 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. [ 44.321026] audit: type=1800 audit(1555657113.294:29): pid=5320 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 [ 44.340590] audit: type=1800 audit(1555657113.294:30): pid=5320 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.210' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 53.811267] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 54.051274] usb 1-1: Using ep0 maxpacket: 8 [ 54.171298] usb 1-1: config 0 has an invalid interface number: 28 but max is 0 [ 54.179034] usb 1-1: config 0 has no interface number 0 [ 54.184773] usb 1-1: New USB device found, idVendor=04fa, idProduct=2490, bcdDevice=74.f9 [ 54.193372] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 54.202924] usb 1-1: config 0 descriptor?? [ 54.441513] ================================================================== [ 54.449262] BUG: KASAN: use-after-free in ds_probe+0x604/0x760 [ 54.455407] Read of size 1 at addr ffff88809b1fcaa2 by task kworker/1:0/17 [ 54.462602] [ 54.464246] CPU: 1 PID: 17 Comm: kworker/1:0 Not tainted 5.1.0-rc5-319617-gd34f951 #4 [ 54.472447] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.482406] Workqueue: usb_hub_wq hub_event [ 54.486722] Call Trace: [ 54.489320] dump_stack+0xe8/0x16e [ 54.492909] ? ds_probe+0x604/0x760 [ 54.496668] ? ds_probe+0x604/0x760 [ 54.500296] print_address_description+0x6c/0x236 [ 54.505217] ? ds_probe+0x604/0x760 [ 54.508976] ? ds_probe+0x604/0x760 [ 54.512602] kasan_report.cold+0x1a/0x3c [ 54.516761] ? ds_probe+0x604/0x760 [ 54.520399] ds_probe+0x604/0x760 [ 54.523984] usb_probe_interface+0x31d/0x820 [ 54.528593] ? usb_probe_device+0x150/0x150 [ 54.533003] really_probe+0x2da/0xb10 [ 54.536927] driver_probe_device+0x21d/0x350 [ 54.542191] __device_attach_driver+0x1d8/0x290 [ 54.546979] ? driver_allows_async_probing+0x160/0x160 [ 54.552653] bus_for_each_drv+0x163/0x1e0 [ 54.556814] ? bus_rescan_devices+0x30/0x30 [ 54.561467] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 54.566574] ? lockdep_hardirqs_on+0x37e/0x580 [ 54.571257] __device_attach+0x223/0x3a0 [ 54.575334] ? device_bind_driver+0xe0/0xe0 [ 54.579659] ? kobject_uevent_env+0x295/0x13d0 [ 54.584389] bus_probe_device+0x1f1/0x2a0 [ 54.588628] ? blocking_notifier_call_chain+0x59/0xb0 [ 54.594311] device_add+0xad2/0x16e0 [ 54.598042] ? get_device_parent.isra.0+0x560/0x560 [ 54.603345] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 54.608608] usb_set_configuration+0xdf7/0x1740 [ 54.613311] generic_probe+0xa2/0xda [ 54.617016] usb_probe_device+0xc0/0x150 [ 54.621331] ? usb_suspend+0x5f0/0x5f0 [ 54.625230] really_probe+0x2da/0xb10 [ 54.629295] driver_probe_device+0x21d/0x350 [ 54.633704] __device_attach_driver+0x1d8/0x290 [ 54.638658] ? driver_allows_async_probing+0x160/0x160 [ 54.644322] bus_for_each_drv+0x163/0x1e0 [ 54.648475] ? bus_rescan_devices+0x30/0x30 [ 54.653158] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 54.658261] ? lockdep_hardirqs_on+0x37e/0x580 [ 54.662984] __device_attach+0x223/0x3a0 [ 54.667081] ? device_bind_driver+0xe0/0xe0 [ 54.671448] ? kobject_uevent_env+0x295/0x13d0 [ 54.676084] bus_probe_device+0x1f1/0x2a0 [ 54.680240] ? blocking_notifier_call_chain+0x59/0xb0 [ 54.685576] device_add+0xad2/0x16e0 [ 54.689289] ? get_device_parent.isra.0+0x560/0x560 [ 54.694609] usb_new_device.cold+0x537/0xccf [ 54.699127] hub_event+0x1398/0x3b00 [ 54.702853] ? hub_port_debounce+0x350/0x350 [ 54.707277] ? _raw_spin_unlock_irq+0x29/0x40 [ 54.711796] process_one_work+0x90f/0x1580 [ 54.716049] ? wq_pool_ids_show+0x300/0x300 [ 54.720541] ? do_raw_spin_lock+0x11f/0x290 [ 54.725126] worker_thread+0x9b/0xe20 [ 54.728926] ? process_one_work+0x1580/0x1580 [ 54.733423] kthread+0x313/0x420 [ 54.736777] ? kthread_park+0x1a0/0x1a0 [ 54.740855] ret_from_fork+0x3a/0x50 [ 54.744603] [ 54.746328] Allocated by task 1367: [ 54.749964] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 54.754893] security_task_alloc+0x113/0x180 [ 54.759442] copy_process.part.0+0x1c62/0x76b0 [ 54.764027] _do_fork+0x234/0xed0 [ 54.767482] do_syscall_64+0xcf/0x4f0 [ 54.771273] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.776687] [ 54.778460] Freed by task 4310: [ 54.781841] __kasan_slab_free+0x130/0x180 [ 54.786091] slab_free_freelist_hook+0x5e/0x140 [ 54.791042] kfree+0xce/0x280 [ 54.794284] security_task_free+0x9a/0xf0 [ 54.798426] __put_task_struct+0xec/0x4d0 [ 54.802720] delayed_put_task_struct+0x189/0x290 [ 54.807587] rcu_core+0x843/0x1a90 [ 54.811131] __do_softirq+0x22a/0x8cd [ 54.815030] [ 54.816806] The buggy address belongs to the object at ffff88809b1fca80 [ 54.816806] which belongs to the cache kmalloc-64 of size 64 [ 54.829671] The buggy address is located 34 bytes inside of [ 54.829671] 64-byte region [ffff88809b1fca80, ffff88809b1fcac0) [ 54.841826] The buggy address belongs to the page: [ 54.847034] page:ffffea00026c7f00 count:1 mapcount:0 mapping:ffff88812c3f5600 index:0x0 [ 54.855386] flags: 0xfff00000000200(slab) [ 54.859545] raw: 00fff00000000200 ffffea0002733a80 0000001100000011 ffff88812c3f5600 [ 54.867663] raw: 0000000000000000 00000000002a002a 00000001ffffffff 0000000000000000 [ 54.875654] page dumped because: kasan: bad access detected [ 54.881365] [ 54.882986] Memory state around the buggy address: [ 54.888241] ffff88809b1fc980: fb fb fb fb fc fc fc fc fb fb fb fb fb fb fb fb [ 54.896067] ffff88809b1fca00: fc fc fc fc 00 00 00 00 00 00 fc fc fc fc fc fc [ 54.903523] >ffff88809b1fca80: fb fb fb fb fb fb fb fb fc fc fc fc 00 00 00 00 [ 54.910885] ^ [ 54.915286] ffff88809b1fcb00: 04 fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 54.922828] ffff88809b1fcb80: fc fc fc fc fb fb fb fb fb fb fb fb fc fc fc fc [ 54.930437] ================================================================== [ 54.937885] Disabling lock debugging due to kernel taint [ 54.943451] Kernel panic - not syncing: panic_on_warn set ... [ 54.949346] CPU: 1 PID: 17 Comm: kworker/1:0 Tainted: G B 5.1.0-rc5-319617-gd34f951 #4 [ 54.958692] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.968227] Workqueue: usb_hub_wq hub_event [ 54.972534] Call Trace: [ 54.975130] dump_stack+0xe8/0x16e [ 54.978663] panic+0x29d/0x5f2 [ 54.981927] ? __warn_printk+0xf8/0xf8 [ 54.985811] ? retint_kernel+0x10/0x10 [ 54.989691] ? trace_hardirqs_on+0x55/0x1c0 [ 54.994015] ? ds_probe+0x604/0x760 [ 54.997641] end_report+0x48/0x4e [ 55.001080] ? ds_probe+0x604/0x760 [ 55.004692] kasan_report.cold+0xd/0x3c [ 55.008657] ? ds_probe+0x604/0x760 [ 55.012273] ds_probe+0x604/0x760 [ 55.015719] usb_probe_interface+0x31d/0x820 [ 55.020120] ? usb_probe_device+0x150/0x150 [ 55.024426] really_probe+0x2da/0xb10 [ 55.028214] driver_probe_device+0x21d/0x350 [ 55.032608] __device_attach_driver+0x1d8/0x290 [ 55.037267] ? driver_allows_async_probing+0x160/0x160 [ 55.042546] bus_for_each_drv+0x163/0x1e0 [ 55.046686] ? bus_rescan_devices+0x30/0x30 [ 55.051003] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 55.056109] ? lockdep_hardirqs_on+0x37e/0x580 [ 55.060680] __device_attach+0x223/0x3a0 [ 55.064731] ? device_bind_driver+0xe0/0xe0 [ 55.069156] ? kobject_uevent_env+0x295/0x13d0 [ 55.073727] bus_probe_device+0x1f1/0x2a0 [ 55.077869] ? blocking_notifier_call_chain+0x59/0xb0 [ 55.083049] device_add+0xad2/0x16e0 [ 55.086760] ? get_device_parent.isra.0+0x560/0x560 [ 55.091763] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 55.096859] usb_set_configuration+0xdf7/0x1740 [ 55.101528] generic_probe+0xa2/0xda [ 55.105227] usb_probe_device+0xc0/0x150 [ 55.109360] ? usb_suspend+0x5f0/0x5f0 [ 55.113500] really_probe+0x2da/0xb10 [ 55.117288] driver_probe_device+0x21d/0x350 [ 55.121693] __device_attach_driver+0x1d8/0x290 [ 55.126357] ? driver_allows_async_probing+0x160/0x160 [ 55.131622] bus_for_each_drv+0x163/0x1e0 [ 55.135755] ? bus_rescan_devices+0x30/0x30 [ 55.140081] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 55.145190] ? lockdep_hardirqs_on+0x37e/0x580 [ 55.149759] __device_attach+0x223/0x3a0 [ 55.153811] ? device_bind_driver+0xe0/0xe0 [ 55.158207] ? kobject_uevent_env+0x295/0x13d0 [ 55.162778] bus_probe_device+0x1f1/0x2a0 [ 55.166928] ? blocking_notifier_call_chain+0x59/0xb0 [ 55.172309] device_add+0xad2/0x16e0 [ 55.176030] ? get_device_parent.isra.0+0x560/0x560 [ 55.181128] usb_new_device.cold+0x537/0xccf [ 55.185526] hub_event+0x1398/0x3b00 [ 55.189234] ? hub_port_debounce+0x350/0x350 [ 55.193634] ? _raw_spin_unlock_irq+0x29/0x40 [ 55.198297] process_one_work+0x90f/0x1580 [ 55.202538] ? wq_pool_ids_show+0x300/0x300 [ 55.206860] ? do_raw_spin_lock+0x11f/0x290 [ 55.211170] worker_thread+0x9b/0xe20 [ 55.214992] ? process_one_work+0x1580/0x1580 [ 55.219475] kthread+0x313/0x420 [ 55.222843] ? kthread_park+0x1a0/0x1a0 [ 55.226828] ret_from_fork+0x3a/0x50 [ 55.231939] Kernel Offset: disabled [ 55.235628] Rebooting in 86400 seconds..