[ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.10.37' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 65.577007][ T6888] ================================================================== [ 65.585382][ T6888] BUG: KASAN: use-after-free in strnlen+0x64/0x70 [ 65.591873][ T6888] Read of size 1 at addr ffff88809f74a818 by task syz-executor843/6888 [ 65.600238][ T6888] [ 65.602556][ T6888] CPU: 1 PID: 6888 Comm: syz-executor843 Not tainted 5.8.0-rc2-next-20200626-syzkaller #0 [ 65.612523][ T6888] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 65.622564][ T6888] Call Trace: [ 65.625853][ T6888] dump_stack+0x18f/0x20d [ 65.630165][ T6888] ? strnlen+0x64/0x70 [ 65.634236][ T6888] ? strnlen+0x64/0x70 [ 65.638288][ T6888] print_address_description.constprop.0.cold+0xae/0x436 [ 65.645295][ T6888] ? lockdep_hardirqs_off+0x66/0xa0 [ 65.650492][ T6888] ? vprintk_func+0x97/0x1a6 [ 65.655504][ T6888] ? strnlen+0x64/0x70 [ 65.659660][ T6888] kasan_report.cold+0x1f/0x37 [ 65.664448][ T6888] ? strnlen+0x64/0x70 [ 65.668511][ T6888] strnlen+0x64/0x70 [ 65.672404][ T6888] netdev_name_node_lookup_rcu+0x22/0x150 [ 65.678112][ T6888] dev_get_by_name+0x7b/0x1e0 [ 65.682773][ T6888] wg_get_device_start+0x2e4/0x3f0 [ 65.687867][ T6888] ? wg_set_device+0x1520/0x1520 [ 65.692781][ T6888] genl_start+0x342/0x6e0 [ 65.697093][ T6888] __netlink_dump_start+0x585/0x900 [ 65.702282][ T6888] ? genl_rcv_msg+0x9e0/0x9e0 [ 65.707031][ T6888] ? wg_get_device_start+0x3f0/0x3f0 [ 65.712333][ T6888] genl_family_rcv_msg_dumpit+0x2ac/0x310 [ 65.718035][ T6888] ? genl_rcv+0x40/0x40 [ 65.722175][ T6888] ? mutex_lock_io_nested+0xf60/0xf60 [ 65.727528][ T6888] ? apparmor_capable+0x1d8/0x460 [ 65.732537][ T6888] ? genl_rcv_msg+0x9e0/0x9e0 [ 65.737294][ T6888] ? genl_unlock+0x20/0x20 [ 65.741687][ T6888] ? genl_parallel_done+0x170/0x170 [ 65.746865][ T6888] ? ns_capable+0xde/0x100 [ 65.751297][ T6888] genl_rcv_msg+0x797/0x9e0 [ 65.755806][ T6888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 65.762728][ T6888] ? lock_acquire+0x1f1/0xad0 [ 65.767394][ T6888] ? genl_rcv+0x15/0x40 [ 65.771530][ T6888] ? lock_release+0x8d0/0x8d0 [ 65.776200][ T6888] netlink_rcv_skb+0x15a/0x430 [ 65.780957][ T6888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 65.787984][ T6888] ? netlink_ack+0xa10/0xa10 [ 65.792574][ T6888] ? lock_is_held_type+0xb0/0xe0 [ 65.797494][ T6888] genl_rcv+0x24/0x40 [ 65.801463][ T6888] netlink_unicast+0x533/0x7d0 [ 65.806211][ T6888] ? netlink_attachskb+0x810/0x810 [ 65.811307][ T6888] ? _copy_from_iter_full+0x247/0x890 [ 65.817022][ T6888] ? __phys_addr+0x9a/0x110 [ 65.821504][ T6888] ? __phys_addr_symbol+0x2c/0x70 [ 65.826531][ T6888] ? __check_object_size+0x171/0x3e4 [ 65.831831][ T6888] netlink_sendmsg+0x856/0xd90 [ 65.836593][ T6888] ? netlink_unicast+0x7d0/0x7d0 [ 65.841521][ T6888] ? netlink_unicast+0x7d0/0x7d0 [ 65.846441][ T6888] sock_sendmsg+0xcf/0x120 [ 65.850850][ T6888] ____sys_sendmsg+0x6e8/0x810 [ 65.855682][ T6888] ? kernel_sendmsg+0x50/0x50 [ 65.860353][ T6888] ? do_recvmmsg+0x6d0/0x6d0 [ 65.865062][ T6888] ? find_held_lock+0x2d/0x110 [ 65.869817][ T6888] ? lockdep_hardirqs_on_prepare+0x590/0x590 [ 65.875787][ T6888] ? lock_downgrade+0x820/0x820 [ 65.880631][ T6888] ___sys_sendmsg+0xf3/0x170 [ 65.885209][ T6888] ? sendmsg_copy_msghdr+0x160/0x160 [ 65.890474][ T6888] ? debug_object_active_state+0x260/0x350 [ 65.896280][ T6888] ? lock_downgrade+0x820/0x820 [ 65.901204][ T6888] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 65.906998][ T6888] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 65.912992][ T6888] ? trace_hardirqs_on+0x5f/0x220 [ 65.918019][ T6888] ? lockdep_hardirqs_on+0x6a/0xe0 [ 65.923119][ T6888] ? _raw_spin_unlock_irqrestore+0x9b/0xe0 [ 65.928919][ T6888] ? debug_object_active_state+0x260/0x350 [ 65.934718][ T6888] ? check_preemption_disabled+0x50/0x130 [ 65.941045][ T6888] ? __fget_light+0x215/0x280 [ 65.945811][ T6888] __sys_sendmsg+0xe5/0x1b0 [ 65.950381][ T6888] ? __sys_sendmsg_sock+0xb0/0xb0 [ 65.955474][ T6888] ? lock_is_held_type+0xb0/0xe0 [ 65.960406][ T6888] ? do_syscall_64+0x1c/0xe0 [ 65.965071][ T6888] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 65.971210][ T6888] do_syscall_64+0x60/0xe0 [ 65.975616][ T6888] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 65.981493][ T6888] RIP: 0033:0x445299 [ 65.985361][ T6888] Code: Bad RIP value. [ 65.989664][ T6888] RSP: 002b:00007ffda3e470b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 65.998264][ T6888] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445299 [ 66.006222][ T6888] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003 [ 66.014216][ T6888] RBP: 000000000001001c R08: 0000000000000000 R09: 00000000004002e0 [ 66.022186][ T6888] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402430 [ 66.030143][ T6888] R13: 00000000004024c0 R14: 0000000000000000 R15: 0000000000000000 [ 66.038239][ T6888] [ 66.040672][ T6888] Allocated by task 6887: [ 66.045008][ T6888] save_stack+0x1b/0x40 [ 66.049204][ T6888] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 66.054818][ T6888] __alloc_skb+0xae/0x550 [ 66.059218][ T6888] netlink_sendmsg+0x94f/0xd90 [ 66.064135][ T6888] sock_sendmsg+0xcf/0x120 [ 66.068659][ T6888] ____sys_sendmsg+0x6e8/0x810 [ 66.073409][ T6888] ___sys_sendmsg+0xf3/0x170 [ 66.078070][ T6888] __sys_sendmsg+0xe5/0x1b0 [ 66.082593][ T6888] do_syscall_64+0x60/0xe0 [ 66.087016][ T6888] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 66.092891][ T6888] [ 66.095216][ T6888] Freed by task 6887: [ 66.099178][ T6888] save_stack+0x1b/0x40 [ 66.103312][ T6888] __kasan_slab_free+0xf2/0x130 [ 66.108152][ T6888] kfree+0x103/0x2c0 [ 66.112051][ T6888] skb_release_data+0x6d9/0x910 [ 66.116895][ T6888] consume_skb+0xc2/0x160 [ 66.121203][ T6888] netlink_unicast+0x53b/0x7d0 [ 66.125945][ T6888] netlink_sendmsg+0x856/0xd90 [ 66.130948][ T6888] sock_sendmsg+0xcf/0x120 [ 66.135342][ T6888] ____sys_sendmsg+0x6e8/0x810 [ 66.140083][ T6888] ___sys_sendmsg+0xf3/0x170 [ 66.144650][ T6888] __sys_sendmsg+0xe5/0x1b0 [ 66.149130][ T6888] do_syscall_64+0x60/0xe0 [ 66.153533][ T6888] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 66.159403][ T6888] [ 66.161726][ T6888] The buggy address belongs to the object at ffff88809f74a800 [ 66.161726][ T6888] which belongs to the cache kmalloc-512 of size 512 [ 66.175759][ T6888] The buggy address is located 24 bytes inside of [ 66.175759][ T6888] 512-byte region [ffff88809f74a800, ffff88809f74aa00) [ 66.189268][ T6888] The buggy address belongs to the page: [ 66.194974][ T6888] page:ffffea00027dd280 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 [ 66.204057][ T6888] flags: 0xfffe0000000200(slab) [ 66.208904][ T6888] raw: 00fffe0000000200 ffffea000278f8c8 ffffea00027dcb08 ffff8880aa000600 [ 66.217472][ T6888] raw: 0000000000000000 ffff88809f74a000 0000000100000004 0000000000000000 [ 66.226030][ T6888] page dumped because: kasan: bad access detected [ 66.232414][ T6888] [ 66.234716][ T6888] Memory state around the buggy address: [ 66.240321][ T6888] ffff88809f74a700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 66.248358][ T6888] ffff88809f74a780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 66.256403][ T6888] >ffff88809f74a800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.264561][ T6888] ^ [ 66.269415][ T6888] ffff88809f74a880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.277459][ T6888] ffff88809f74a900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.285580][ T6888] ================================================================== [ 66.293617][ T6888] Disabling lock debugging due to kernel taint [ 66.303123][ T6888] Kernel panic - not syncing: panic_on_warn set ... [ 66.309915][ T6888] CPU: 1 PID: 6888 Comm: syz-executor843 Tainted: G B 5.8.0-rc2-next-20200626-syzkaller #0 [ 66.321241][ T6888] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 66.331313][ T6888] Call Trace: [ 66.334610][ T6888] dump_stack+0x18f/0x20d [ 66.339058][ T6888] ? strnlen+0x10/0x70 [ 66.343113][ T6888] panic+0x2e3/0x75c [ 66.346986][ T6888] ? __warn_printk+0xf3/0xf3 [ 66.351664][ T6888] ? preempt_schedule_common+0x59/0xc0 [ 66.357095][ T6888] ? strnlen+0x64/0x70 [ 66.361226][ T6888] ? preempt_schedule_thunk+0x16/0x18 [ 66.366579][ T6888] ? trace_hardirqs_on+0x55/0x220 [ 66.371602][ T6888] ? strnlen+0x64/0x70 [ 66.375646][ T6888] ? strnlen+0x64/0x70 [ 66.379701][ T6888] end_report+0x4d/0x53 [ 66.383849][ T6888] kasan_report.cold+0xd/0x37 [ 66.388521][ T6888] ? strnlen+0x64/0x70 [ 66.392593][ T6888] strnlen+0x64/0x70 [ 66.396476][ T6888] netdev_name_node_lookup_rcu+0x22/0x150 [ 66.402171][ T6888] dev_get_by_name+0x7b/0x1e0 [ 66.406844][ T6888] wg_get_device_start+0x2e4/0x3f0 [ 66.412066][ T6888] ? wg_set_device+0x1520/0x1520 [ 66.417051][ T6888] genl_start+0x342/0x6e0 [ 66.421404][ T6888] __netlink_dump_start+0x585/0x900 [ 66.426644][ T6888] ? genl_rcv_msg+0x9e0/0x9e0 [ 66.431363][ T6888] ? wg_get_device_start+0x3f0/0x3f0 [ 66.436981][ T6888] genl_family_rcv_msg_dumpit+0x2ac/0x310 [ 66.442681][ T6888] ? genl_rcv+0x40/0x40 [ 66.446826][ T6888] ? mutex_lock_io_nested+0xf60/0xf60 [ 66.452175][ T6888] ? apparmor_capable+0x1d8/0x460 [ 66.457181][ T6888] ? genl_rcv_msg+0x9e0/0x9e0 [ 66.461833][ T6888] ? genl_unlock+0x20/0x20 [ 66.466335][ T6888] ? genl_parallel_done+0x170/0x170 [ 66.471595][ T6888] ? ns_capable+0xde/0x100 [ 66.476085][ T6888] genl_rcv_msg+0x797/0x9e0 [ 66.480700][ T6888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 66.487676][ T6888] ? lock_acquire+0x1f1/0xad0 [ 66.492423][ T6888] ? genl_rcv+0x15/0x40 [ 66.496556][ T6888] ? lock_release+0x8d0/0x8d0 [ 66.501222][ T6888] netlink_rcv_skb+0x15a/0x430 [ 66.505981][ T6888] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 66.512901][ T6888] ? netlink_ack+0xa10/0xa10 [ 66.517560][ T6888] ? lock_is_held_type+0xb0/0xe0 [ 66.522823][ T6888] genl_rcv+0x24/0x40 [ 66.526796][ T6888] netlink_unicast+0x533/0x7d0 [ 66.531560][ T6888] ? netlink_attachskb+0x810/0x810 [ 66.536825][ T6888] ? _copy_from_iter_full+0x247/0x890 [ 66.542354][ T6888] ? __phys_addr+0x9a/0x110 [ 66.546838][ T6888] ? __phys_addr_symbol+0x2c/0x70 [ 66.551859][ T6888] ? __check_object_size+0x171/0x3e4 [ 66.557127][ T6888] netlink_sendmsg+0x856/0xd90 [ 66.561911][ T6888] ? netlink_unicast+0x7d0/0x7d0 [ 66.566865][ T6888] ? netlink_unicast+0x7d0/0x7d0 [ 66.571876][ T6888] sock_sendmsg+0xcf/0x120 [ 66.576470][ T6888] ____sys_sendmsg+0x6e8/0x810 [ 66.581566][ T6888] ? kernel_sendmsg+0x50/0x50 [ 66.586235][ T6888] ? do_recvmmsg+0x6d0/0x6d0 [ 66.590842][ T6888] ? find_held_lock+0x2d/0x110 [ 66.595714][ T6888] ? lockdep_hardirqs_on_prepare+0x590/0x590 [ 66.601735][ T6888] ? lock_downgrade+0x820/0x820 [ 66.606568][ T6888] ___sys_sendmsg+0xf3/0x170 [ 66.611148][ T6888] ? sendmsg_copy_msghdr+0x160/0x160 [ 66.616432][ T6888] ? debug_object_active_state+0x260/0x350 [ 66.622219][ T6888] ? lock_downgrade+0x820/0x820 [ 66.627834][ T6888] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 66.633637][ T6888] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 66.639598][ T6888] ? trace_hardirqs_on+0x5f/0x220 [ 66.646468][ T6888] ? lockdep_hardirqs_on+0x6a/0xe0 [ 66.651563][ T6888] ? _raw_spin_unlock_irqrestore+0x9b/0xe0 [ 66.657349][ T6888] ? debug_object_active_state+0x260/0x350 [ 66.663134][ T6888] ? check_preemption_disabled+0x50/0x130 [ 66.668831][ T6888] ? __fget_light+0x215/0x280 [ 66.673495][ T6888] __sys_sendmsg+0xe5/0x1b0 [ 66.677980][ T6888] ? __sys_sendmsg_sock+0xb0/0xb0 [ 66.682980][ T6888] ? lock_is_held_type+0xb0/0xe0 [ 66.687998][ T6888] ? do_syscall_64+0x1c/0xe0 [ 66.692574][ T6888] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 66.698532][ T6888] do_syscall_64+0x60/0xe0 [ 66.702936][ T6888] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 66.708821][ T6888] RIP: 0033:0x445299 [ 66.712697][ T6888] Code: Bad RIP value. [ 66.716766][ T6888] RSP: 002b:00007ffda3e470b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 66.725264][ T6888] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445299 [ 66.733232][ T6888] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003 [ 66.741283][ T6888] RBP: 000000000001001c R08: 0000000000000000 R09: 00000000004002e0 [ 66.749234][ T6888] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402430 [ 66.757180][ T6888] R13: 00000000004024c0 R14: 0000000000000000 R15: 0000000000000000 [ 66.766628][ T6888] Kernel Offset: disabled [ 66.771219][ T6888] Rebooting in 86400 seconds..