[ 46.811816] audit: type=1800 audit(1555524929.802:27): pid=5197 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2469 res=0 [ 46.831619] audit: type=1800 audit(1555524929.812:28): pid=5197 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. [ 47.657027] audit: type=1800 audit(1555524930.682:29): pid=5197 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 [ 47.676349] audit: type=1800 audit(1555524930.692:30): pid=5197 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.10.30' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 59.158763] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 59.398716] usb 1-1: Using ep0 maxpacket: 8 [ 59.518806] usb 1-1: config 0 has an invalid interface number: 28 but max is 0 [ 59.526281] usb 1-1: config 0 has no interface number 0 [ 59.531796] usb 1-1: New USB device found, idVendor=04fa, idProduct=2490, bcdDevice=74.f9 [ 59.540193] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 59.549239] usb 1-1: config 0 descriptor?? [ 59.788942] ================================================================== [ 59.796435] BUG: KASAN: use-after-free in ds_probe+0x604/0x760 [ 59.802392] Read of size 1 at addr ffff88821b38fce2 by task kworker/0:1/12 [ 59.809380] [ 59.810992] CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.1.0-rc4-319354-g9a33b36 #3 [ 59.818976] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.828320] Workqueue: usb_hub_wq hub_event [ 59.832620] Call Trace: [ 59.835192] dump_stack+0xe8/0x16e [ 59.838713] ? ds_probe+0x604/0x760 [ 59.842325] ? ds_probe+0x604/0x760 [ 59.845937] print_address_description+0x6c/0x236 [ 59.850799] ? ds_probe+0x604/0x760 [ 59.854410] ? ds_probe+0x604/0x760 [ 59.858016] kasan_report.cold+0x1a/0x3c [ 59.862061] ? ds_probe+0x604/0x760 [ 59.866104] ds_probe+0x604/0x760 [ 59.869549] usb_probe_interface+0x31d/0x820 [ 59.873961] ? usb_probe_device+0x150/0x150 [ 59.878285] really_probe+0x2da/0xb10 [ 59.882068] driver_probe_device+0x21d/0x350 [ 59.886456] __device_attach_driver+0x1d8/0x290 [ 59.891111] ? driver_allows_async_probing+0x160/0x160 [ 59.896367] bus_for_each_drv+0x163/0x1e0 [ 59.900492] ? bus_rescan_devices+0x30/0x30 [ 59.904840] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 59.909949] ? lockdep_hardirqs_on+0x37e/0x580 [ 59.914539] __device_attach+0x223/0x3a0 [ 59.918636] ? device_bind_driver+0xe0/0xe0 [ 59.922953] ? kobject_uevent_env+0x295/0x13d0 [ 59.927515] bus_probe_device+0x1f1/0x2a0 [ 59.931650] ? blocking_notifier_call_chain+0x59/0xb0 [ 59.936823] device_add+0xad2/0x16e0 [ 59.940541] ? get_device_parent.isra.0+0x560/0x560 [ 59.945546] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 59.950635] usb_set_configuration+0xdf7/0x1740 [ 59.955291] generic_probe+0xa2/0xda [ 59.958983] usb_probe_device+0xc0/0x150 [ 59.963024] ? usb_suspend+0x5f0/0x5f0 [ 59.966891] really_probe+0x2da/0xb10 [ 59.970701] driver_probe_device+0x21d/0x350 [ 59.975094] __device_attach_driver+0x1d8/0x290 [ 59.979742] ? driver_allows_async_probing+0x160/0x160 [ 59.984999] bus_for_each_drv+0x163/0x1e0 [ 59.989132] ? bus_rescan_devices+0x30/0x30 [ 59.993435] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 59.998520] ? lockdep_hardirqs_on+0x37e/0x580 [ 60.003084] __device_attach+0x223/0x3a0 [ 60.007128] ? device_bind_driver+0xe0/0xe0 [ 60.011437] ? kobject_uevent_env+0x295/0x13d0 [ 60.016022] bus_probe_device+0x1f1/0x2a0 [ 60.020165] ? blocking_notifier_call_chain+0x59/0xb0 [ 60.025340] device_add+0xad2/0x16e0 [ 60.029043] ? get_device_parent.isra.0+0x560/0x560 [ 60.034053] usb_new_device.cold+0x537/0xccf [ 60.038478] hub_event+0x138e/0x3b00 [ 60.042187] ? hub_port_debounce+0x350/0x350 [ 60.046583] ? _raw_spin_unlock_irq+0x29/0x40 [ 60.051072] process_one_work+0x90f/0x1580 [ 60.055295] ? wq_pool_ids_show+0x300/0x300 [ 60.059596] ? do_raw_spin_lock+0x11f/0x290 [ 60.063903] worker_thread+0x9b/0xe20 [ 60.067689] ? process_one_work+0x1580/0x1580 [ 60.072167] kthread+0x313/0x420 [ 60.075516] ? kthread_park+0x1a0/0x1a0 [ 60.079566] ret_from_fork+0x3a/0x50 [ 60.083259] [ 60.085580] Allocated by task 1: [ 60.088956] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 60.093873] add_sysfs_param.isra.0+0x639/0x930 [ 60.098534] param_sysfs_init+0x364/0x435 [ 60.102689] do_one_initcall+0xde/0x597 [ 60.106664] kernel_init_freeable+0x4da/0x5c7 [ 60.111163] kernel_init+0x12/0x1ca [ 60.114776] ret_from_fork+0x3a/0x50 [ 60.118464] [ 60.120073] Freed by task 1: [ 60.123103] __kasan_slab_free+0x130/0x180 [ 60.127324] slab_free_freelist_hook+0x5e/0x140 [ 60.131975] kfree+0xce/0x290 [ 60.135062] krealloc+0x7d/0xc0 [ 60.138322] add_sysfs_param.isra.0+0xcd/0x930 [ 60.142882] param_sysfs_init+0x364/0x435 [ 60.147006] do_one_initcall+0xde/0x597 [ 60.150987] kernel_init_freeable+0x4da/0x5c7 [ 60.155467] kernel_init+0x12/0x1ca [ 60.159073] ret_from_fork+0x3a/0x50 [ 60.162762] [ 60.164369] The buggy address belongs to the object at ffff88821b38fcc0 [ 60.164369] which belongs to the cache kmalloc-64 of size 64 [ 60.176830] The buggy address is located 34 bytes inside of [ 60.176830] 64-byte region [ffff88821b38fcc0, ffff88821b38fd00) [ 60.188956] The buggy address belongs to the page: [ 60.193884] page:ffffea00086ce3c0 count:1 mapcount:0 mapping:ffff88812c3f5600 index:0x0 [ 60.202023] flags: 0x57ff00000000200(slab) [ 60.206266] raw: 057ff00000000200 dead000000000100 dead000000000200 ffff88812c3f5600 [ 60.214147] raw: 0000000000000000 00000000802a002a 00000001ffffffff 0000000000000000 [ 60.222005] page dumped because: kasan: bad access detected [ 60.227689] [ 60.229293] Memory state around the buggy address: [ 60.234202] ffff88821b38fb80: fc fc fc fc fb fb fb fb fb fb fb fb fc fc fc fc [ 60.241544] ffff88821b38fc00: 00 00 00 00 00 00 fc fc fc fc fc fc 00 00 00 00 [ 60.248902] >ffff88821b38fc80: 00 00 fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 60.256240] ^ [ 60.262710] ffff88821b38fd00: fc fc fc fc 00 00 00 00 00 fc fc fc fc fc fc fc [ 60.270053] ffff88821b38fd80: fb fb fb fb fb fb fb fb fc fc fc fc 00 00 00 00 [ 60.277390] ================================================================== [ 60.284724] Disabling lock debugging due to kernel taint [ 60.290259] Kernel panic - not syncing: panic_on_warn set ... [ 60.296155] CPU: 0 PID: 12 Comm: kworker/0:1 Tainted: G B 5.1.0-rc4-319354-g9a33b36 #3 [ 60.305529] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 60.314888] Workqueue: usb_hub_wq hub_event [ 60.319200] Call Trace: [ 60.321784] dump_stack+0xe8/0x16e [ 60.325318] panic+0x29d/0x5f2 [ 60.328503] ? __warn_printk+0xf8/0xf8 [ 60.332382] ? retint_kernel+0x10/0x10 [ 60.336265] ? trace_hardirqs_on+0x55/0x1c0 [ 60.340581] ? ds_probe+0x604/0x760 [ 60.344198] end_report+0x48/0x4e [ 60.347647] ? ds_probe+0x604/0x760 [ 60.351262] kasan_report.cold+0xd/0x3c [ 60.355229] ? ds_probe+0x604/0x760 [ 60.358850] ds_probe+0x604/0x760 [ 60.362304] usb_probe_interface+0x31d/0x820 [ 60.366724] ? usb_probe_device+0x150/0x150 [ 60.371041] really_probe+0x2da/0xb10 [ 60.374853] driver_probe_device+0x21d/0x350 [ 60.379357] __device_attach_driver+0x1d8/0x290 [ 60.384023] ? driver_allows_async_probing+0x160/0x160 [ 60.389294] bus_for_each_drv+0x163/0x1e0 [ 60.393444] ? bus_rescan_devices+0x30/0x30 [ 60.397778] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 60.402992] ? lockdep_hardirqs_on+0x37e/0x580 [ 60.407580] __device_attach+0x223/0x3a0 [ 60.411646] ? device_bind_driver+0xe0/0xe0 [ 60.415960] ? kobject_uevent_env+0x295/0x13d0 [ 60.420535] bus_probe_device+0x1f1/0x2a0 [ 60.424674] ? blocking_notifier_call_chain+0x59/0xb0 [ 60.429858] device_add+0xad2/0x16e0 [ 60.433567] ? get_device_parent.isra.0+0x560/0x560 [ 60.438574] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 60.443672] usb_set_configuration+0xdf7/0x1740 [ 60.448362] generic_probe+0xa2/0xda [ 60.452074] usb_probe_device+0xc0/0x150 [ 60.456148] ? usb_suspend+0x5f0/0x5f0 [ 60.460026] really_probe+0x2da/0xb10 [ 60.463828] driver_probe_device+0x21d/0x350 [ 60.468297] __device_attach_driver+0x1d8/0x290 [ 60.472975] ? driver_allows_async_probing+0x160/0x160 [ 60.478246] bus_for_each_drv+0x163/0x1e0 [ 60.482388] ? bus_rescan_devices+0x30/0x30 [ 60.486705] ? _raw_spin_unlock_irqrestore+0x4b/0x60 [ 60.491803] ? lockdep_hardirqs_on+0x37e/0x580 [ 60.496376] __device_attach+0x223/0x3a0 [ 60.500440] ? device_bind_driver+0xe0/0xe0 [ 60.504751] ? kobject_uevent_env+0x295/0x13d0 [ 60.509331] bus_probe_device+0x1f1/0x2a0 [ 60.513478] ? blocking_notifier_call_chain+0x59/0xb0 [ 60.518669] device_add+0xad2/0x16e0 [ 60.522403] ? get_device_parent.isra.0+0x560/0x560 [ 60.527417] usb_new_device.cold+0x537/0xccf [ 60.531826] hub_event+0x138e/0x3b00 [ 60.535541] ? hub_port_debounce+0x350/0x350 [ 60.539948] ? _raw_spin_unlock_irq+0x29/0x40 [ 60.544444] process_one_work+0x90f/0x1580 [ 60.548675] ? wq_pool_ids_show+0x300/0x300 [ 60.552993] ? do_raw_spin_lock+0x11f/0x290 [ 60.557312] worker_thread+0x9b/0xe20 [ 60.561111] ? process_one_work+0x1580/0x1580 [ 60.565595] kthread+0x313/0x420 [ 60.568977] ? kthread_park+0x1a0/0x1a0 [ 60.572946] ret_from_fork+0x3a/0x50 [ 60.577016] Kernel Offset: disabled [ 60.580654] Rebooting in 86400 seconds..