syzbot


KMSAN: uninit-value in _decode_session4

Status: upstream: reported C repro on 2018/04/29 16:32
Reported-by: syzbot+e7fec512bc2eb4ae0781@syzkaller.appspotmail.com
First crash: 1691d, last: 1429d
Patch testing requests:
Created Duration User Patch Repo Result
2022/12/09 13:31 15m retest repro https://github.com/google/kmsan.git master error
2022/08/31 03:27 8m retest repro https://github.com/google/kmsan.git master error
2021/03/29 16:41 31m alaaemadhossney.ae@gmail.com https://github.com/google/kmsan.git master OK

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
8021q: adding VLAN 0 to HW filter on device team0
==================================================================
BUG: KMSAN: uninit-value in _decode_session4+0x11d3/0x1ce0 net/ipv4/xfrm4_policy.c:126
CPU: 0 PID: 4502 Comm: syz-executor427 Not tainted 4.16.0+ #87
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x185/0x1d0 lib/dump_stack.c:53
 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067
 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:683
 _decode_session4+0x11d3/0x1ce0 net/ipv4/xfrm4_policy.c:126
 __xfrm_decode_session+0x151/0x200 net/xfrm/xfrm_policy.c:2368
 xfrm_decode_session include/net/xfrm.h:1206 [inline]
 vti6_tnl_xmit+0x49b/0x2070 net/ipv6/ip6_vti.c:546
 __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
 __dev_queue_xmit+0x27ee/0x3520 net/core/dev.c:3557
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3590
 packet_snd net/packet/af_packet.c:2944 [inline]
 packet_sendmsg+0x7c70/0x8a30 net/packet/af_packet.c:2969
 sock_sendmsg_nosec net/socket.c:630 [inline]
 sock_sendmsg net/socket.c:640 [inline]
 SYSC_sendto+0x6c3/0x7e0 net/socket.c:1747
 SyS_sendto+0x8a/0xb0 net/socket.c:1715
 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x3d/0xa2
RIP: 0033:0x4418f9
RSP: 002b:00007ffcea97afc8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004418f9
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00000000006cd018 R08: 0000000020000000 R09: 000000000000001c
R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004025f0
R13: 0000000000402680 R14: 0000000000000000 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline]
 kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:188
 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:314
 kmsan_slab_alloc+0x11/0x20 mm/kmsan/kmsan.c:321
 slab_post_alloc_hook mm/slab.h:445 [inline]
 slab_alloc_node mm/slub.c:2737 [inline]
 __kmalloc_node_track_caller+0xaed/0x11c0 mm/slub.c:4369
 __kmalloc_reserve net/core/skbuff.c:138 [inline]
 __alloc_skb+0x2cf/0x9f0 net/core/skbuff.c:206
 alloc_skb include/linux/skbuff.h:984 [inline]
 alloc_skb_with_frags+0x1d4/0xb20 net/core/skbuff.c:5234
 sock_alloc_send_pskb+0xb56/0x1190 net/core/sock.c:2085
 packet_alloc_skb net/packet/af_packet.c:2803 [inline]
 packet_snd net/packet/af_packet.c:2894 [inline]
 packet_sendmsg+0x6454/0x8a30 net/packet/af_packet.c:2969
 sock_sendmsg_nosec net/socket.c:630 [inline]
 sock_sendmsg net/socket.c:640 [inline]
 SYSC_sendto+0x6c3/0x7e0 net/socket.c:1747
 SyS_sendto+0x8a/0xb0 net/socket.c:1715
 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x3d/0xa2
==================================================================

Crashes (1244):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2018/04/24 23:51 https://github.com/google/kmsan.git master d2d741e5d189 37e76fe2 .config log report syz C
ci-upstream-kmsan-gce 2019/01/10 23:46 https://github.com/google/kmsan.git master 9945cd9f64dc db9b6579 .config log report
ci-upstream-kmsan-gce 2019/01/10 16:27 https://github.com/google/kmsan.git master 9945cd9f64dc db9b6579 .config log report
ci-upstream-kmsan-gce 2019/01/10 14:27 https://github.com/google/kmsan.git master 9945cd9f64dc db9b6579 .config log report
ci-upstream-kmsan-gce 2019/01/10 14:20 https://github.com/google/kmsan.git master 9945cd9f64dc db9b6579 .config log report
ci-upstream-kmsan-gce 2019/01/10 00:15 https://github.com/google/kmsan.git master a6846a32c96d 45c0c1b1 .config log report
ci-upstream-kmsan-gce 2019/01/09 17:45 https://github.com/google/kmsan.git master 48128c3ca084 45c0c1b1 .config log report
ci-upstream-kmsan-gce 2019/01/09 12:45 https://github.com/google/kmsan.git master 48128c3ca084 45c0c1b1 .config log report
ci-upstream-kmsan-gce 2019/01/09 11:35 https://github.com/google/kmsan.git master 48128c3ca084 45c0c1b1 .config log report
ci-upstream-kmsan-gce 2019/01/09 09:02 https://github.com/google/kmsan.git master 48128c3ca084 45c0c1b1 .config log report
ci-upstream-kmsan-gce 2019/01/09 04:07 https://github.com/google/kmsan.git master 48128c3ca084 010ed08b .config log report
ci-upstream-kmsan-gce 2019/01/09 02:06 https://github.com/google/kmsan.git master 48128c3ca084 010ed08b .config log report
ci-upstream-kmsan-gce 2019/01/09 00:50 https://github.com/google/kmsan.git master 48128c3ca084 010ed08b .config log report
ci-upstream-kmsan-gce 2019/01/08 23:05 https://github.com/google/kmsan.git master 48128c3ca084 010ed08b .config log report
ci-upstream-kmsan-gce 2019/01/08 21:37 https://github.com/google/kmsan.git master 48128c3ca084 010ed08b .config log report
ci-upstream-kmsan-gce 2019/01/08 21:28 https://github.com/google/kmsan.git master 48128c3ca084 010ed08b .config log report
ci-upstream-kmsan-gce 2019/01/08 18:20 https://github.com/google/kmsan.git master 48128c3ca084 37dd2683 .config log report
ci-upstream-kmsan-gce 2019/01/08 15:46 https://github.com/google/kmsan.git master 48128c3ca084 37dd2683 .config log report
ci-upstream-kmsan-gce 2019/01/08 09:05 https://github.com/google/kmsan.git master 48128c3ca084 37dd2683 .config log report
ci-upstream-kmsan-gce 2019/01/08 05:39 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config log report
ci-upstream-kmsan-gce 2019/01/07 20:20 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config log report
ci-upstream-kmsan-gce 2019/01/07 18:38 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config log report
ci-upstream-kmsan-gce 2019/01/07 17:12 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config log report
ci-upstream-kmsan-gce 2019/01/07 13:35 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config log report
ci-upstream-kmsan-gce 2019/01/07 12:31 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config log report
ci-upstream-kmsan-gce 2019/01/07 12:02 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config log report
ci-upstream-kmsan-gce 2019/01/07 04:40 https://github.com/google/kmsan.git master 11587f6ee534 ee332608 .config log report
ci-upstream-kmsan-gce 2019/01/07 03:34 https://github.com/google/kmsan.git master 11587f6ee534 ee332608 .config log report
ci-upstream-kmsan-gce 2019/01/06 20:11 https://github.com/google/kmsan.git master 11587f6ee534 94f8adb5 .config log report
ci-upstream-kmsan-gce 2019/01/06 14:50 https://github.com/google/kmsan.git master 11587f6ee534 94f8adb5 .config log report
ci-upstream-kmsan-gce 2019/01/06 13:36 https://github.com/google/kmsan.git master 11587f6ee534 94f8adb5 .config log report
ci-upstream-kmsan-gce 2019/01/06 12:08 https://github.com/google/kmsan.git master 11587f6ee534 94f8adb5 .config log report
ci-upstream-kmsan-gce 2019/01/05 11:38 https://github.com/google/kmsan.git master 11587f6ee534 53be0a37 .config log report
ci-upstream-kmsan-gce 2019/01/05 07:38 https://github.com/google/kmsan.git master 11587f6ee534 53be0a37 .config log report
ci-upstream-kmsan-gce 2019/01/05 07:04 https://github.com/google/kmsan.git master 11587f6ee534 53be0a37 .config log report
ci-upstream-kmsan-gce 2019/01/04 22:37 https://github.com/google/kmsan.git master 11587f6ee534 0127e3ba .config log report
ci-upstream-kmsan-gce 2019/01/04 19:45 https://github.com/google/kmsan.git master 11587f6ee534 0127e3ba .config log report
ci-upstream-kmsan-gce 2019/01/04 17:24 https://github.com/google/kmsan.git master 11587f6ee534 0127e3ba .config log report
ci-upstream-kmsan-gce 2019/01/04 09:37 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config log report
ci-upstream-kmsan-gce 2019/01/04 08:27 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config log report
ci-upstream-kmsan-gce 2019/01/04 06:16 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config log report
ci-upstream-kmsan-gce 2019/01/04 05:16 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config log report
ci-upstream-kmsan-gce 2019/01/04 02:10 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config log report
ci-upstream-kmsan-gce 2019/01/04 01:04 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config log report
ci-upstream-kmsan-gce 2018/04/23 19:26 https://github.com/google/kmsan.git master d2d741e5d189 0d8e591c .config log report
* Struck through repros no longer work on HEAD.