syzbot


KMSAN: uninit-value in ip_route_output_key_hash_rcu
Status: fixed on 2018/05/08 18:30
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: d0ea2b125005 ipv4: fix uninit-value in ip_route_output_key_hash_rcu()
First crash: 1505d, last: 1473d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu (4) 2 473d 492d 0/22 auto-closed as invalid on 2021/06/01 04:17
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu (2) 1 1465d 1465d 0/22 closed as invalid on 2018/06/27 15:18
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu (5) 1 171d 171d 0/22 auto-closed as invalid on 2022/02/28 08:56
upstream KMSAN: uninit-value in ip_route_output_key_hash_rcu (3) 2 791d 815d 0/22 auto-closed as invalid on 2020/06/19 03:56

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in __mkroute_output net/ipv4/route.c:2200 [inline]
BUG: KMSAN: uninit-value in ip_route_output_key_hash_rcu+0x3986/0x40c0 net/ipv4/route.c:2493
CPU: 0 PID: 6739 Comm: syz-executor2 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
 __mkroute_output net/ipv4/route.c:2200 [inline]
 ip_route_output_key_hash_rcu+0x3986/0x40c0 net/ipv4/route.c:2493
 ip_route_output_key_hash net/ipv4/route.c:2322 [inline]
 __ip_route_output_key include/net/route.h:126 [inline]
 ip_route_output_flow+0x1eb/0x3c0 net/ipv4/route.c:2577
 raw_sendmsg+0x196a/0x41f0 net/ipv4/raw.c:653
 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]
 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:0x455979
RSP: 002b:00007f80777d2c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f80777d36d4 RCX: 0000000000455979
RDX: 0000000000008e01 RSI: 0000000020000040 RDI: 0000000000000013
RBP: 000000000072bea0 R08: 0000000020000080 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000546 R14: 00000000006fbf30 R15: 0000000000000000

Local variable description: ----res.i.i@ip_route_output_flow
Variable was created at:
 ip_route_output_flow+0x75/0x3c0 net/ipv4/route.c:2576
 raw_sendmsg+0x196a/0x41f0 net/ipv4/raw.c:653
==================================================================

Crashes (179):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2018/05/08 18:24 https://github.com/google/kmsan.git master d2d741e5d189 b88872ba .config log report
ci-upstream-kmsan-gce 2018/05/08 14:36 https://github.com/google/kmsan.git master d2d741e5d189 045bbd4a .config log report
ci-upstream-kmsan-gce 2018/05/08 07:48 https://github.com/google/kmsan.git master d2d741e5d189 045bbd4a .config log report
ci-upstream-kmsan-gce 2018/05/08 06:03 https://github.com/google/kmsan.git master d2d741e5d189 045bbd4a .config log report
ci-upstream-kmsan-gce 2018/05/08 00:54 https://github.com/google/kmsan.git master d2d741e5d189 9e0846e8 .config log report
ci-upstream-kmsan-gce 2018/05/07 23:06 https://github.com/google/kmsan.git master d2d741e5d189 9e0846e8 .config log report
ci-upstream-kmsan-gce 2018/05/07 20:46 https://github.com/google/kmsan.git master d2d741e5d189 9e0846e8 .config log report
ci-upstream-kmsan-gce 2018/05/07 17:30 https://github.com/google/kmsan.git master d2d741e5d189 9e0846e8 .config log report
ci-upstream-kmsan-gce 2018/05/07 13:16 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config log report
ci-upstream-kmsan-gce 2018/05/07 07:53 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config log report
ci-upstream-kmsan-gce 2018/05/07 03:21 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config log report
ci-upstream-kmsan-gce 2018/05/07 01:14 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config log report
ci-upstream-kmsan-gce 2018/05/06 23:24 https://github.com/google/kmsan.git master d2d741e5d189 a211da1a .config log report
ci-upstream-kmsan-gce 2018/05/06 17:51 https://github.com/google/kmsan.git master d2d741e5d189 6c18ddb0 .config log report
ci-upstream-kmsan-gce 2018/05/06 12:27 https://github.com/google/kmsan.git master d2d741e5d189 6c18ddb0 .config log report
ci-upstream-kmsan-gce 2018/05/06 11:15 https://github.com/google/kmsan.git master d2d741e5d189 6c18ddb0 .config log report
ci-upstream-kmsan-gce 2018/05/06 06:06 https://github.com/google/kmsan.git master d2d741e5d189 78b251cb .config log report
ci-upstream-kmsan-gce 2018/05/06 00:43 https://github.com/google/kmsan.git master d2d741e5d189 78b251cb .config log report
ci-upstream-kmsan-gce 2018/05/05 23:19 https://github.com/google/kmsan.git master d2d741e5d189 78b251cb .config log report
ci-upstream-kmsan-gce 2018/05/05 18:07 https://github.com/google/kmsan.git master d2d741e5d189 6a0382b5 .config log report
ci-upstream-kmsan-gce 2018/05/05 16:02 https://github.com/google/kmsan.git master d2d741e5d189 6a0382b5 .config log report
ci-upstream-kmsan-gce 2018/05/05 14:06 https://github.com/google/kmsan.git master d2d741e5d189 6a0382b5 .config log report
ci-upstream-kmsan-gce 2018/05/05 09:32 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/05 03:24 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/04 22:37 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/04 18:44 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/04 12:06 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/04 09:23 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/04 05:15 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/04 00:18 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/03 21:44 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/03 20:22 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/03 10:07 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/03 07:50 https://github.com/google/kmsan.git master d2d741e5d189 9ce14f4b .config log report
ci-upstream-kmsan-gce 2018/05/02 18:13 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/02 15:12 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/02 05:29 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/02 02:52 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/02 01:34 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/01 16:50 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/01 15:49 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/01 13:52 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/01 05:39 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/05/01 04:29 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/04/30 23:46 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/04/30 20:37 https://github.com/google/kmsan.git master d2d741e5d189 d5b114b4 .config log report
ci-upstream-kmsan-gce 2018/04/30 14:59 https://github.com/google/kmsan.git master d2d741e5d189 06db3cec .config log report
ci-upstream-kmsan-gce 2018/04/30 09:10 https://github.com/google/kmsan.git master d2d741e5d189 06db3cec .config log report
ci-upstream-kmsan-gce 2018/04/30 01:41 https://github.com/google/kmsan.git master d2d741e5d189 bb79c6ab .config log report
ci-upstream-kmsan-gce 2018/04/29 22:52 https://github.com/google/kmsan.git master d2d741e5d189 bb79c6ab .config log report
ci-upstream-kmsan-gce 2018/04/29 20:04 https://github.com/google/kmsan.git master d2d741e5d189 bb79c6ab .config log report
ci-upstream-kmsan-gce 2018/04/06 22:31 https://github.com/google/kmsan.git master e2ab7e8abba4 d613535f .config log report