syzbot


KMSAN: uninit-value in vti6_tnl_xmit

Status: fixed on 2019/01/15 20:25
Subsystems: net
[Documentation on labels]
Fix commit: cb9f1b783850 ip: validate header length on virtual device xmit
First crash: 1920d, last: 1871d

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready
IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready
8021q: adding VLAN 0 to HW filter on device batadv0
==================================================================
BUG: KMSAN: uninit-value in vti6_tnl_xmit+0x4cb/0x2360 net/ipv6/ip6_vti.c:534
CPU: 0 PID: 11102 Comm: syz-executor0 Not tainted 4.20.0-rc7+ #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x173/0x1d0 lib/dump_stack.c:113
 kmsan_report+0x12e/0x2a0 mm/kmsan/kmsan.c:613
 __msan_warning+0x82/0xf0 mm/kmsan/kmsan_instr.c:295
 vti6_tnl_xmit+0x4cb/0x2360 net/ipv6/ip6_vti.c:534
 __netdev_start_xmit include/linux/netdevice.h:4356 [inline]
 netdev_start_xmit include/linux/netdevice.h:4365 [inline]
 xmit_one net/core/dev.c:3257 [inline]
 dev_hard_start_xmit+0x607/0xc40 net/core/dev.c:3273
 __dev_queue_xmit+0x2e42/0x3bc0 net/core/dev.c:3843
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3876
 packet_snd net/packet/af_packet.c:2928 [inline]
 packet_sendmsg+0x8306/0x8f30 net/packet/af_packet.c:2953
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg net/socket.c:631 [inline]
 sock_write_iter+0x3f4/0x4d0 net/socket.c:900
 call_write_iter include/linux/fs.h:1857 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x888/0xb70 fs/read_write.c:487
 vfs_write+0x478/0x8d0 fs/read_write.c:549
 ksys_write fs/read_write.c:598 [inline]
 __do_sys_write fs/read_write.c:610 [inline]
 __se_sys_write+0x17a/0x370 fs/read_write.c:607
 __x64_sys_write+0x4a/0x70 fs/read_write.c:607
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x457ec9
Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc9dbe8f18 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000017ff914
R13: 00000000004c3a3c R14: 00000000004dbbc0 R15: 00000000ffffffff

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:204 [inline]
 kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:158
 kmsan_kmalloc+0xa6/0x130 mm/kmsan/kmsan_hooks.c:176
 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:185
 slab_post_alloc_hook mm/slab.h:446 [inline]
 slab_alloc_node mm/slub.c:2759 [inline]
 __kmalloc_node_track_caller+0xe18/0x1030 mm/slub.c:4383
 __kmalloc_reserve net/core/skbuff.c:137 [inline]
 __alloc_skb+0x309/0xa20 net/core/skbuff.c:205
 alloc_skb include/linux/skbuff.h:998 [inline]
 alloc_skb_with_frags+0x1c7/0xac0 net/core/skbuff.c:5220
 sock_alloc_send_pskb+0xafd/0x10e0 net/core/sock.c:2083
 packet_alloc_skb net/packet/af_packet.c:2781 [inline]
 packet_snd net/packet/af_packet.c:2872 [inline]
 packet_sendmsg+0x661a/0x8f30 net/packet/af_packet.c:2953
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg net/socket.c:631 [inline]
 sock_write_iter+0x3f4/0x4d0 net/socket.c:900
 call_write_iter include/linux/fs.h:1857 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x888/0xb70 fs/read_write.c:487
 vfs_write+0x478/0x8d0 fs/read_write.c:549
 ksys_write fs/read_write.c:598 [inline]
 __do_sys_write fs/read_write.c:610 [inline]
 __se_sys_write+0x17a/0x370 fs/read_write.c:607
 __x64_sys_write+0x4a/0x70 fs/read_write.c:607
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
==================================================================

Crashes (60):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/02 20:02 https://github.com/google/kmsan.git master 8ba10281f9e5 f0491811 .config console log report syz ci-upstream-kmsan-gce
2018/12/30 21:44 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config console log report syz ci-upstream-kmsan-gce
2018/12/26 15:14 https://github.com/google/kmsan.git master 79fc24ff6184 8a41a0ad .config console log report syz ci-upstream-kmsan-gce
2018/12/19 02:06 https://github.com/google/kmsan.git master 49d30e29c6d8 4edaba93 .config console log report syz ci-upstream-kmsan-gce
2018/12/17 19:32 https://github.com/google/kmsan.git master 0a602458c72c def91db3 .config console log report syz ci-upstream-kmsan-gce
2019/01/10 23:18 https://github.com/google/kmsan.git master 9945cd9f64dc db9b6579 .config console log report ci-upstream-kmsan-gce
2019/01/09 08:46 https://github.com/google/kmsan.git master 48128c3ca084 45c0c1b1 .config console log report ci-upstream-kmsan-gce
2019/01/08 09:02 https://github.com/google/kmsan.git master 48128c3ca084 37dd2683 .config console log report ci-upstream-kmsan-gce
2019/01/08 05:37 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config console log report ci-upstream-kmsan-gce
2019/01/07 09:43 https://github.com/google/kmsan.git master 11587f6ee534 ee332608 .config console log report ci-upstream-kmsan-gce
2019/01/06 07:57 https://github.com/google/kmsan.git master 11587f6ee534 53be0a37 .config console log report ci-upstream-kmsan-gce
2019/01/02 21:37 https://github.com/google/kmsan.git master 8ba10281f9e5 f0491811 .config console log report ci-upstream-kmsan-gce
2019/01/02 13:20 https://github.com/google/kmsan.git master 8ba10281f9e5 f0491811 .config console log report ci-upstream-kmsan-gce
2018/12/31 18:58 https://github.com/google/kmsan.git master 8ba10281f9e5 2b42fdc8 .config console log report ci-upstream-kmsan-gce
2018/12/31 14:46 https://github.com/google/kmsan.git master 8ba10281f9e5 2b42fdc8 .config console log report ci-upstream-kmsan-gce
2018/12/30 20:36 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config console log report ci-upstream-kmsan-gce
2018/12/30 19:08 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config console log report ci-upstream-kmsan-gce
2018/12/29 02:57 https://github.com/google/kmsan.git master 79fc24ff6184 e33ad0f1 .config console log report ci-upstream-kmsan-gce
2018/12/28 12:54 https://github.com/google/kmsan.git master 79fc24ff6184 fc6ae81a .config console log report ci-upstream-kmsan-gce
2018/12/27 01:32 https://github.com/google/kmsan.git master 79fc24ff6184 e747ec98 .config console log report ci-upstream-kmsan-gce
2018/12/25 20:18 https://github.com/google/kmsan.git master 79fc24ff6184 8a41a0ad .config console log report ci-upstream-kmsan-gce
2018/12/22 04:47 https://github.com/google/kmsan.git master 75b3ad224f19 603b5124 .config console log report ci-upstream-kmsan-gce
2018/12/22 04:39 https://github.com/google/kmsan.git master 75b3ad224f19 603b5124 .config console log report ci-upstream-kmsan-gce
2018/12/20 00:19 https://github.com/google/kmsan.git master 49d30e29c6d8 02e69052 .config console log report ci-upstream-kmsan-gce
2018/12/20 00:19 https://github.com/google/kmsan.git master 49d30e29c6d8 02e69052 .config console log report ci-upstream-kmsan-gce
2018/12/18 22:41 https://github.com/google/kmsan.git master 49d30e29c6d8 4edaba93 .config console log report ci-upstream-kmsan-gce
2018/12/18 22:40 https://github.com/google/kmsan.git master 49d30e29c6d8 4edaba93 .config console log report ci-upstream-kmsan-gce
2018/12/16 05:23 https://github.com/google/kmsan.git master 0a602458c72c def91db3 .config console log report ci-upstream-kmsan-gce
2018/12/14 08:03 https://github.com/google/kmsan.git master 0a602458c72c fe7127be .config console log report ci-upstream-kmsan-gce
2018/12/13 01:34 https://github.com/google/kmsan.git master 42db043be545 02613a41 .config console log report ci-upstream-kmsan-gce
2018/12/12 15:30 https://github.com/google/kmsan.git master 42db043be545 c3b10a5d .config console log report ci-upstream-kmsan-gce
2018/12/12 11:19 https://github.com/google/kmsan.git master 42db043be545 c3b10a5d .config console log report ci-upstream-kmsan-gce
2018/12/11 18:07 https://github.com/google/kmsan.git master 3f06bda61398 7795ae03 .config console log report ci-upstream-kmsan-gce
2018/12/11 02:58 https://github.com/google/kmsan.git master 3f06bda61398 4093e33b .config console log report ci-upstream-kmsan-gce
2018/12/11 00:33 https://github.com/google/kmsan.git master 3f06bda61398 4093e33b .config console log report ci-upstream-kmsan-gce
2018/12/11 00:31 https://github.com/google/kmsan.git master 3f06bda61398 4093e33b .config console log report ci-upstream-kmsan-gce
2018/12/10 15:05 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
2018/12/10 15:03 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
2018/12/09 03:21 https://github.com/google/kmsan.git master 3f06bda61398 c7918378 .config console log report ci-upstream-kmsan-gce
2018/12/08 13:04 https://github.com/google/kmsan.git master 3f06bda61398 60562a1d .config console log report ci-upstream-kmsan-gce
2018/12/08 12:52 https://github.com/google/kmsan.git master 3f06bda61398 60562a1d .config console log report ci-upstream-kmsan-gce
2018/12/07 20:13 https://github.com/google/kmsan.git master b1415a86bc68 1eb6a7e4 .config console log report ci-upstream-kmsan-gce
2018/12/07 13:18 https://github.com/google/kmsan.git master b1415a86bc68 1eb6a7e4 .config console log report ci-upstream-kmsan-gce
2018/12/07 13:16 https://github.com/google/kmsan.git master b1415a86bc68 1eb6a7e4 .config console log report ci-upstream-kmsan-gce
2018/12/05 13:49 https://github.com/google/kmsan.git master 61312858e7d8 ac6c0578 .config console log report ci-upstream-kmsan-gce
2018/12/05 13:49 https://github.com/google/kmsan.git master 61312858e7d8 ac6c0578 .config console log report ci-upstream-kmsan-gce
2018/12/05 13:46 https://github.com/google/kmsan.git master 61312858e7d8 ac6c0578 .config console log report ci-upstream-kmsan-gce
2018/12/05 01:53 https://github.com/google/kmsan.git master 00f99f811392 f162ad97 .config console log report ci-upstream-kmsan-gce
2018/12/05 01:30 https://github.com/google/kmsan.git master 00f99f811392 f162ad97 .config console log report ci-upstream-kmsan-gce
2018/12/04 13:22 https://github.com/google/kmsan.git master 00f99f811392 6ad0ae61 .config console log report ci-upstream-kmsan-gce
2018/12/04 13:20 https://github.com/google/kmsan.git master 00f99f811392 6ad0ae61 .config console log report ci-upstream-kmsan-gce
2018/12/04 01:04 https://github.com/google/kmsan.git master 8f22beb7da7d 03f94a45 .config console log report ci-upstream-kmsan-gce
2018/12/01 00:10 https://github.com/google/kmsan.git master 3a68698849b6 ade12e91 .config console log report ci-upstream-kmsan-gce
2018/11/30 15:53 https://github.com/google/kmsan.git master c1c8fce47960 ade12e91 .config console log report ci-upstream-kmsan-gce
2018/11/27 12:02 https://github.com/google/kmsan.git master fffec98ae2a6 ac912200 .config console log report ci-upstream-kmsan-gce
2018/11/27 06:13 https://github.com/google/kmsan.git master fffec98ae2a6 ac912200 .config console log report ci-upstream-kmsan-gce
2018/11/24 12:32 https://github.com/google/kmsan.git master fffec98ae2a6 ecc7c870 .config console log report ci-upstream-kmsan-gce
2018/11/22 22:31 https://github.com/google/kmsan.git master 50031178f793 87815d9d .config console log report ci-upstream-kmsan-gce
2018/11/22 14:26 https://github.com/google/kmsan.git master 3ededcaa1606 2ee77802 .config console log report ci-upstream-kmsan-gce
2018/11/22 13:21 https://github.com/google/kmsan.git master 3ededcaa1606 2ee77802 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.