[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.212' (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 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 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: [ 544.219430][ T7008] ================================================================== [ 544.227844][ T7008] BUG: KASAN: use-after-free in strnlen+0x64/0x70 [ 544.234245][ T7008] Read of size 1 at addr ffff88809a0f3c18 by task syz-executor175/7008 [ 544.242461][ T7008] [ 544.244769][ T7008] CPU: 0 PID: 7008 Comm: syz-executor175 Not tainted 5.8.0-rc3-syzkaller #0 [ 544.253410][ T7008] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 544.263464][ T7008] Call Trace: [ 544.266761][ T7008] dump_stack+0x18f/0x20d [ 544.271069][ T7008] ? strnlen+0x64/0x70 [ 544.275189][ T7008] ? strnlen+0x64/0x70 [ 544.279325][ T7008] print_address_description.constprop.0.cold+0xae/0x436 [ 544.286385][ T7008] ? lockdep_hardirqs_off+0x66/0xa0 [ 544.291601][ T7008] ? vprintk_func+0x97/0x1a6 [ 544.296184][ T7008] ? strnlen+0x64/0x70 [ 544.300231][ T7008] kasan_report.cold+0x1f/0x37 [ 544.304967][ T7008] ? strnlen+0x64/0x70 [ 544.309019][ T7008] strnlen+0x64/0x70 [ 544.312969][ T7008] netdev_name_node_lookup_rcu+0x22/0x150 [ 544.318669][ T7008] dev_get_by_name+0x7b/0x1e0 [ 544.323370][ T7008] wg_get_device_start+0x2e4/0x3f0 [ 544.328469][ T7008] ? wg_set_device+0x1520/0x1520 [ 544.333414][ T7008] genl_start+0x342/0x6e0 [ 544.337724][ T7008] __netlink_dump_start+0x585/0x900 [ 544.342905][ T7008] ? genl_rcv_msg+0x9e0/0x9e0 [ 544.347568][ T7008] ? wg_get_device_start+0x3f0/0x3f0 [ 544.352823][ T7008] genl_family_rcv_msg_dumpit+0x2ac/0x310 [ 544.358527][ T7008] ? genl_rcv+0x40/0x40 [ 544.362694][ T7008] ? mutex_lock_io_nested+0xf60/0xf60 [ 544.368076][ T7008] ? apparmor_capable+0x1d8/0x460 [ 544.373083][ T7008] ? genl_rcv_msg+0x9e0/0x9e0 [ 544.377734][ T7008] ? genl_unlock+0x20/0x20 [ 544.382160][ T7008] ? genl_parallel_done+0x170/0x170 [ 544.387429][ T7008] ? ns_capable+0xde/0x100 [ 544.391832][ T7008] genl_rcv_msg+0x797/0x9e0 [ 544.396320][ T7008] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 544.403243][ T7008] ? lock_acquire+0x1f1/0xad0 [ 544.407896][ T7008] ? genl_rcv+0x15/0x40 [ 544.412033][ T7008] ? lock_release+0x8d0/0x8d0 [ 544.416697][ T7008] netlink_rcv_skb+0x15a/0x430 [ 544.421448][ T7008] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 544.428356][ T7008] ? netlink_ack+0xa10/0xa10 [ 544.432928][ T7008] genl_rcv+0x24/0x40 [ 544.436883][ T7008] netlink_unicast+0x533/0x7d0 [ 544.441635][ T7008] ? netlink_attachskb+0x810/0x810 [ 544.446749][ T7008] ? _copy_from_iter_full+0x247/0x890 [ 544.452128][ T7008] ? __phys_addr+0x9a/0x110 [ 544.456627][ T7008] ? __phys_addr_symbol+0x2c/0x70 [ 544.461686][ T7008] ? __check_object_size+0x171/0x3e4 [ 544.466959][ T7008] netlink_sendmsg+0x856/0xd90 [ 544.471711][ T7008] ? netlink_unicast+0x7d0/0x7d0 [ 544.476630][ T7008] ? netlink_unicast+0x7d0/0x7d0 [ 544.481594][ T7008] sock_sendmsg+0xcf/0x120 [ 544.486007][ T7008] ____sys_sendmsg+0x6e8/0x810 [ 544.490777][ T7008] ? kernel_sendmsg+0x50/0x50 [ 544.495429][ T7008] ? do_recvmmsg+0x6d0/0x6d0 [ 544.499995][ T7008] ? find_held_lock+0x2d/0x110 [ 544.504745][ T7008] ? lockdep_hardirqs_on_prepare+0x590/0x590 [ 544.510699][ T7008] ? lock_downgrade+0x820/0x820 [ 544.515526][ T7008] ___sys_sendmsg+0xf3/0x170 [ 544.520090][ T7008] ? sendmsg_copy_msghdr+0x160/0x160 [ 544.525384][ T7008] ? debug_object_active_state+0x260/0x350 [ 544.531166][ T7008] ? lock_downgrade+0x820/0x820 [ 544.535995][ T7008] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 544.541787][ T7008] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 544.547795][ T7008] ? trace_hardirqs_on+0x5f/0x220 [ 544.552810][ T7008] ? lockdep_hardirqs_on+0x6a/0xe0 [ 544.557904][ T7008] ? _raw_spin_unlock_irqrestore+0x9b/0xe0 [ 544.563700][ T7008] ? debug_object_active_state+0x260/0x350 [ 544.569479][ T7008] ? check_preemption_disabled+0x50/0x130 [ 544.575217][ T7008] ? __fget_light+0x215/0x280 [ 544.579871][ T7008] __sys_sendmsg+0xe5/0x1b0 [ 544.584349][ T7008] ? __sys_sendmsg_sock+0xb0/0xb0 [ 544.589348][ T7008] ? lock_is_held_type+0xb0/0xe0 [ 544.594267][ T7008] ? do_syscall_64+0x1c/0xe0 [ 544.598834][ T7008] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 544.604811][ T7008] do_syscall_64+0x60/0xe0 [ 544.609221][ T7008] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 544.615188][ T7008] RIP: 0033:0x445299 [ 544.619066][ T7008] Code: Bad RIP value. [ 544.623103][ T7008] RSP: 002b:00007fffb0a41fb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 544.631484][ T7008] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445299 [ 544.639448][ T7008] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003 [ 544.647404][ T7008] RBP: 0000000000084de7 R08: 0000000000000000 R09: 00000000004002e0 [ 544.655352][ T7008] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402430 [ 544.663385][ T7008] R13: 00000000004024c0 R14: 0000000000000000 R15: 0000000000000000 [ 544.671348][ T7008] [ 544.673708][ T7008] Allocated by task 7007: [ 544.678049][ T7008] save_stack+0x1b/0x40 [ 544.682178][ T7008] __kasan_kmalloc.constprop.0+0xc2/0xd0 [ 544.687824][ T7008] __alloc_skb+0xae/0x550 [ 544.692138][ T7008] netlink_sendmsg+0x94f/0xd90 [ 544.696922][ T7008] sock_sendmsg+0xcf/0x120 [ 544.701314][ T7008] ____sys_sendmsg+0x6e8/0x810 [ 544.706106][ T7008] ___sys_sendmsg+0xf3/0x170 [ 544.710686][ T7008] __sys_sendmsg+0xe5/0x1b0 [ 544.715162][ T7008] do_syscall_64+0x60/0xe0 [ 544.719640][ T7008] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 544.725499][ T7008] [ 544.727801][ T7008] Freed by task 7007: [ 544.731756][ T7008] save_stack+0x1b/0x40 [ 544.735885][ T7008] __kasan_slab_free+0xf5/0x140 [ 544.740708][ T7008] kfree+0x103/0x2c0 [ 544.744577][ T7008] skb_release_data+0x6d9/0x910 [ 544.749400][ T7008] consume_skb+0xc2/0x160 [ 544.753719][ T7008] netlink_unicast+0x53b/0x7d0 [ 544.758471][ T7008] netlink_sendmsg+0x856/0xd90 [ 544.763247][ T7008] sock_sendmsg+0xcf/0x120 [ 544.767643][ T7008] ____sys_sendmsg+0x6e8/0x810 [ 544.772519][ T7008] ___sys_sendmsg+0xf3/0x170 [ 544.777085][ T7008] __sys_sendmsg+0xe5/0x1b0 [ 544.781566][ T7008] do_syscall_64+0x60/0xe0 [ 544.785971][ T7008] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 544.791830][ T7008] [ 544.794142][ T7008] The buggy address belongs to the object at ffff88809a0f3c00 [ 544.794142][ T7008] which belongs to the cache kmalloc-512 of size 512 [ 544.808177][ T7008] The buggy address is located 24 bytes inside of [ 544.808177][ T7008] 512-byte region [ffff88809a0f3c00, ffff88809a0f3e00) [ 544.821334][ T7008] The buggy address belongs to the page: [ 544.826963][ T7008] page:ffffea0002683cc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 [ 544.836052][ T7008] flags: 0xfffe0000000200(slab) [ 544.840882][ T7008] raw: 00fffe0000000200 ffffea00024cf308 ffffea0002a4bfc8 ffff8880aa000a80 [ 544.849441][ T7008] raw: 0000000000000000 ffff88809a0f3000 0000000100000004 0000000000000000 [ 544.857996][ T7008] page dumped because: kasan: bad access detected [ 544.864396][ T7008] [ 544.866696][ T7008] Memory state around the buggy address: [ 544.872301][ T7008] ffff88809a0f3b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 544.880369][ T7008] ffff88809a0f3b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 544.888403][ T7008] >ffff88809a0f3c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 544.896471][ T7008] ^ [ 544.901301][ T7008] ffff88809a0f3c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 544.909334][ T7008] ffff88809a0f3d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 544.917364][ T7008] ================================================================== [ 544.925397][ T7008] Disabling lock debugging due to kernel taint [ 544.933019][ T7008] Kernel panic - not syncing: panic_on_warn set ... [ 544.939607][ T7008] CPU: 0 PID: 7008 Comm: syz-executor175 Tainted: G B 5.8.0-rc3-syzkaller #0 [ 544.949654][ T7008] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 544.959692][ T7008] Call Trace: [ 544.963168][ T7008] dump_stack+0x18f/0x20d [ 544.967490][ T7008] ? strnlen+0x30/0x70 [ 544.971623][ T7008] panic+0x2e3/0x75c [ 544.975509][ T7008] ? __warn_printk+0xf3/0xf3 [ 544.980074][ T7008] ? preempt_schedule_common+0x59/0xc0 [ 544.985514][ T7008] ? strnlen+0x64/0x70 [ 544.989613][ T7008] ? preempt_schedule_thunk+0x16/0x18 [ 544.994960][ T7008] ? trace_hardirqs_on+0x55/0x220 [ 544.999956][ T7008] ? strnlen+0x64/0x70 [ 545.003992][ T7008] ? strnlen+0x64/0x70 [ 545.008033][ T7008] end_report+0x4d/0x53 [ 545.012160][ T7008] kasan_report.cold+0xd/0x37 [ 545.016816][ T7008] ? strnlen+0x64/0x70 [ 545.020864][ T7008] strnlen+0x64/0x70 [ 545.024864][ T7008] netdev_name_node_lookup_rcu+0x22/0x150 [ 545.030554][ T7008] dev_get_by_name+0x7b/0x1e0 [ 545.035214][ T7008] wg_get_device_start+0x2e4/0x3f0 [ 545.040298][ T7008] ? wg_set_device+0x1520/0x1520 [ 545.045205][ T7008] genl_start+0x342/0x6e0 [ 545.049509][ T7008] __netlink_dump_start+0x585/0x900 [ 545.054691][ T7008] ? genl_rcv_msg+0x9e0/0x9e0 [ 545.059340][ T7008] ? wg_get_device_start+0x3f0/0x3f0 [ 545.064598][ T7008] genl_family_rcv_msg_dumpit+0x2ac/0x310 [ 545.070287][ T7008] ? genl_rcv+0x40/0x40 [ 545.074416][ T7008] ? mutex_lock_io_nested+0xf60/0xf60 [ 545.079759][ T7008] ? apparmor_capable+0x1d8/0x460 [ 545.084754][ T7008] ? genl_rcv_msg+0x9e0/0x9e0 [ 545.089418][ T7008] ? genl_unlock+0x20/0x20 [ 545.093820][ T7008] ? genl_parallel_done+0x170/0x170 [ 545.099000][ T7008] ? ns_capable+0xde/0x100 [ 545.103389][ T7008] genl_rcv_msg+0x797/0x9e0 [ 545.107869][ T7008] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 545.114797][ T7008] ? lock_acquire+0x1f1/0xad0 [ 545.119445][ T7008] ? genl_rcv+0x15/0x40 [ 545.123576][ T7008] ? lock_release+0x8d0/0x8d0 [ 545.128252][ T7008] netlink_rcv_skb+0x15a/0x430 [ 545.132988][ T7008] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 545.139894][ T7008] ? netlink_ack+0xa10/0xa10 [ 545.144466][ T7008] genl_rcv+0x24/0x40 [ 545.148520][ T7008] netlink_unicast+0x533/0x7d0 [ 545.153267][ T7008] ? netlink_attachskb+0x810/0x810 [ 545.158357][ T7008] ? _copy_from_iter_full+0x247/0x890 [ 545.163700][ T7008] ? __phys_addr+0x9a/0x110 [ 545.168177][ T7008] ? __phys_addr_symbol+0x2c/0x70 [ 545.173185][ T7008] ? __check_object_size+0x171/0x3e4 [ 545.178442][ T7008] netlink_sendmsg+0x856/0xd90 [ 545.183176][ T7008] ? netlink_unicast+0x7d0/0x7d0 [ 545.188085][ T7008] ? netlink_unicast+0x7d0/0x7d0 [ 545.192994][ T7008] sock_sendmsg+0xcf/0x120 [ 545.197398][ T7008] ____sys_sendmsg+0x6e8/0x810 [ 545.202142][ T7008] ? kernel_sendmsg+0x50/0x50 [ 545.206788][ T7008] ? do_recvmmsg+0x6d0/0x6d0 [ 545.211351][ T7008] ? find_held_lock+0x2d/0x110 [ 545.216088][ T7008] ? lockdep_hardirqs_on_prepare+0x590/0x590 [ 545.222037][ T7008] ? lock_downgrade+0x820/0x820 [ 545.226857][ T7008] ___sys_sendmsg+0xf3/0x170 [ 545.231421][ T7008] ? sendmsg_copy_msghdr+0x160/0x160 [ 545.236678][ T7008] ? debug_object_active_state+0x260/0x350 [ 545.242455][ T7008] ? lock_downgrade+0x820/0x820 [ 545.247280][ T7008] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 545.253055][ T7008] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 545.259003][ T7008] ? trace_hardirqs_on+0x5f/0x220 [ 545.263998][ T7008] ? lockdep_hardirqs_on+0x6a/0xe0 [ 545.269080][ T7008] ? _raw_spin_unlock_irqrestore+0x9b/0xe0 [ 545.274855][ T7008] ? debug_object_active_state+0x260/0x350 [ 545.280631][ T7008] ? check_preemption_disabled+0x50/0x130 [ 545.286326][ T7008] ? __fget_light+0x215/0x280 [ 545.290975][ T7008] __sys_sendmsg+0xe5/0x1b0 [ 545.295449][ T7008] ? __sys_sendmsg_sock+0xb0/0xb0 [ 545.300442][ T7008] ? lock_is_held_type+0xb0/0xe0 [ 545.305350][ T7008] ? do_syscall_64+0x1c/0xe0 [ 545.309909][ T7008] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 545.315858][ T7008] do_syscall_64+0x60/0xe0 [ 545.320244][ T7008] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 545.326120][ T7008] RIP: 0033:0x445299 [ 545.329980][ T7008] Code: Bad RIP value. [ 545.334012][ T7008] RSP: 002b:00007fffb0a41fb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 545.342391][ T7008] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445299 [ 545.350337][ T7008] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003 [ 545.358287][ T7008] RBP: 0000000000084de7 R08: 0000000000000000 R09: 00000000004002e0 [ 545.366230][ T7008] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402430 [ 545.374172][ T7008] R13: 00000000004024c0 R14: 0000000000000000 R15: 0000000000000000 [ 545.383524][ T7008] Kernel Offset: disabled [ 545.387834][ T7008] Rebooting in 86400 seconds..