All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+591798c238c7b7108f72@syzkaller.appspotmail.com>
To: ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net,
	davem@davemloft.net, edumazet@google.com, glider@google.com,
	jakub@cloudflare.com, jiri@mellanox.com, kafai@fb.com,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	paulb@mellanox.com, sdf@google.com, songliubraving@fb.com,
	soukjin.bae@samsung.com, syzkaller-bugs@googlegroups.com,
	yhs@fb.com
Subject: KMSAN: uninit-value in __skb_flow_dissect (2)
Date: Tue, 12 Nov 2019 07:54:09 -0800	[thread overview]
Message-ID: <000000000000447eb705972842c6@google.com> (raw)

Hello,

syzbot found the following crash on:

HEAD commit:    fa169025 kmsan: get rid of unused static functions in kmsa..
git tree:       https://github.com/google/kmsan.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=1498dde7600000
kernel config:  https://syzkaller.appspot.com/x/.config?x=49548798e87d32d7
dashboard link: https://syzkaller.appspot.com/bug?extid=591798c238c7b7108f72
compiler:       clang version 9.0.0 (/home/glider/llvm/clang  
80fee25776c2fb61e74c1ecb1a523375c2500b69)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+591798c238c7b7108f72@syzkaller.appspotmail.com

device nr0\x01 entered promiscuous mode
=====================================================
BUG: KMSAN: uninit-value in __skb_flow_dissect+0x207e/0x7a40  
net/core/flow_dissector.c:957
CPU: 1 PID: 21243 Comm: syz-executor.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+0x14e/0x2c0 mm/kmsan/kmsan_report.c:110
  __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:245
  __skb_flow_dissect+0x207e/0x7a40 net/core/flow_dissector.c:957
  __skb_get_hash_symmetric+0x108/0x260 net/core/flow_dissector.c:1523
  fanout_demux_hash net/packet/af_packet.c:1314 [inline]
  packet_rcv_fanout+0xa73/0x2550 net/packet/af_packet.c:1429
  deliver_skb net/core/dev.c:1969 [inline]
  __netif_receive_skb_core+0x1cab/0x51a0 net/core/dev.c:4896
  __netif_receive_skb_one_core net/core/dev.c:5008 [inline]
  __netif_receive_skb net/core/dev.c:5124 [inline]
  netif_receive_skb_internal+0x3cc/0xc20 net/core/dev.c:5214
  netif_receive_skb+0x1da/0x3a0 net/core/dev.c:5273
  tun_rx_batched drivers/net/tun.c:1553 [inline]
  tun_get_user+0x6c44/0x6f70 drivers/net/tun.c:1993
  tun_chr_write_iter+0x1f2/0x360 drivers/net/tun.c:2022
  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
RIP: 0033:0x459a59
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f073d62ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a59
RDX: 000000000000b107 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f073d62b6d4
R13: 00000000004c9ea0 R14: 00000000004e1ac0 R15: 00000000ffffffff

Uninit was stored to memory at:
  kmsan_save_stack_with_flags mm/kmsan/kmsan.c:154 [inline]
  kmsan_internal_chain_origin+0xbd/0x170 mm/kmsan/kmsan.c:321
  __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:179
  __skb_flow_dissect+0x30ee/0x7a40 net/core/flow_dissector.c:1060
  __skb_get_hash_symmetric+0x108/0x260 net/core/flow_dissector.c:1523
  fanout_demux_hash net/packet/af_packet.c:1314 [inline]
  packet_rcv_fanout+0xa73/0x2550 net/packet/af_packet.c:1429
  deliver_skb net/core/dev.c:1969 [inline]
  __netif_receive_skb_core+0x1cab/0x51a0 net/core/dev.c:4896
  __netif_receive_skb_one_core net/core/dev.c:5008 [inline]
  __netif_receive_skb net/core/dev.c:5124 [inline]
  netif_receive_skb_internal+0x3cc/0xc20 net/core/dev.c:5214
  netif_receive_skb+0x1da/0x3a0 net/core/dev.c:5273
  tun_rx_batched drivers/net/tun.c:1553 [inline]
  tun_get_user+0x6c44/0x6f70 drivers/net/tun.c:1993
  tun_chr_write_iter+0x1f2/0x360 drivers/net/tun.c:2022
  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+0xbd/0x170 mm/kmsan/kmsan.c:321
  __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:179
  vlan_set_encap_proto include/linux/skbuff.h:1587 [inline]
  skb_vlan_untag+0x6bc/0xd20 net/core/skbuff.c:5329
  __netif_receive_skb_core+0x833/0x51a0 net/core/dev.c:4855
  __netif_receive_skb_one_core net/core/dev.c:5008 [inline]
  __netif_receive_skb net/core/dev.c:5124 [inline]
  netif_receive_skb_internal+0x3cc/0xc20 net/core/dev.c:5214
  netif_receive_skb+0x1da/0x3a0 net/core/dev.c:5273
  tun_rx_batched drivers/net/tun.c:1553 [inline]
  tun_get_user+0x6c44/0x6f70 drivers/net/tun.c:1993
  tun_chr_write_iter+0x1f2/0x360 drivers/net/tun.c:2022
  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
  tun_alloc_skb drivers/net/tun.c:1529 [inline]
  tun_get_user+0x1132/0x6f70 drivers/net/tun.c:1843
  tun_chr_write_iter+0x1f2/0x360 drivers/net/tun.c:2022
  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
=====================================================


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

                 reply	other threads:[~2019-11-12 15:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=000000000000447eb705972842c6@google.com \
    --to=syzbot+591798c238c7b7108f72@syzkaller.appspotmail.com \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=glider@google.com \
    --cc=jakub@cloudflare.com \
    --cc=jiri@mellanox.com \
    --cc=kafai@fb.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=paulb@mellanox.com \
    --cc=sdf@google.com \
    --cc=songliubraving@fb.com \
    --cc=soukjin.bae@samsung.com \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=yhs@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.