Warning: Permanently added '10.128.0.233' (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 syzkaller login: [ 535.329073][ T6859] ================================================================== [ 535.337389][ T6859] BUG: KASAN: use-after-free in strnlen+0x64/0x70 [ 535.343798][ T6859] Read of size 1 at addr ffff88809d928018 by task syz-executor676/6859 [ 535.352004][ T6859] [ 535.354320][ T6859] CPU: 0 PID: 6859 Comm: syz-executor676 Not tainted 5.8.0-rc2-syzkaller #0 [ 535.362962][ T6859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 535.373023][ T6859] Call Trace: [ 535.376317][ T6859] dump_stack+0x18f/0x20d [ 535.380641][ T6859] ? strnlen+0x64/0x70 [ 535.384700][ T6859] ? strnlen+0x64/0x70 [ 535.388767][ T6859] print_address_description.constprop.0.cold+0xae/0x436 [ 535.395766][ T6859] ? lock_acquire+0x1f1/0xad0 [ 535.400422][ T6859] ? vprintk_func+0x97/0x1a6 [ 535.404991][ T6859] ? strnlen+0x64/0x70 [ 535.409045][ T6859] kasan_report.cold+0x1f/0x37 [ 535.413801][ T6859] ? strnlen+0x64/0x70 [ 535.417849][ T6859] strnlen+0x64/0x70 [ 535.421812][ T6859] netdev_name_node_lookup_rcu+0x22/0x150 [ 535.427515][ T6859] dev_get_by_name+0x7b/0x1e0 [ 535.432177][ T6859] wg_get_device_start+0x2e4/0x3f0 [ 535.437271][ T6859] ? wg_set_device+0x1520/0x1520 [ 535.442219][ T6859] genl_start+0x342/0x6e0 [ 535.446762][ T6859] __netlink_dump_start+0x585/0x900 [ 535.451944][ T6859] ? genl_rcv_msg+0x9e0/0x9e0 [ 535.456601][ T6859] ? wg_get_device_start+0x3f0/0x3f0 [ 535.461862][ T6859] genl_family_rcv_msg_dumpit+0x2ac/0x310 [ 535.467559][ T6859] ? genl_rcv+0x40/0x40 [ 535.471750][ T6859] ? mutex_lock_io_nested+0xf60/0xf60 [ 535.477112][ T6859] ? apparmor_capable+0x1d8/0x460 [ 535.482113][ T6859] ? genl_rcv_msg+0x9e0/0x9e0 [ 535.486767][ T6859] ? genl_unlock+0x20/0x20 [ 535.491159][ T6859] ? genl_parallel_done+0x170/0x170 [ 535.496339][ T6859] ? ns_capable+0xde/0x100 [ 535.500735][ T6859] genl_rcv_msg+0x797/0x9e0 [ 535.505221][ T6859] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 535.512133][ T6859] ? lock_acquire+0x1f1/0xad0 [ 535.516785][ T6859] ? genl_rcv+0x15/0x40 [ 535.520932][ T6859] ? lock_release+0x8d0/0x8d0 [ 535.525606][ T6859] netlink_rcv_skb+0x15a/0x430 [ 535.530347][ T6859] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 535.537268][ T6859] ? netlink_ack+0xa10/0xa10 [ 535.541882][ T6859] genl_rcv+0x24/0x40 [ 535.545855][ T6859] netlink_unicast+0x533/0x7d0 [ 535.550601][ T6859] ? netlink_attachskb+0x810/0x810 [ 535.555691][ T6859] ? _copy_from_iter_full+0x247/0x890 [ 535.561048][ T6859] ? __phys_addr+0x9a/0x110 [ 535.565544][ T6859] ? __phys_addr_symbol+0x2c/0x70 [ 535.570564][ T6859] ? __check_object_size+0x171/0x3e4 [ 535.575839][ T6859] netlink_sendmsg+0x856/0xd90 [ 535.580581][ T6859] ? netlink_unicast+0x7d0/0x7d0 [ 535.585515][ T6859] ? netlink_unicast+0x7d0/0x7d0 [ 535.590486][ T6859] sock_sendmsg+0xcf/0x120 [ 535.594897][ T6859] ____sys_sendmsg+0x6e8/0x810 [ 535.599694][ T6859] ? kernel_sendmsg+0x50/0x50 [ 535.604365][ T6859] ? do_recvmmsg+0x6d0/0x6d0 [ 535.608930][ T6859] ? find_held_lock+0x2d/0x110 [ 535.613691][ T6859] ? lockdep_hardirqs_on_prepare+0x590/0x590 [ 535.619682][ T6859] ? lock_downgrade+0x820/0x820 [ 535.624528][ T6859] ___sys_sendmsg+0xf3/0x170 [ 535.629098][ T6859] ? sendmsg_copy_msghdr+0x160/0x160 [ 535.634375][ T6859] ? debug_object_active_state+0x260/0x350 [ 535.640177][ T6859] ? lock_downgrade+0x820/0x820 [ 535.645022][ T6859] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 535.650807][ T6859] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 535.656776][ T6859] ? _raw_spin_unlock_irqrestore+0x9b/0xe0 [ 535.662572][ T6859] ? debug_object_active_state+0x260/0x350 [ 535.668406][ T6859] ? trace_hardirqs_off+0x27/0x210 [ 535.673514][ T6859] ? __fget_light+0x215/0x280 [ 535.678196][ T6859] __sys_sendmsg+0xe5/0x1b0 [ 535.682680][ T6859] ? __sys_sendmsg_sock+0xb0/0xb0 [ 535.687705][ T6859] ? check_preemption_disabled+0x38/0x220 [ 535.693417][ T6859] ? do_syscall_64+0x1c/0xe0 [ 535.697986][ T6859] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 535.703946][ T6859] do_syscall_64+0x60/0xe0 [ 535.708343][ T6859] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 535.714224][ T6859] RIP: 0033:0x445299 [ 535.718088][ T6859] Code: Bad RIP value. [ 535.722142][ T6859] RSP: 002b:00007ffe416647b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 535.730527][ T6859] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445299 [ 535.738473][ T6859] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003 [ 535.746436][ T6859] RBP: 0000000000082b0c R08: 0000000000000000 R09: 00000000004002e0 [ 535.754383][ T6859] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402430 [ 535.762330][ T6859] R13: 00000000004024c0 R14: 0000000000000000 R15: 0000000000000000 [ 535.770301][ T6859] [ 535.772649][ T6859] Allocated by task 6860: [ 535.776988][ T6859] save_stack+0x1b/0x40 [ 535.781122][ T6859] __kasan_kmalloc.constprop.0+0xc2/0xd0 [ 535.786731][ T6859] __alloc_skb+0xae/0x550 [ 535.791044][ T6859] netlink_sendmsg+0x94f/0xd90 [ 535.795824][ T6859] sock_sendmsg+0xcf/0x120 [ 535.800218][ T6859] ____sys_sendmsg+0x6e8/0x810 [ 535.804956][ T6859] ___sys_sendmsg+0xf3/0x170 [ 535.809529][ T6859] __sys_sendmsg+0xe5/0x1b0 [ 535.814010][ T6859] do_syscall_64+0x60/0xe0 [ 535.818405][ T6859] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 535.824281][ T6859] [ 535.826585][ T6859] Freed by task 6860: [ 535.830545][ T6859] save_stack+0x1b/0x40 [ 535.834680][ T6859] __kasan_slab_free+0xf5/0x140 [ 535.839513][ T6859] kfree+0x103/0x2c0 [ 535.843400][ T6859] skb_release_data+0x6d9/0x910 [ 535.848229][ T6859] consume_skb+0xc2/0x160 [ 535.852534][ T6859] netlink_unicast+0x53b/0x7d0 [ 535.857271][ T6859] netlink_sendmsg+0x856/0xd90 [ 535.862011][ T6859] sock_sendmsg+0xcf/0x120 [ 535.866402][ T6859] ____sys_sendmsg+0x6e8/0x810 [ 535.871143][ T6859] ___sys_sendmsg+0xf3/0x170 [ 535.875723][ T6859] __sys_sendmsg+0xe5/0x1b0 [ 535.880201][ T6859] do_syscall_64+0x60/0xe0 [ 535.884596][ T6859] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 535.890456][ T6859] [ 535.892764][ T6859] The buggy address belongs to the object at ffff88809d928000 [ 535.892764][ T6859] which belongs to the cache kmalloc-512 of size 512 [ 535.906791][ T6859] The buggy address is located 24 bytes inside of [ 535.906791][ T6859] 512-byte region [ffff88809d928000, ffff88809d928200) [ 535.919960][ T6859] The buggy address belongs to the page: [ 535.925568][ T6859] page:ffffea0002764a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 [ 535.934680][ T6859] flags: 0xfffe0000000200(slab) [ 535.939523][ T6859] raw: 00fffe0000000200 ffffea000277a908 ffffea00027a05c8 ffff8880aa000a80 [ 535.948088][ T6859] raw: 0000000000000000 ffff88809d928000 0000000100000004 0000000000000000 [ 535.956642][ T6859] page dumped because: kasan: bad access detected [ 535.963029][ T6859] [ 535.965350][ T6859] Memory state around the buggy address: [ 535.970971][ T6859] ffff88809d927f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 535.979019][ T6859] ffff88809d927f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 535.987055][ T6859] >ffff88809d928000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 535.995087][ T6859] ^ [ 535.999912][ T6859] ffff88809d928080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 536.007955][ T6859] ffff88809d928100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 536.015993][ T6859] ================================================================== [ 536.024028][ T6859] Disabling lock debugging due to kernel taint executing program [ 536.031536][ T6859] Kernel panic - not syncing: panic_on_warn set ... [ 536.038135][ T6859] CPU: 0 PID: 6859 Comm: syz-executor676 Tainted: G B 5.8.0-rc2-syzkaller #0 [ 536.048186][ T6859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 536.058232][ T6859] Call Trace: [ 536.061522][ T6859] dump_stack+0x18f/0x20d [ 536.065851][ T6859] ? strnlen+0x30/0x70 [ 536.069915][ T6859] panic+0x2e3/0x75c [ 536.073813][ T6859] ? __warn_printk+0xf3/0xf3 [ 536.078402][ T6859] ? preempt_schedule_common+0x59/0xc0 [ 536.083857][ T6859] ? strnlen+0x64/0x70 [ 536.087920][ T6859] ? preempt_schedule_thunk+0x16/0x18 [ 536.093283][ T6859] ? trace_hardirqs_on+0x55/0x220 [ 536.098312][ T6859] ? strnlen+0x64/0x70 [ 536.102365][ T6859] ? strnlen+0x64/0x70 [ 536.106420][ T6859] end_report+0x4d/0x53 [ 536.110574][ T6859] kasan_report.cold+0xd/0x37 [ 536.115226][ T6859] ? strnlen+0x64/0x70 [ 536.119269][ T6859] strnlen+0x64/0x70 [ 536.123153][ T6859] netdev_name_node_lookup_rcu+0x22/0x150 [ 536.128845][ T6859] dev_get_by_name+0x7b/0x1e0 [ 536.133500][ T6859] wg_get_device_start+0x2e4/0x3f0 [ 536.138584][ T6859] ? wg_set_device+0x1520/0x1520 [ 536.143494][ T6859] genl_start+0x342/0x6e0 [ 536.147805][ T6859] __netlink_dump_start+0x585/0x900 [ 536.153011][ T6859] ? genl_rcv_msg+0x9e0/0x9e0 [ 536.157667][ T6859] ? wg_get_device_start+0x3f0/0x3f0 [ 536.162928][ T6859] genl_family_rcv_msg_dumpit+0x2ac/0x310 [ 536.168654][ T6859] ? genl_rcv+0x40/0x40 [ 536.172798][ T6859] ? mutex_lock_io_nested+0xf60/0xf60 [ 536.178162][ T6859] ? apparmor_capable+0x1d8/0x460 [ 536.183172][ T6859] ? genl_rcv_msg+0x9e0/0x9e0 [ 536.187820][ T6859] ? genl_unlock+0x20/0x20 [ 536.192217][ T6859] ? genl_parallel_done+0x170/0x170 [ 536.197402][ T6859] ? ns_capable+0xde/0x100 [ 536.201812][ T6859] genl_rcv_msg+0x797/0x9e0 [ 536.206321][ T6859] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 536.213232][ T6859] ? lock_acquire+0x1f1/0xad0 [ 536.217893][ T6859] ? genl_rcv+0x15/0x40 [ 536.222023][ T6859] ? lock_release+0x8d0/0x8d0 [ 536.226679][ T6859] netlink_rcv_skb+0x15a/0x430 [ 536.231435][ T6859] ? genl_family_rcv_msg_attrs_parse.isra.0+0x310/0x310 [ 536.238343][ T6859] ? netlink_ack+0xa10/0xa10 [ 536.242922][ T6859] genl_rcv+0x24/0x40 [ 536.246904][ T6859] netlink_unicast+0x533/0x7d0 [ 536.251656][ T6859] ? netlink_attachskb+0x810/0x810 [ 536.256747][ T6859] ? _copy_from_iter_full+0x247/0x890 [ 536.262104][ T6859] ? __phys_addr+0x9a/0x110 [ 536.266583][ T6859] ? __phys_addr_symbol+0x2c/0x70 [ 536.271594][ T6859] ? __check_object_size+0x171/0x3e4 [ 536.276853][ T6859] netlink_sendmsg+0x856/0xd90 [ 536.281606][ T6859] ? netlink_unicast+0x7d0/0x7d0 [ 536.286520][ T6859] ? netlink_unicast+0x7d0/0x7d0 [ 536.291447][ T6859] sock_sendmsg+0xcf/0x120 [ 536.295840][ T6859] ____sys_sendmsg+0x6e8/0x810 [ 536.300579][ T6859] ? kernel_sendmsg+0x50/0x50 [ 536.305228][ T6859] ? do_recvmmsg+0x6d0/0x6d0 [ 536.309790][ T6859] ? find_held_lock+0x2d/0x110 [ 536.314562][ T6859] ? lockdep_hardirqs_on_prepare+0x590/0x590 [ 536.320529][ T6859] ? lock_downgrade+0x820/0x820 [ 536.325357][ T6859] ___sys_sendmsg+0xf3/0x170 [ 536.329932][ T6859] ? sendmsg_copy_msghdr+0x160/0x160 [ 536.335225][ T6859] ? debug_object_active_state+0x260/0x350 [ 536.341007][ T6859] ? lock_downgrade+0x820/0x820 [ 536.345834][ T6859] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 536.351611][ T6859] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 536.357576][ T6859] ? _raw_spin_unlock_irqrestore+0x9b/0xe0 [ 536.363368][ T6859] ? debug_object_active_state+0x260/0x350 [ 536.369162][ T6859] ? trace_hardirqs_off+0x27/0x210 [ 536.374248][ T6859] ? __fget_light+0x215/0x280 [ 536.378902][ T6859] __sys_sendmsg+0xe5/0x1b0 [ 536.383383][ T6859] ? __sys_sendmsg_sock+0xb0/0xb0 [ 536.388392][ T6859] ? check_preemption_disabled+0x38/0x220 [ 536.394100][ T6859] ? do_syscall_64+0x1c/0xe0 [ 536.398683][ T6859] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 536.404650][ T6859] do_syscall_64+0x60/0xe0 [ 536.409075][ T6859] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 536.414940][ T6859] RIP: 0033:0x445299 [ 536.418815][ T6859] Code: Bad RIP value. [ 536.422853][ T6859] RSP: 002b:00007ffe416647b8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 536.431236][ T6859] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445299 [ 536.439193][ T6859] RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000003 [ 536.447137][ T6859] RBP: 0000000000082b0c R08: 0000000000000000 R09: 00000000004002e0 [ 536.455090][ T6859] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402430 [ 536.463039][ T6859] R13: 00000000004024c0 R14: 0000000000000000 R15: 0000000000000000 [ 536.472106][ T6859] Kernel Offset: disabled [ 536.476421][ T6859] Rebooting in 86400 seconds..