syzbot


KMSAN: uninit-value in inet_gro_receive (2)

Status: closed as invalid on 2019/11/08 17:03
Subsystems: net
[Documentation on labels]
First crash: 1946d, last: 1936d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in inet_gro_receive (3) net 1 1726d 1722d 0/28 auto-closed as invalid on 2020/09/05 13:46
upstream KMSAN: uninit-value in inet_gro_receive kernel syz 32 2401d 2462d 0/28 closed as invalid on 2018/09/12 10:51

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in dev_gro_receive+0x26e6/0x32e0 net/core/dev.c:5577
CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.4.0-rc2+ #0
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+0x191/0x1f0 lib/dump_stack.c:113
 kmsan_report+0x153/0x2c0 mm/kmsan/kmsan_report.c:113
 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250
 pskb_may_pull include/linux/skbuff.h:2269 [inline]
 skb_gro_header_slow include/linux/netdevice.h:2696 [inline]
 inet_gro_receive+0x448/0x1a40 net/ipv4/af_inet.c:1423
 dev_gro_receive+0x26e6/0x32e0 net/core/dev.c:5577
 napi_gro_receive+0x5fc/0xbb0 net/core/dev.c:5710
 gro_cell_poll+0x25c/0x3f0 net/core/gro_cells.c:60
 napi_poll net/core/dev.c:6392 [inline]
 net_rx_action+0x7a6/0x1aa0 net/core/dev.c:6460
 __do_softirq+0x4a1/0x83a kernel/softirq.c:293
 run_ksoftirqd+0x25/0x40 kernel/softirq.c:607
 smpboot_thread_fn+0x4a3/0x990 kernel/smpboot.c:165
 kthread+0x4b5/0x4f0 kernel/kthread.c:256
 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:154 [inline]
 kmsan_internal_chain_origin+0xde/0x190 mm/kmsan/kmsan.c:329
 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:184
 __skb_pull include/linux/skbuff.h:2241 [inline]
 skb_pull_inline include/linux/skbuff.h:2248 [inline]
 eth_type_trans+0x683/0xa90 net/ethernet/eth.c:165
 ip_tunnel_rcv+0xf47/0x1be0 net/ipv4/ip_tunnel.c:416
 erspan_rcv net/ipv4/ip_gre.c:321 [inline]
 gre_rcv+0x1526/0x1900 net/ipv4/ip_gre.c:415
 gre_rcv+0x2dd/0x3c0 net/ipv4/gre_demux.c:155
 ip_protocol_deliver_rcu+0x70f/0xbd0 net/ipv4/ip_input.c:204
 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_local_deliver+0x62a/0x7c0 net/ipv4/ip_input.c:252
 dst_input include/net/dst.h:442 [inline]
 ip_rcv_finish net/ipv4/ip_input.c:413 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_rcv+0x6c5/0x740 net/ipv4/ip_input.c:523
 __netif_receive_skb_one_core net/core/dev.c:5010 [inline]
 __netif_receive_skb net/core/dev.c:5124 [inline]
 process_backlog+0xef5/0x1410 net/core/dev.c:5955
 napi_poll net/core/dev.c:6392 [inline]
 net_rx_action+0x7a6/0x1aa0 net/core/dev.c:6460
 __do_softirq+0x4a1/0x83a kernel/softirq.c:293
 do_softirq_own_stack+0x49/0x80 arch/x86/entry/entry_64.S:1093
 do_softirq kernel/softirq.c:338 [inline]
 __local_bh_enable_ip+0x184/0x1d0 kernel/softirq.c:190
 local_bh_enable+0x36/0x40 include/linux/bottom_half.h:32
 rcu_read_unlock_bh include/linux/rcupdate.h:688 [inline]
 ip_finish_output2+0x20ec/0x25d0 net/ipv4/ip_output.c:229
 ip_do_fragment+0x2d6e/0x35f0 net/ipv4/ip_output.c:849
 ip_fragment+0x246/0x410 net/ipv4/ip_output.c:587
 __ip_finish_output+0xd8b/0xda0 net/ipv4/ip_output.c:306
 ip_finish_output+0x2db/0x420 net/ipv4/ip_output.c:318
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_output+0x541/0x610 net/ipv4/ip_output.c:432
 dst_output include/net/dst.h:436 [inline]
 ip_local_out net/ipv4/ip_output.c:125 [inline]
 ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1555
 udp_send_skb+0x13fe/0x1910 net/ipv4/udp.c:891
 udp_push_pending_frames net/ipv4/udp.c:919 [inline]
 udp_sendmsg+0x925/0x4190 net/ipv4/udp.c:1210
 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 sock_write_iter+0x599/0x650 net/socket.c:989
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0xa2c/0xcb0 fs/read_write.c:496
 vfs_write+0x481/0x920 fs/read_write.c:558
 ksys_write+0x265/0x430 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:620
 __x64_sys_write+0x4a/0x70 fs/read_write.c:620
 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:154 [inline]
 kmsan_internal_chain_origin+0xde/0x190 mm/kmsan/kmsan.c:329
 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:184
 __skb_pull include/linux/skbuff.h:2241 [inline]
 skb_pull_rcsum+0x2d4/0x500 net/core/skbuff.c:3622
 __iptunnel_pull_header+0x14d/0xbc0 net/ipv4/ip_tunnel_core.c:94
 erspan_rcv net/ipv4/ip_gre.c:279 [inline]
 gre_rcv+0x6d9/0x1900 net/ipv4/ip_gre.c:415
 gre_rcv+0x2dd/0x3c0 net/ipv4/gre_demux.c:155
 ip_protocol_deliver_rcu+0x70f/0xbd0 net/ipv4/ip_input.c:204
 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_local_deliver+0x62a/0x7c0 net/ipv4/ip_input.c:252
 dst_input include/net/dst.h:442 [inline]
 ip_rcv_finish net/ipv4/ip_input.c:413 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip_rcv+0x6c5/0x740 net/ipv4/ip_input.c:523
 __netif_receive_skb_one_core net/core/dev.c:5010 [inline]
 __netif_receive_skb net/core/dev.c:5124 [inline]
 process_backlog+0xef5/0x1410 net/core/dev.c:5955
 napi_poll net/core/dev.c:6392 [inline]
 net_rx_action+0x7a6/0x1aa0 net/core/dev.c:6460
 __do_softirq+0x4a1/0x83a kernel/softirq.c:293
 do_softirq_own_stack+0x49/0x80 arch/x86/entry/entry_64.S:1093
 do_softirq kernel/softirq.c:338 [inline]
 __local_bh_enable_ip+0x184/0x1d0 kernel/softirq.c:190
 local_bh_enable+0x36/0x40 include/linux/bottom_half.h:32
 rcu_read_unlock_bh include/linux/rcupdate.h:688 [inline]
 ip_finish_output2+0x20ec/0x25d0 net/ipv4/ip_output.c:229
 ip_do_fragment+0x2d6e/0x35f0 net/ipv4/ip_output.c:849
 ip_fragment+0x246/0x410 net/ipv4/ip_output.c:587
 __ip_finish_output+0xd8b/0xda0 net/ipv4/ip_output.c:306
 ip_finish_output+0x2db/0x420 net/ipv4/ip_output.c:318
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_output+0x541/0x610 net/ipv4/ip_output.c:432
 dst_output include/net/dst.h:436 [inline]
 ip_local_out net/ipv4/ip_output.c:125 [inline]
 ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1555
 udp_send_skb+0x13fe/0x1910 net/ipv4/udp.c:891
 udp_push_pending_frames net/ipv4/udp.c:919 [inline]
 udp_sendmsg+0x925/0x4190 net/ipv4/udp.c:1210
 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 sock_write_iter+0x599/0x650 net/socket.c:989
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0xa2c/0xcb0 fs/read_write.c:496
 vfs_write+0x481/0x920 fs/read_write.c:558
 ksys_write+0x265/0x430 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:620
 __x64_sys_write+0x4a/0x70 fs/read_write.c:620
 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:154 [inline]
 kmsan_internal_chain_origin+0xde/0x190 mm/kmsan/kmsan.c:329
 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:255
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:275
 __msan_memcpy+0x56/0x70 mm/kmsan/kmsan_instr.c:129
 pskb_expand_head+0x38a/0x19f0 net/core/skbuff.c:1637
 __skb_cow include/linux/skbuff.h:3105 [inline]
 skb_cow_head include/linux/skbuff.h:3139 [inline]
 ip_tunnel_xmit+0x2974/0x3320 net/ipv4/ip_tunnel.c:811
 __gre_xmit net/ipv4/ip_gre.c:444 [inline]
 erspan_xmit+0x1ef8/0x35c0 net/ipv4/ip_gre.c:679
 __netdev_start_xmit include/linux/netdevice.h:4420 [inline]
 netdev_start_xmit include/linux/netdevice.h:4434 [inline]
 xmit_one net/core/dev.c:3280 [inline]
 dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3296
 sch_direct_xmit+0x56c/0x18c0 net/sched/sch_generic.c:314
 __dev_xmit_skb net/core/dev.c:3481 [inline]
 __dev_queue_xmit+0x212d/0x4200 net/core/dev.c:3842
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3906
 neigh_resolve_output+0xab7/0xb50 net/core/neighbour.c:1490
 neigh_output include/net/neighbour.h:511 [inline]
 ip_finish_output2+0x1a9c/0x25d0 net/ipv4/ip_output.c:228
 ip_do_fragment+0x2d6e/0x35f0 net/ipv4/ip_output.c:849
 ip_fragment+0x246/0x410 net/ipv4/ip_output.c:587
 __ip_finish_output+0xd8b/0xda0 net/ipv4/ip_output.c:306
 ip_finish_output+0x2db/0x420 net/ipv4/ip_output.c:318
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip_output+0x541/0x610 net/ipv4/ip_output.c:432
 dst_output include/net/dst.h:436 [inline]
 ip_local_out net/ipv4/ip_output.c:125 [inline]
 ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1555
 udp_send_skb+0x13fe/0x1910 net/ipv4/udp.c:891
 udp_push_pending_frames net/ipv4/udp.c:919 [inline]
 udp_sendmsg+0x925/0x4190 net/ipv4/udp.c:1210
 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 sock_write_iter+0x599/0x650 net/socket.c:989
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0xa2c/0xcb0 fs/read_write.c:496
 vfs_write+0x481/0x920 fs/read_write.c:558
 ksys_write+0x265/0x430 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:620
 __x64_sys_write+0x4a/0x70 fs/read_write.c:620
 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:154 [inline]
 kmsan_internal_poison_shadow+0x60/0x120 mm/kmsan/kmsan.c:137
 kmsan_slab_alloc+0xaa/0x120 mm/kmsan/kmsan_hooks.c:103
 slab_alloc_node mm/slub.c:2792 [inline]
 __kmalloc_node_track_caller+0xb55/0x1320 mm/slub.c:4390
 __kmalloc_reserve net/core/skbuff.c:141 [inline]
 __alloc_skb+0x306/0xa10 net/core/skbuff.c:209
 alloc_skb include/linux/skbuff.h:1050 [inline]
 alloc_skb_with_frags+0x18c/0xa80 net/core/skbuff.c:5659
 sock_alloc_send_pskb+0xafd/0x10a0 net/core/sock.c:2240
 sock_alloc_send_skb+0xca/0xe0 net/core/sock.c:2257
 __ip_append_data+0x375d/0x52c0 net/ipv4/ip_output.c:1087
 ip_append_data+0x324/0x480 net/ipv4/ip_output.c:1310
 udp_sendmsg+0x6d2/0x4190 net/ipv4/udp.c:1204
 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 ___sys_sendmsg+0x12c4/0x1590 net/socket.c:2311
 __sys_sendmsg net/socket.c:2356 [inline]
 __do_sys_sendmsg net/socket.c:2365 [inline]
 __se_sys_sendmsg+0x305/0x460 net/socket.c:2363
 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2363
 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
=====================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/11 01:49 https://github.com/google/kmsan.git master c38191cb7026 1a3bad90 .config console log report ci-upstream-kmsan-gce
2019/10/01 03:38 https://github.com/google/kmsan.git master f5f9d3ce4686 c7a4fb99 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.