syzbot


KMSAN: uninit-value in ip_route_output_key_hash_rcu (2)

Status: closed as invalid on 2018/06/27 15:18
Subsystems: net
[Documentation on labels]
First crash: 2143d, last: 2143d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu (4) net 2 1152d 1170d 0/26 auto-closed as invalid on 2021/06/01 04:17
upstream KMSAN: kernel-infoleak in copyout (2) net C 6723 295d 1463d 22/26 fixed on 2023/06/08 14:41
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu (5) net 1 850d 850d 0/26 auto-closed as invalid on 2022/02/28 08:56
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) net C 138977 398d 751d 22/26 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu (3) net 2 1469d 1494d 0/26 auto-closed as invalid on 2020/06/19 03:56
upstream KMSAN: uninit-value in IP6_ECN_decapsulate net C 981 100d 2016d 25/26 fixed on 2023/12/21 03:45
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu net 179 2151d 2182d 5/26 fixed on 2018/05/08 18:30

Sample crash report:
 rt_dst_alloc net/ipv4/route.c:1556 [inline]
 __mkroute_output net/ipv4/route.c:2246 [inline]
 ip_route_output_key_hash_rcu+0x22ad/0x3ab0 net/ipv4/route.c:2473
 ip_route_output_key_hash net/ipv4/route.c:2302 [inline]
 __ip_route_output_key include/net/route.h:124 [inline]
 ip_route_output_flow+0x1d4/0x3b0 net/ipv4/route.c:2557
 udp_sendmsg+0x24ab/0x33a0 net/ipv4/udp.c:1008
 udpv6_sendmsg+0x1291/0x3f40 net/ipv6/udp.c:1175
==================================================================
BUG: KMSAN: uninit-value in ip_route_output_key_hash_rcu+0x1f4/0x3ab0 net/ipv4/route.c:2319
 inet_sendmsg+0x48d/0x740 net/ipv4/af_inet.c:798
 sock_sendmsg_nosec net/socket.c:629 [inline]
 sock_sendmsg net/socket.c:639 [inline]
 ___sys_sendmsg+0xec0/0x1310 net/socket.c:2117
 __sys_sendmmsg+0x490/0x850 net/socket.c:2212
 __do_sys_sendmmsg net/socket.c:2241 [inline]
 __se_sys_sendmmsg net/socket.c:2238 [inline]
 __x64_sys_sendmmsg+0x11c/0x170 net/socket.c:2238
 do_syscall_64+0x154/0x220 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x455a09
RSP: 002b:00007f1afa9c2c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f1afa9c36d4 RCX: 0000000000455a09
RDX: 0000000000000002 RSI: 0000000020007e00 RDI: 0000000000000014
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000015
R13: 000000000000057a R14: 00000000006fc410 R15: 0000000000000000
CPU: 0 PID: 27819 Comm: syz-executor3 Not tainted 4.17.0-rc5+ #95
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+0x185/0x1d0 lib/dump_stack.c:113
 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1084
 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:683
 ip_route_output_key_hash_rcu+0x1f4/0x3ab0 net/ipv4/route.c:2319
 ip_route_output_key_hash net/ipv4/route.c:2302 [inline]
 __ip_route_output_key include/net/route.h:124 [inline]
 ip_route_output_flow+0x1d4/0x3b0 net/ipv4/route.c:2557
 ip_route_output_key include/net/route.h:134 [inline]
 ip_tunnel_xmit+0x110a/0x37c0 net/ipv4/ip_tunnel.c:717
 __gre_xmit net/ipv4/ip_gre.c:449 [inline]
 ipgre_xmit+0xdb7/0xe90 net/ipv4/ip_gre.c:689
 __netdev_start_xmit include/linux/netdevice.h:4087 [inline]
 netdev_start_xmit include/linux/netdevice.h:4096 [inline]
 xmit_one net/core/dev.c:3053 [inline]
 dev_hard_start_xmit+0x5f1/0xc70 net/core/dev.c:3069
 __dev_queue_xmit+0x27ee/0x3520 net/core/dev.c:3584
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3617
 packet_snd net/packet/af_packet.c:2951 [inline]
 packet_sendmsg+0x7cc3/0x8ac0 net/packet/af_packet.c:2976
 sock_sendmsg_nosec net/socket.c:629 [inline]
 sock_sendmsg net/socket.c:639 [inline]
 ___sys_sendmsg+0xec0/0x1310 net/socket.c:2117
 __sys_sendmmsg+0x490/0x850 net/socket.c:2212
 __do_sys_sendmmsg net/socket.c:2241 [inline]
 __se_sys_sendmmsg net/socket.c:2238 [inline]
 __x64_sys_sendmmsg+0x11c/0x170 net/socket.c:2238
 do_syscall_64+0x154/0x220 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x455a09
RSP: 002b:00007f26444eec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f26444ef6d4 RCX: 0000000000455a09
RDX: 0492492492492510 RSI: 0000000020871fc8 RDI: 0000000000000014
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000057c R14: 00000000006fc440 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline]
 kmsan_save_stack mm/kmsan/kmsan.c:294 [inline]
 kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:685
 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:528
 ip_tunnel_init_flow include/net/ip_tunnels.h:268 [inline]
 ip_tunnel_xmit+0xa64/0x37c0 net/ipv4/ip_tunnel.c:706
 __gre_xmit net/ipv4/ip_gre.c:449 [inline]
 ipgre_xmit+0xdb7/0xe90 net/ipv4/ip_gre.c:689
 __netdev_start_xmit include/linux/netdevice.h:4087 [inline]
 netdev_start_xmit include/linux/netdevice.h:4096 [inline]
 xmit_one net/core/dev.c:3053 [inline]
 dev_hard_start_xmit+0x5f1/0xc70 net/core/dev.c:3069
 __dev_queue_xmit+0x27ee/0x3520 net/core/dev.c:3584
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3617
 packet_snd net/packet/af_packet.c:2951 [inline]
 packet_sendmsg+0x7cc3/0x8ac0 net/packet/af_packet.c:2976
 sock_sendmsg_nosec net/socket.c:629 [inline]
 sock_sendmsg net/socket.c:639 [inline]
 ___sys_sendmsg+0xec0/0x1310 net/socket.c:2117
 __sys_sendmmsg+0x490/0x850 net/socket.c:2212
 __do_sys_sendmmsg net/socket.c:2241 [inline]
 __se_sys_sendmmsg net/socket.c:2238 [inline]
 __x64_sys_sendmmsg+0x11c/0x170 net/socket.c:2238
 do_syscall_64+0x154/0x220 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline]
 kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:189
 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:315
 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan.c:322
 slab_post_alloc_hook mm/slab.h:446 [inline]
 slab_alloc_node mm/slub.c:2753 [inline]
 __kmalloc_node_track_caller+0xb32/0x11b0 mm/slub.c:4395
 __kmalloc_reserve net/core/skbuff.c:138 [inline]
 __alloc_skb+0x2cf/0x9f0 net/core/skbuff.c:206
 alloc_skb include/linux/skbuff.h:988 [inline]
 alloc_skb_with_frags+0x1e6/0xb80 net/core/skbuff.c:5254
 sock_alloc_send_pskb+0xb56/0x1190 net/core/sock.c:2088
 packet_alloc_skb net/packet/af_packet.c:2810 [inline]
 packet_snd net/packet/af_packet.c:2901 [inline]
 packet_sendmsg+0x648d/0x8ac0 net/packet/af_packet.c:2976
 sock_sendmsg_nosec net/socket.c:629 [inline]
 sock_sendmsg net/socket.c:639 [inline]
 ___sys_sendmsg+0xec0/0x1310 net/socket.c:2117
 __sys_sendmmsg+0x490/0x850 net/socket.c:2212
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
 __do_sys_sendmmsg net/socket.c:2241 [inline]
 __se_sys_sendmmsg net/socket.c:2238 [inline]
 __x64_sys_sendmmsg+0x11c/0x170 net/socket.c:2238
 do_syscall_64+0x154/0x220 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/16 19:18 https://github.com/google/kmsan.git master 9822946c7fee 75b2448a .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.