syzbot


KMSAN: uninit-value in nf_conntrack_udplite_packet (2)
Status: upstream: reported C repro on 2021/01/14 16:16
Reported-by: syzbot+e5b49f0d1e69d0c0fcb4@syzkaller.appspotmail.com
First crash: 499d, last: 324d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in nf_conntrack_udplite_packet C 22 675d 679d 0/22 closed as invalid on 2020/07/22 14:12
Patch testing requests:
Created Duration User Patch Repo Result
2021/04/01 13:09 15m phil@philpotter.co.uk https://github.com/google/kmsan.git master report log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in udplite_error net/netfilter/nf_conntrack_proto_udp.c:162 [inline]
BUG: KMSAN: uninit-value in nf_conntrack_udplite_packet+0x6cc/0x12d0 net/netfilter/nf_conntrack_proto_udp.c:188
CPU: 0 PID: 8684 Comm: syz-executor010 Not tainted 5.11.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x21c/0x280 lib/dump_stack.c:120
 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118
 __msan_warning+0x5f/0xa0 mm/kmsan/kmsan_instr.c:197
 udplite_error net/netfilter/nf_conntrack_proto_udp.c:162 [inline]
 nf_conntrack_udplite_packet+0x6cc/0x12d0 net/netfilter/nf_conntrack_proto_udp.c:188
 nf_conntrack_handle_packet net/netfilter/nf_conntrack_core.c:1769 [inline]
 nf_conntrack_in+0x104b/0x296d net/netfilter/nf_conntrack_core.c:1847
 ipv4_conntrack_local+0x225/0x3b0 net/netfilter/nf_conntrack_proto.c:200
 nf_hook_entry_hookfn include/linux/netfilter.h:136 [inline]
 nf_hook_slow+0x17b/0x460 net/netfilter/core.c:589
 nf_hook include/linux/netfilter.h:256 [inline]
 __ip_local_out+0x78c/0x840 net/ipv4/ip_output.c:115
 ip_local_out net/ipv4/ip_output.c:124 [inline]
 ip_send_skb+0xb1/0x350 net/ipv4/ip_output.c:1568
 udp_send_skb+0x152d/0x1bc0 net/ipv4/udp.c:947
 udp_push_pending_frames net/ipv4/udp.c:975 [inline]
 udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1346
 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:831
 kernel_sendpage+0x47a/0x590 net/socket.c:3636
 sock_sendpage+0x161/0x1a0 net/socket.c:945
 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364
 splice_from_pipe_feed fs/splice.c:418 [inline]
 __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562
 splice_from_pipe fs/splice.c:597 [inline]
 generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:743
 do_splice_from fs/splice.c:764 [inline]
 do_splice+0x242e/0x3660 fs/splice.c:1059
 __do_splice fs/splice.c:1137 [inline]
 __do_sys_splice fs/splice.c:1343 [inline]
 __se_sys_splice+0x8fa/0xb50 fs/splice.c:1325
 __x64_sys_splice+0x6e/0x90 fs/splice.c:1325
 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4439c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff657dcec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004439c9
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000080000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff657dcef0
R13: 00000000000f4240 R14: 0000000000027fed R15: 00007fff657dcee4

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 __msan_chain_origin+0x57/0xa0 mm/kmsan/kmsan_instr.c:147
 udp_send_skb+0x1767/0x1bc0 net/ipv4/udp.c:942
 udp_push_pending_frames net/ipv4/udp.c:975 [inline]
 udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1346
 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:831
 kernel_sendpage+0x47a/0x590 net/socket.c:3636
 sock_sendpage+0x161/0x1a0 net/socket.c:945
 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364
 splice_from_pipe_feed fs/splice.c:418 [inline]
 __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562
 splice_from_pipe fs/splice.c:597 [inline]
 generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:743
 do_splice_from fs/splice.c:764 [inline]
 do_splice+0x242e/0x3660 fs/splice.c:1059
 __do_splice fs/splice.c:1137 [inline]
 __do_sys_splice fs/splice.c:1343 [inline]
 __se_sys_splice+0x8fa/0xb50 fs/splice.c:1325
 __x64_sys_splice+0x6e/0x90 fs/splice.c:1325
 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246
 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110
 skb_copy_from_linear_data_offset include/linux/skbuff.h:3666 [inline]
 skb_copy_bits+0x293/0x1040 net/core/skbuff.c:2217
 tpacket_rcv+0x550a/0x8030 net/packet/af_packet.c:2338
 __netif_receive_skb_one_core net/core/dev.c:5323 [inline]
 __netif_receive_skb+0x1ec/0x640 net/core/dev.c:5437
 process_backlog+0x517/0xbd0 net/core/dev.c:6328
 napi_poll+0x428/0x15c0 net/core/dev.c:6806
 net_rx_action+0x34c/0xd30 net/core/dev.c:6889
 __do_softirq+0x1b9/0x715 kernel/softirq.c:343

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289
 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246
 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110
 pskb_expand_head+0x3d6/0x1e20 net/core/skbuff.c:1647
 __skb_cow include/linux/skbuff.h:3171 [inline]
 skb_cow_head include/linux/skbuff.h:3205 [inline]
 batadv_skb_head_push+0x2cc/0x410 net/batman-adv/soft-interface.c:73
 batadv_send_skb_packet+0x1ed/0x970 net/batman-adv/send.c:86
 batadv_send_broadcast_skb+0x76/0x90 net/batman-adv/send.c:127
 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:393 [inline]
 batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:419 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0xb2d/0xef0 net/batman-adv/bat_iv_ogm.c:1711
 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275
 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421
 kthread+0x521/0x560 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline]
 kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104
 kmsan_slab_alloc+0x8d/0xe0 mm/kmsan/kmsan_hooks.c:76
 slab_alloc_node mm/slub.c:2907 [inline]
 __kmalloc_node_track_caller+0xa37/0x1430 mm/slub.c:4527
 __kmalloc_reserve net/core/skbuff.c:142 [inline]
 __alloc_skb+0x2f8/0xb30 net/core/skbuff.c:210
 __netdev_alloc_skb+0x450/0x7f0 net/core/skbuff.c:446
 __netdev_alloc_skb_ip_align include/linux/skbuff.h:2852 [inline]
 netdev_alloc_skb_ip_align include/linux/skbuff.h:2862 [inline]
 batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:558 [inline]
 batadv_iv_ogm_queue_add+0x1376/0x1c40 net/batman-adv/bat_iv_ogm.c:670
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:849 [inline]
 batadv_iv_ogm_schedule+0x128d/0x1670 net/batman-adv/bat_iv_ogm.c:869
 batadv_iv_send_outstanding_bat_ogm_packet+0xd6e/0xef0 net/batman-adv/bat_iv_ogm.c:1723
 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275
 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421
 kthread+0x521/0x560 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
=====================================================

Crashes (33):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2021/04/09 11:25 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report syz C KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/01/13 16:14 https://github.com/google/kmsan.git master 73d62e81b476 a945f0a3 .config log report syz C
ci-upstream-kmsan-gce 2021/07/08 02:10 https://github.com/google/kmsan.git master 57b5797c8013 95793bce .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/07/02 20:11 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/06/29 19:38 https://github.com/google/kmsan.git master 57b5797c8013 a4fccb01 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/06/17 00:23 https://github.com/google/kmsan.git master 89a0faf20faa aba2b2fb .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/06/15 09:09 https://github.com/google/kmsan.git master 7bcc9a7be76b 1ba81399 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/06/04 00:57 https://github.com/google/kmsan.git master 6099c9da2f7d 0740de69 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/30 02:05 https://github.com/google/kmsan.git master 6099c9da2f7d 325a8dab .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/29 17:23 https://github.com/google/kmsan.git master 6099c9da2f7d 325a8dab .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/26 23:06 https://github.com/google/kmsan.git master 6099c9da2f7d 858ea628 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/26 09:37 https://github.com/google/kmsan.git master 6099c9da2f7d 54f0bcf1 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/25 05:18 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/25 04:20 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/23 22:53 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/23 22:00 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/23 00:21 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/21 12:41 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/17 23:47 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/17 23:37 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/17 22:58 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/13 00:34 https://github.com/google/kmsan.git master bdefec9ab855 ed7d41c5 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/05/07 04:10 https://github.com/google/kmsan.git master 4ebaab5fb428 06585184 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/03/11 11:38 https://github.com/google/kmsan.git master 29ad81a1074a c2ca1f2a .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/03/05 20:19 https://github.com/google/kmsan.git master 29ad81a1074a 56722561 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/02/27 22:30 https://github.com/google/kmsan.git master 29ad81a1074a 4c37c133 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/02/23 23:41 https://github.com/google/kmsan.git master 29ad81a1074a fcc6d71b .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/02/21 21:58 https://github.com/google/kmsan.git master 29ad81a1074a a659b3f1 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/02/10 21:29 https://github.com/google/kmsan.git master 73d62e81b476 a52ee10a .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/02/07 00:52 https://github.com/google/kmsan.git master 73d62e81b476 0655e081 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/02/06 01:32 https://github.com/google/kmsan.git master 73d62e81b476 23a562df .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/01/28 09:37 https://github.com/google/kmsan.git master 73d62e81b476 eefc07f2 .config log report info KMSAN: uninit-value in nf_conntrack_udplite_packet
ci-upstream-kmsan-gce 2021/01/13 13:00 https://github.com/google/kmsan.git master 73d62e81b476 a945f0a3 .config log report info