[ 43.715661] audit: type=1800 audit(1555426006.940:27): pid=5014 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.735189] audit: type=1800 audit(1555426006.950:28): pid=5014 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.607355] audit: type=1800 audit(1555426007.870:29): pid=5014 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.626799] audit: type=1800 audit(1555426007.880:30): pid=5014 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.189' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 51.910054] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 52.149973] usb 1-1: Using ep0 maxpacket: 8 [ 52.270039] usb 1-1: config 0 has an invalid interface number: 28 but max is 0 [ 52.277620] usb 1-1: config 0 has no interface number 0 [ 52.283074] usb 1-1: New USB device found, idVendor=04fa, idProduct=2490, bcdDevice=74.f9 [ 52.291431] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 52.300669] usb 1-1: config 0 descriptor?? [ 52.540317] ================================================================== [ 52.547841] BUG: KASAN: use-after-free in ds_probe+0x604/0x760 [ 52.553794] Read of size 1 at addr ffff8880a00ffbc2 by task kworker/1:1/21 [ 52.560812] [ 52.562424] CPU: 1 PID: 21 Comm: kworker/1:1 Not tainted 5.1.0-rc4-319354-g9a33b36 #3 [ 52.570370] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.579725] Workqueue: usb_hub_wq hub_event [ 52.584068] Call Trace: [ 52.586646] dump_stack+0xe8/0x16e [ 52.590164] ? ds_probe+0x604/0x760 [ 52.593771] ? ds_probe+0x604/0x760 [ 52.597378] print_address_description+0x6c/0x236 [ 52.602203] ? ds_probe+0x604/0x760 [ 52.605807] ? ds_probe+0x604/0x760 [ 52.609416] kasan_report.cold+0x1a/0x3c [ 52.613462] ? ds_probe+0x604/0x760 [ 52.617070] ds_probe+0x604/0x760 [ 52.620506] usb_probe_interface+0x31d/0x820 [ 52.624902] ? usb_probe_device+0x150/0x150 [ 52.629223] really_probe+0x2da/0xb10 [ 52.633023] driver_probe_device+0x21d/0x350 [ 52.637409] __device_attach_driver+0x1d8/0x290 [ 52.642067] ? driver_allows_async_probing+0x160/0x160 [ 52.647345] bus_for_each_drv+0x163/0x1e0 [ 52.651475] ? bus_rescan_devices+0x30/0x30 [ 52.655782] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 52.660869] ? lockdep_hardirqs_on+0x37e/0x580 [ 52.665435] __device_attach+0x223/0x3a0 [ 52.669478] ? device_bind_driver+0xe0/0xe0 [ 52.673792] ? kobject_uevent_env+0x295/0x13d0 [ 52.678358] bus_probe_device+0x1f1/0x2a0 [ 52.682497] ? blocking_notifier_call_chain+0x59/0xb0 [ 52.687668] device_add+0xad2/0x16e0 [ 52.691364] ? get_device_parent.isra.0+0x560/0x560 [ 52.696380] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 52.701481] usb_set_configuration+0xdf7/0x1740 [ 52.706150] generic_probe+0xa2/0xda [ 52.709847] usb_probe_device+0xc0/0x150 [ 52.713888] ? usb_suspend+0x5f0/0x5f0 [ 52.717755] really_probe+0x2da/0xb10 [ 52.721538] driver_probe_device+0x21d/0x350 [ 52.725930] __device_attach_driver+0x1d8/0x290 [ 52.730580] ? driver_allows_async_probing+0x160/0x160 [ 52.736776] bus_for_each_drv+0x163/0x1e0 [ 52.740913] ? bus_rescan_devices+0x30/0x30 [ 52.745217] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 52.750312] ? lockdep_hardirqs_on+0x37e/0x580 [ 52.754879] __device_attach+0x223/0x3a0 [ 52.758918] ? device_bind_driver+0xe0/0xe0 [ 52.763238] ? kobject_uevent_env+0x295/0x13d0 [ 52.767804] bus_probe_device+0x1f1/0x2a0 [ 52.771937] ? blocking_notifier_call_chain+0x59/0xb0 [ 52.777117] device_add+0xad2/0x16e0 [ 52.780815] ? get_device_parent.isra.0+0x560/0x560 [ 52.785819] usb_new_device.cold+0x537/0xccf [ 52.790211] hub_event+0x138e/0x3b00 [ 52.793919] ? hub_port_debounce+0x350/0x350 [ 52.798319] ? _raw_spin_unlock_irq+0x29/0x40 [ 52.802800] process_one_work+0x90f/0x1580 [ 52.807019] ? wq_pool_ids_show+0x300/0x300 [ 52.816290] ? do_raw_spin_lock+0x11f/0x290 [ 52.820621] worker_thread+0x9b/0xe20 [ 52.824410] ? process_one_work+0x1580/0x1580 [ 52.828886] kthread+0x313/0x420 [ 52.832241] ? kthread_park+0x1a0/0x1a0 [ 52.836219] ret_from_fork+0x3a/0x50 [ 52.839931] [ 52.841536] Allocated by task 3523: [ 52.845152] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 52.850062] security_task_alloc+0x113/0x180 [ 52.854458] copy_process.part.0+0x1c62/0x76b0 [ 52.859029] _do_fork+0x234/0xed0 [ 52.862469] do_syscall_64+0xcf/0x4f0 [ 52.866251] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 52.871412] [ 52.873015] Freed by task 9: [ 52.876020] __kasan_slab_free+0x130/0x180 [ 52.880240] slab_free_freelist_hook+0x5e/0x140 [ 52.884891] kfree+0xce/0x290 [ 52.887991] security_task_free+0x9a/0xf0 [ 52.892121] __put_task_struct+0xec/0x4d0 [ 52.896251] delayed_put_task_struct+0x189/0x290 [ 52.901002] rcu_core+0x83b/0x1a80 [ 52.905362] __do_softirq+0x22a/0x8cd [ 52.909139] [ 52.910759] The buggy address belongs to the object at ffff8880a00ffba0 [ 52.910759] which belongs to the cache kmalloc-64 of size 64 [ 52.923249] The buggy address is located 34 bytes inside of [ 52.923249] 64-byte region [ffff8880a00ffba0, ffff8880a00ffbe0) [ 52.934933] The buggy address belongs to the page: [ 52.939862] page:ffffea0002803fc0 count:1 mapcount:0 mapping:ffff88812c3f5600 index:0x0 [ 52.948003] flags: 0xfff00000000200(slab) [ 52.952135] raw: 00fff00000000200 ffffea000254c800 0000000900000009 ffff88812c3f5600 [ 52.959996] raw: 0000000000000000 00000000802a002a 00000001ffffffff 0000000000000000 [ 52.967853] page dumped because: kasan: bad access detected [ 52.973539] [ 52.975142] Memory state around the buggy address: [ 52.980051] ffff8880a00ffa80: fb fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb [ 52.987389] ffff8880a00ffb00: fb fb fb fb fc fc fc fc 00 00 00 00 00 00 fc fc [ 52.994731] >ffff8880a00ffb80: fc fc fc fc fb fb fb fb fb fb fb fb fc fc fc fc [ 53.002066] ^ [ 53.007498] ffff8880a00ffc00: fb fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb [ 53.014836] ffff8880a00ffc80: fb fb fb fb fc fc fc fc fb fb fb fb fb fb fb fb [ 53.022186] ================================================================== [ 53.029531] Disabling lock debugging due to kernel taint [ 53.035067] Kernel panic - not syncing: panic_on_warn set ... [ 53.040947] CPU: 1 PID: 21 Comm: kworker/1:1 Tainted: G B 5.1.0-rc4-319354-g9a33b36 #3 [ 53.050290] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.059640] Workqueue: usb_hub_wq hub_event [ 53.063943] Call Trace: [ 53.066518] dump_stack+0xe8/0x16e [ 53.070044] panic+0x29d/0x5f2 [ 53.073223] ? __warn_printk+0xf8/0xf8 [ 53.077098] ? retint_kernel+0x10/0x10 [ 53.080973] ? trace_hardirqs_on+0x55/0x1c0 [ 53.085286] ? ds_probe+0x604/0x760 [ 53.088894] end_report+0x48/0x4e [ 53.092330] ? ds_probe+0x604/0x760 [ 53.095938] kasan_report.cold+0xd/0x3c [ 53.099908] ? ds_probe+0x604/0x760 [ 53.103521] ds_probe+0x604/0x760 [ 53.106962] usb_probe_interface+0x31d/0x820 [ 53.111354] ? usb_probe_device+0x150/0x150 [ 53.115663] really_probe+0x2da/0xb10 [ 53.119448] driver_probe_device+0x21d/0x350 [ 53.123838] __device_attach_driver+0x1d8/0x290 [ 53.128492] ? driver_allows_async_probing+0x160/0x160 [ 53.133754] bus_for_each_drv+0x163/0x1e0 [ 53.137894] ? bus_rescan_devices+0x30/0x30 [ 53.142203] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 53.147301] ? lockdep_hardirqs_on+0x37e/0x580 [ 53.151867] __device_attach+0x223/0x3a0 [ 53.155912] ? device_bind_driver+0xe0/0xe0 [ 53.160229] ? kobject_uevent_env+0x295/0x13d0 [ 53.164797] bus_probe_device+0x1f1/0x2a0 [ 53.168939] ? blocking_notifier_call_chain+0x59/0xb0 [ 53.174126] device_add+0xad2/0x16e0 [ 53.177828] ? get_device_parent.isra.0+0x560/0x560 [ 53.182828] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 53.187918] usb_set_configuration+0xdf7/0x1740 [ 53.192579] generic_probe+0xa2/0xda [ 53.196284] usb_probe_device+0xc0/0x150 [ 53.200332] ? usb_suspend+0x5f0/0x5f0 [ 53.204208] really_probe+0x2da/0xb10 [ 53.207991] driver_probe_device+0x21d/0x350 [ 53.212384] __device_attach_driver+0x1d8/0x290 [ 53.217038] ? driver_allows_async_probing+0x160/0x160 [ 53.222301] bus_for_each_drv+0x163/0x1e0 [ 53.226439] ? bus_rescan_devices+0x30/0x30 [ 53.230748] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 53.235836] ? lockdep_hardirqs_on+0x37e/0x580 [ 53.240401] __device_attach+0x223/0x3a0 [ 53.244444] ? device_bind_driver+0xe0/0xe0 [ 53.248757] ? kobject_uevent_env+0x295/0x13d0 [ 53.253342] bus_probe_device+0x1f1/0x2a0 [ 53.257478] ? blocking_notifier_call_chain+0x59/0xb0 [ 53.262657] device_add+0xad2/0x16e0 [ 53.266379] ? get_device_parent.isra.0+0x560/0x560 [ 53.271383] usb_new_device.cold+0x537/0xccf [ 53.275787] hub_event+0x138e/0x3b00 [ 53.279491] ? hub_port_debounce+0x350/0x350 [ 53.283898] ? _raw_spin_unlock_irq+0x29/0x40 [ 53.288381] process_one_work+0x90f/0x1580 [ 53.292606] ? wq_pool_ids_show+0x300/0x300 [ 53.296909] ? do_raw_spin_lock+0x11f/0x290 [ 53.301304] worker_thread+0x9b/0xe20 [ 53.305089] ? process_one_work+0x1580/0x1580 [ 53.309565] kthread+0x313/0x420 [ 53.312916] ? kthread_park+0x1a0/0x1a0 [ 53.316876] ret_from_fork+0x3a/0x50 [ 53.321504] Kernel Offset: disabled [ 53.325147] Rebooting in 86400 seconds..