syzbot


KMSAN: uninit-value in ip_fast_csum (2)

Status: auto-closed as invalid on 2022/04/26 23:47
Reported-by: syzbot+2e4b07b74e6ce750cd4d@syzkaller.appspotmail.com
First crash: 222d, last: 222d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in ip_fast_csum 1 1497d 1497d 0/23 closed as invalid on 2018/09/05 16:40

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in do_csum lib/checksum.c:51 [inline]
BUG: KMSAN: uninit-value in ip_fast_csum+0x429/0x5b0 lib/checksum.c:108
 do_csum lib/checksum.c:51 [inline]
 ip_fast_csum+0x429/0x5b0 lib/checksum.c:108
 ip_send_check net/ipv4/ip_output.c:95 [inline]
 ip_frag_next+0xd92/0xfd0 net/ipv4/ip_output.c:740
 ip_do_fragment+0x1158/0x2a30 net/ipv4/ip_output.c:886
 ip_fragment+0x378/0x4e0
 __ip_finish_output+0x69b/0x960 net/ipv4/ip_output.c:297
 ip_finish_output+0x15c/0x4d0 net/ipv4/ip_output.c:309
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip_output+0x333/0x6d0 net/ipv4/ip_output.c:423
 dst_output include/net/dst.h:450 [inline]
 NF_HOOK+0x180/0x450 include/linux/netfilter.h:307
 raw_send_hdrinc+0x1a42/0x1f20 net/ipv4/raw.c:429
 raw_sendmsg+0x276d/0x2e90 net/ipv4/raw.c:660
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 kernel_sendmsg+0x22c/0x2f0 net/socket.c:744
 sock_no_sendpage+0x227/0x2c0 net/core/sock.c:3080
 inet_sendpage+0x2c2/0x2f0 net/ipv4/af_inet.c:834
 kernel_sendpage+0x4a0/0x5a0 net/socket.c:3504
 sock_sendpage+0x161/0x1a0 net/socket.c:1003
 pipe_to_sendpage+0x3f1/0x510 fs/splice.c:364
 splice_from_pipe_feed fs/splice.c:418 [inline]
 __splice_from_pipe+0x5c3/0x1000 fs/splice.c:562
 splice_from_pipe fs/splice.c:597 [inline]
 generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x1a4/0x240 fs/splice.c:936
 splice_direct_to_actor+0xa7a/0x1410 fs/splice.c:891
 do_splice_direct+0x3b2/0x600 fs/splice.c:979
 do_sendfile+0xe3c/0x1f50 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x367/0x400 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Uninit was created at:
 slab_post_alloc_hook mm/slab.h:524 [inline]
 slab_alloc_node mm/slub.c:3251 [inline]
 __kmalloc_node_track_caller+0xe0c/0x1510 mm/slub.c:4974
 kmalloc_reserve net/core/skbuff.c:354 [inline]
 __alloc_skb+0x545/0xf90 net/core/skbuff.c:426
 alloc_skb include/linux/skbuff.h:1126 [inline]
 ip_frag_next+0x1b9/0xfd0 net/ipv4/ip_output.c:686
 ip_do_fragment+0x1158/0x2a30 net/ipv4/ip_output.c:886
 ip_fragment+0x378/0x4e0
 __ip_finish_output+0x69b/0x960 net/ipv4/ip_output.c:297
 ip_finish_output+0x15c/0x4d0 net/ipv4/ip_output.c:309
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip_output+0x333/0x6d0 net/ipv4/ip_output.c:423
 dst_output include/net/dst.h:450 [inline]
 NF_HOOK+0x180/0x450 include/linux/netfilter.h:307
 raw_send_hdrinc+0x1a42/0x1f20 net/ipv4/raw.c:429
 raw_sendmsg+0x276d/0x2e90 net/ipv4/raw.c:660
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 kernel_sendmsg+0x22c/0x2f0 net/socket.c:744
 sock_no_sendpage+0x227/0x2c0 net/core/sock.c:3080
 inet_sendpage+0x2c2/0x2f0 net/ipv4/af_inet.c:834
 kernel_sendpage+0x4a0/0x5a0 net/socket.c:3504
 sock_sendpage+0x161/0x1a0 net/socket.c:1003
 pipe_to_sendpage+0x3f1/0x510 fs/splice.c:364
 splice_from_pipe_feed fs/splice.c:418 [inline]
 __splice_from_pipe+0x5c3/0x1000 fs/splice.c:562
 splice_from_pipe fs/splice.c:597 [inline]
 generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x1a4/0x240 fs/splice.c:936
 splice_direct_to_actor+0xa7a/0x1410 fs/splice.c:891
 do_splice_direct+0x3b2/0x600 fs/splice.c:979
 do_sendfile+0xe3c/0x1f50 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x367/0x400 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae

CPU: 1 PID: 6492 Comm: syz-executor.3 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
=====================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2021/12/27 23:47 https://github.com/google/kmsan.git master 81c325bbf94e 5140bd58 .config log report info KMSAN: uninit-value in ip_fast_csum