[ 43.616929] audit: type=1800 audit(1555399558.822:27): pid=5088 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.616951] audit: type=1800 audit(1555399558.822:28): pid=5088 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.559613] audit: type=1800 audit(1555399559.802:29): pid=5088 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.579251] audit: type=1800 audit(1555399559.812:30): pid=5088 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.1.5' (ECDSA) to the list of known hosts. 2019/04/16 07:26:12 parsed 1 programs 2019/04/16 07:26:14 executed programs: 0 syzkaller login: [ 58.851361] e cgroup1: Unknown subsys name 'hugetlb' [ 58.865755] IPVS: ftp: loaded support on port[0] = 21 [ 58.935924] bridge0: port 1(bridge_slave_0) entered blocking state [ 58.943109] bridge0: port 1(bridge_slave_0) entered disabled state [ 58.950790] device bridge_slave_0 entered promiscuous mode [ 58.958702] bridge0: port 2(bridge_slave_1) entered blocking state [ 58.965079] bridge0: port 2(bridge_slave_1) entered disabled state [ 58.972696] device bridge_slave_1 entered promiscuous mode [ 58.986428] bond0: Enslaving bond_slave_0 as an active interface with an up link [ 58.995899] bond0: Enslaving bond_slave_1 as an active interface with an up link [ 59.011751] team0: Port device team_slave_0 added [ 59.018306] team0: Port device team_slave_1 added [ 59.042187] bridge0: port 2(bridge_slave_1) entered blocking state [ 59.048740] bridge0: port 2(bridge_slave_1) entered forwarding state [ 59.055968] bridge0: port 1(bridge_slave_0) entered blocking state [ 59.062330] bridge0: port 1(bridge_slave_0) entered forwarding state [ 59.089339] 8021q: adding VLAN 0 to HW filter on device bond0 [ 59.100577] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 59.109629] bridge0: port 1(bridge_slave_0) entered disabled state [ 59.116909] bridge0: port 2(bridge_slave_1) entered disabled state [ 59.124827] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 59.135897] 8021q: adding VLAN 0 to HW filter on device team0 [ 59.144633] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 59.152547] bridge0: port 1(bridge_slave_0) entered blocking state [ 59.158985] bridge0: port 1(bridge_slave_0) entered forwarding state [ 59.173150] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 59.181122] bridge0: port 2(bridge_slave_1) entered blocking state [ 59.187501] bridge0: port 2(bridge_slave_1) entered forwarding state [ 59.196808] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 59.204972] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 59.214532] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 59.227413] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 59.235525] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 59.277411] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 59.601476] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 59.871736] usb 1-1: Using ep0 maxpacket: 8 [ 60.031485] usb 1-1: config 0 has an invalid interface number: 201 but max is 0 [ 60.039126] usb 1-1: config 0 has no interface number 0 [ 60.044648] usb 1-1: New USB device found, idVendor=0553, idProduct=0140, bcdDevice=94.de [ 60.052994] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 60.062400] usb 1-1: config 0 descriptor?? [ 60.103433] cpia2: CPiA2 USB camera found [ 60.232091] cpia2: Unexpected error: -110 [ 60.351484] cpia2: Control message failed, err val = -110 [ 60.357139] cpia2: Message: request = 0x0, start = 0x2 [ 60.362654] cpia2: Message: count = 1, register[0] = 0x1 [ 60.368818] cpia2: Unexpected error: -110 [ 60.542771] cpia2: Unexpected error: -110 [ 60.681584] cpia2: Unexpected error: -110 [ 60.861584] cpia2: Unexpected error: -110 [ 60.932151] cpia2: Unexpected error: -71 [ 60.961607] cpia2: Control message failed, err val = -71 [ 60.967249] cpia2: Message: request = 0x1, start = 0x90 [ 60.972924] cpia2: Message: count = 1, register[0] = 0x0 [ 60.979214] cpia2: Unexpected error: -71 [ 61.001561] cpia2: Control message failed, err val = -71 [ 61.007869] cpia2: Message: request = 0x1, start = 0x91 [ 61.014882] cpia2: Message: count = 1, register[0] = 0x0 [ 61.021066] cpia2: Unexpected error: -71 [ 61.041419] cpia2: Control message failed, err val = -71 [ 61.047222] cpia2: Message: request = 0x0, start = 0x2 [ 61.053016] cpia2: Message: count = 1, register[0] = 0x0 [ 61.058475] cpia2: Unexpected error: -71 [ 61.062589] cpia2: CPiA Version: 0.00 (103.63) [ 61.067478] cpia2: CPiA PnP-ID: 0000:0000:0000 [ 61.072340] cpia2: SensorID: 0.(version 0) [ 61.079364] usb 1-1: USB disconnect, device number 2 [ 61.085979] cpia2: Control message failed, err val = -19 [ 61.086150] cpia2: Couldn't configure sensor, error=-22 [ 61.091550] cpia2: Message: request = 0x1, start = 0xB0 [ 61.091572] cpia2: Message: count = 4, register[0] = 0x0 [ 61.091576] cpia2: Unexpected error: -19 [ 61.091627] cpia2: Unexpected error: -19 [ 61.116357] cpia2: Control message failed, err val = -19 [ 61.121860] cpia2: Message: request = 0x1, start = 0xA9 [ 61.127217] cpia2: Message: count = 1, register[0] = 0x0 [ 61.132786] cpia2: Unexpected error: -19 [ 61.139643] ================================================================== [ 61.147357] BUG: KASAN: use-after-free in cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.154438] Read of size 8 at addr ffff8880a09f0a58 by task kworker/0:1/12 [ 61.161488] [ 61.163106] CPU: 0 PID: 12 Comm: kworker/0:1 Not tainted 5.1.0-rc4-319354-g9a33b36 #3 [ 61.171050] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.180400] Workqueue: usb_hub_wq hub_event [ 61.184704] Call Trace: [ 61.187282] dump_stack+0xe8/0x16e [ 61.190803] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.195577] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.200242] print_address_description+0x6c/0x236 [ 61.205185] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.209926] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.214577] kasan_report.cold+0x1a/0x3c [ 61.218718] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.223552] cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.228050] usb_unbind_interface+0x1c9/0x980 [ 61.232688] ? usb_autoresume_device+0x60/0x60 [ 61.237270] device_release_driver_internal+0x436/0x4f0 [ 61.242845] bus_remove_device+0x302/0x5c0 [ 61.247095] device_del+0x467/0xb90 [ 61.250910] ? mark_held_locks+0x9f/0xe0 [ 61.255141] ? __device_links_no_driver+0x240/0x240 [ 61.260438] ? lockdep_hardirqs_on+0x37e/0x580 [ 61.265386] ? remove_intf_ep_devs+0x144/0x1d0 [ 61.269975] usb_disable_device+0x242/0x790 [ 61.274539] usb_disconnect+0x298/0x870 [ 61.279406] hub_event+0xcd2/0x3b00 [ 61.283352] ? mark_held_locks+0xe0/0xe0 [ 61.287421] ? hub_port_debounce+0x350/0x350 [ 61.291849] ? _raw_spin_unlock_irq+0x29/0x40 [ 61.296472] process_one_work+0x90f/0x1580 [ 61.301034] ? wq_pool_ids_show+0x300/0x300 [ 61.305375] ? do_raw_spin_lock+0x11f/0x290 [ 61.309962] worker_thread+0x7b0/0xe20 [ 61.314029] ? process_one_work+0x1580/0x1580 [ 61.318644] kthread+0x313/0x420 [ 61.322009] ? kthread_park+0x1a0/0x1a0 [ 61.325982] ret_from_fork+0x3a/0x50 [ 61.330133] [ 61.331756] Allocated by task 12: [ 61.335336] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 61.342454] cpia2_init_camera_struct+0x45/0x110 [ 61.347419] cpia2_usb_probe.cold+0x37/0x45a [ 61.352236] usb_probe_interface+0x31d/0x820 [ 61.356930] really_probe+0x2da/0xb10 [ 61.361226] driver_probe_device+0x21d/0x350 [ 61.365989] __device_attach_driver+0x1d8/0x290 [ 61.371469] bus_for_each_drv+0x163/0x1e0 [ 61.375699] __device_attach+0x223/0x3a0 [ 61.379943] bus_probe_device+0x1f1/0x2a0 [ 61.384592] device_add+0xad2/0x16e0 [ 61.388983] usb_set_configuration+0xdf7/0x1740 [ 61.393726] generic_probe+0xa2/0xda [ 61.399718] usb_probe_device+0xc0/0x150 [ 61.403892] really_probe+0x2da/0xb10 [ 61.407701] driver_probe_device+0x21d/0x350 [ 61.412111] __device_attach_driver+0x1d8/0x290 [ 61.417516] bus_for_each_drv+0x163/0x1e0 [ 61.421826] __device_attach+0x223/0x3a0 [ 61.425888] bus_probe_device+0x1f1/0x2a0 [ 61.430457] device_add+0xad2/0x16e0 [ 61.434437] usb_new_device.cold+0x537/0xccf [ 61.438847] hub_event+0x138e/0x3b00 [ 61.442907] process_one_work+0x90f/0x1580 [ 61.447376] worker_thread+0x9b/0xe20 [ 61.451485] kthread+0x313/0x420 [ 61.455074] ret_from_fork+0x3a/0x50 [ 61.459132] [ 61.460750] Freed by task 12: [ 61.463853] __kasan_slab_free+0x130/0x180 [ 61.468224] slab_free_freelist_hook+0x5e/0x140 [ 61.473105] kfree+0xce/0x290 [ 61.476926] v4l2_device_put+0x7e/0xa0 [ 61.480957] cpia2_usb_disconnect+0x7e/0x1c0 [ 61.485652] usb_unbind_interface+0x1c9/0x980 [ 61.490268] device_release_driver_internal+0x436/0x4f0 [ 61.495858] bus_remove_device+0x302/0x5c0 [ 61.500231] device_del+0x467/0xb90 [ 61.503860] usb_disable_device+0x242/0x790 [ 61.508239] usb_disconnect+0x298/0x870 [ 61.512212] hub_event+0xcd2/0x3b00 [ 61.515957] process_one_work+0x90f/0x1580 [ 61.520185] worker_thread+0x7b0/0xe20 [ 61.524109] kthread+0x313/0x420 [ 61.527560] ret_from_fork+0x3a/0x50 [ 61.531257] [ 61.532869] The buggy address belongs to the object at ffff8880a09f0000 [ 61.532869] which belongs to the cache kmalloc-4k of size 4096 [ 61.546093] The buggy address is located 2648 bytes inside of [ 61.546093] 4096-byte region [ffff8880a09f0000, ffff8880a09f1000) [ 61.558454] The buggy address belongs to the page: [ 61.564107] page:ffffea0002827c00 count:1 mapcount:0 mapping:ffff88812c3f4600 index:0x0 compound_mapcount: 0 [ 61.574375] flags: 0xfff00000010200(slab|head) [ 61.579023] raw: 00fff00000010200 dead000000000100 dead000000000200 ffff88812c3f4600 [ 61.587189] raw: 0000000000000000 0000000000070007 00000001ffffffff 0000000000000000 [ 61.595354] page dumped because: kasan: bad access detected [ 61.601099] [ 61.602715] Memory state around the buggy address: [ 61.607743] ffff8880a09f0900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.615390] ffff8880a09f0980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.623018] >ffff8880a09f0a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.630863] ^ [ 61.637722] ffff8880a09f0a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.645463] ffff8880a09f0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 61.652955] ================================================================== [ 61.660454] Disabling lock debugging due to kernel taint [ 61.666705] Kernel panic - not syncing: panic_on_warn set ... [ 61.672768] CPU: 0 PID: 12 Comm: kworker/0:1 Tainted: G B 5.1.0-rc4-319354-g9a33b36 #3 [ 61.682358] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 61.691717] Workqueue: usb_hub_wq hub_event [ 61.696393] Call Trace: [ 61.699000] dump_stack+0xe8/0x16e [ 61.702593] panic+0x29d/0x5f2 [ 61.705912] ? __warn_printk+0xf8/0xf8 [ 61.709794] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.714573] ? trace_hardirqs_on+0x55/0x1c0 [ 61.718968] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.723834] end_report+0x48/0x4e [ 61.727275] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.731938] kasan_report.cold+0xd/0x3c [ 61.735926] ? cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.741045] cpia2_usb_disconnect+0x1a9/0x1c0 [ 61.745701] usb_unbind_interface+0x1c9/0x980 [ 61.750201] ? usb_autoresume_device+0x60/0x60 [ 61.755038] device_release_driver_internal+0x436/0x4f0 [ 61.760579] bus_remove_device+0x302/0x5c0 [ 61.765086] device_del+0x467/0xb90 [ 61.768820] ? mark_held_locks+0x9f/0xe0 [ 61.772907] ? __device_links_no_driver+0x240/0x240 [ 61.777945] ? lockdep_hardirqs_on+0x37e/0x580 [ 61.782716] ? remove_intf_ep_devs+0x144/0x1d0 [ 61.787448] usb_disable_device+0x242/0x790 [ 61.791767] usb_disconnect+0x298/0x870 [ 61.796550] hub_event+0xcd2/0x3b00 [ 61.800315] ? mark_held_locks+0xe0/0xe0 [ 61.804507] ? hub_port_debounce+0x350/0x350 [ 61.809286] ? _raw_spin_unlock_irq+0x29/0x40 [ 61.813783] process_one_work+0x90f/0x1580 [ 61.818653] ? wq_pool_ids_show+0x300/0x300 [ 61.823307] ? do_raw_spin_lock+0x11f/0x290 [ 61.827637] worker_thread+0x7b0/0xe20 [ 61.831668] ? process_one_work+0x1580/0x1580 [ 61.836385] kthread+0x313/0x420 [ 61.839752] ? kthread_park+0x1a0/0x1a0 [ 61.843889] ret_from_fork+0x3a/0x50 [ 61.849597] Kernel Offset: disabled [ 61.853953] Rebooting in 86400 seconds..