Not allocated shadow for addr ffff8801d40dc000 (page ffffea000af85280) Attempted to access 270 bytes ------------[ cut here ]------------ kernel BUG at mm/kmsan/kmsan.c:1326! invalid opcode: 0000 [#1] SMP PTI Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 4529 Comm: sshd Not tainted 4.16.0+ #87 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kmsan_get_shadow_address+0x1ce/0x1f0 mm/kmsan/kmsan.c:1325 RSP: 0018:ffff8801bd7fe648 EFLAGS: 00010082 RAX: 000000000000001d RBX: 0000000000000740 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000000 RBP: ffff8801bd7fe660 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801d40dc000 R13: 000000000000010e R14: 0000000000000001 R15: 000000000000010e FS: 00007fe4b73567c0(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe4b67a9f70 CR3: 00000001c0a0a000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kmsan_internal_memset_shadow mm/kmsan/kmsan.c:171 [inline] kmsan_internal_unpoison_shadow+0x5c/0xe0 mm/kmsan/kmsan.c:208 kmsan_unpoison_shadow+0x66/0xb0 mm/kmsan/kmsan.c:222 virtqueue_get_buf_ctx+0x742/0xa20 drivers/virtio/virtio_ring.c:760 virtqueue_get_buf+0x72/0x90 drivers/virtio/virtio_ring.c:767 free_old_xmit_skbs drivers/net/virtio_net.c:1230 [inline] start_xmit+0x293/0x29a0 drivers/net/virtio_net.c:1388 __netdev_start_xmit include/linux/netdevice.h:4066 [inline] netdev_start_xmit include/linux/netdevice.h:4075 [inline] xmit_one net/core/dev.c:3026 [inline] dev_hard_start_xmit+0x5f1/0xc70 net/core/dev.c:3042 sch_direct_xmit+0x540/0x8f0 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:399 [inline] __qdisc_run+0x1785/0x3730 net/sched/sch_generic.c:410 __dev_xmit_skb net/core/dev.c:3217 [inline] __dev_queue_xmit+0x1d50/0x3520 net/core/dev.c:3525 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3590 neigh_hh_output include/net/neighbour.h:472 [inline] neigh_output include/net/neighbour.h:480 [inline] ip_finish_output2+0x12a1/0x1470 net/ipv4/ip_output.c:229 ip_finish_output+0xcb2/0xff0 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip_output+0x505/0x5d0 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:443 [inline] ip_local_out net/ipv4/ip_output.c:124 [inline] ip_queue_xmit+0x1a1e/0x1d10 net/ipv4/ip_output.c:504 tcp_transmit_skb+0x3d81/0x53d0 net/ipv4/tcp_output.c:1176 tcp_write_xmit+0x3911/0xb920 net/ipv4/tcp_output.c:2394 __tcp_push_pending_frames+0x124/0x3f0 net/ipv4/tcp_output.c:2567 tcp_push+0x8b6/0x9c0 net/ipv4/tcp.c:726 tcp_sendmsg_locked+0x5450/0x6cf0 net/ipv4/tcp.c:1426 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1463 inet_sendmsg+0x48d/0x740 net/ipv4/af_inet.c:764 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg net/socket.c:640 [inline] sock_write_iter+0x3b9/0x470 net/socket.c:909 call_write_iter include/linux/fs.h:1782 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x7fb/0x9f0 fs/read_write.c:482 vfs_write+0x463/0x8d0 fs/read_write.c:544 SYSC_write+0x172/0x360 fs/read_write.c:589 SyS_write+0x55/0x80 fs/read_write.c:581 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x7fe4b56f1370 RSP: 002b:00007ffee8389268 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000138 RCX: 00007fe4b56f1370 RDX: 0000000000000138 RSI: 000055ac2f0ae440 RDI: 0000000000000003 RBP: 000055ac2f0ae440 R08: 000055ac2f0aa8f0 R09: 000055ac2e3f8820 R10: 000000001c5d8954 R11: 0000000000000246 R12: 00007ffee83892cc R13: 0000000000000001 R14: 000055ac2f0b44a0 R15: 0000000000000000 Code: 75 29 48 c7 c7 fd 92 7d 8a 31 c0 e8 4d 68 86 ff 80 3c 25 e8 03 2c 8b 00 75 11 48 c7 c7 2d 93 7d 8a 31 c0 4c 89 fe e8 32 68 86 ff <0f> 0b eb fe 48 3d ff ff ff 1f 0f 87 a2 fe ff ff 48 8b 1c 25 10 RIP: kmsan_get_shadow_address+0x1ce/0x1f0 mm/kmsan/kmsan.c:1325 RSP: ffff8801bd7fe648 ---[ end trace 66d96ac224411eea ]---