Received: by 10.192.165.156 with SMTP id m28csp1666493imm; Thu, 12 Apr 2018 01:05:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/GBDV4u2Mslc9a6ExnAs4QFaRUE0EPxZXWrIPK9hxFvQfW83104NKzmZ279WHT+2MlYWZ6 X-Received: by 2002:a17:902:8685:: with SMTP id g5-v6mr8963995plo.46.1523520337857; Thu, 12 Apr 2018 01:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523520337; cv=none; d=google.com; s=arc-20160816; b=T+hKlzT2G2zlxANyS6W0PnLxvBe+fzU+qnykrYp5HOWiOySsyGOsSSIHF9Vwnu2iNb hjc0RemuaNk7HBIClkMBDAmmNMprBj3RVRHLNbO3Z4oOJNLzQKmVa5oRupolg+quehuc xpxrOC+9n97tSHcyWQP7O/waL3dGy/8PNKAxidv9HV5/g/oXRXkfWj169Fy1GkVPIe8Z f1hOyMeicg9OmXG7sfzXLYQ8NReUFpk0E/WO2P9H3fdJwCYilzAGA2EHRPz2tb2TGj3x AUtqbE4Ri5lKoBWUMARaM0h3fTa2RAeIrYSV8P7M8QC+Ogrn6WfBoxRqUxOQKx5ih/6R 4iKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version:arc-authentication-results; bh=3gylkuAY1v4LjnvaJWLAcdFfX5sRFJKXrEdXEOyTnxk=; b=bnUs4yIeXgsu6xesHTwkd13bCGj65WN2a8bjAuBWQ7A8nXd6WgPspRGBo4h+JkRrPe ZJQ7UXqdK6gOaIZP6o8bx+zmJBovkJobBw3nmqLytF+0CFtHfyHrAf+40297ceolf4fW TNypBwtEwEiLUNLtjohX9SkabeIme9UlMhInhpb4B7xzg2182mS7k4DBDMQEzPGlS7u4 /LdZjucsvH5a8/F3R/6Dh1mord9hhDc9Es0vrxk+B5+Wp3sYmP7ZtylZ4L2igTPY7Enl SYtgES+IR5EkjR0zQCDiL1wtejc8fx1/tQe+s/Ki2LLqQMg8vEBmCiHlHpR8GoqjBhUO mRkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12-v6si504299plk.380.2018.04.12.01.05.00; Thu, 12 Apr 2018 01:05:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752932AbeDLIBJ (ORCPT + 99 others); Thu, 12 Apr 2018 04:01:09 -0400 Received: from mail-it0-f69.google.com ([209.85.214.69]:36634 "EHLO mail-it0-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbeDLIBC (ORCPT ); Thu, 12 Apr 2018 04:01:02 -0400 Received: by mail-it0-f69.google.com with SMTP id a10-v6so4247710itb.1 for ; Thu, 12 Apr 2018 01:01:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=3gylkuAY1v4LjnvaJWLAcdFfX5sRFJKXrEdXEOyTnxk=; b=YoUVa9ewi4ayNTw8PKD7eEN0ykn/vBMrEeeia/yPIYkBaICfAGomLc/K/pKUK0xoyw W3KsbbmPO7MWWnnnBq7NLIrt4pVfz2VzqSim4x9VLnXqetD8At6DS67aKyM74xpke/xB DLNFw0ufNoDEK4BASdMVhnDGaVItU/QvBXtZsJF+ZWRQzTYAJcpv6wxaDDdUZrwgXGyH lHU/FC34Edi7OP7wstcx9B69J1j/qQYahe30agCMHmAcdqgqP3+bzo4g2Fn9yZS3a0HZ lmBQVIzFkjHs8EbV64SSRSYrXLz/xKibuDPIUUVK+BV+83LEvHMcJERDGBQ476lIjAsL nlLQ== X-Gm-Message-State: ALQs6tAzSdqqgN5jqHQu5nRhfUHnU+DH/O7UO/MTOYCeGB2oFJUIZAyG z2cWH8XkU7wl9fWt0A9f9iAQepEM8YjmK8O8hEa1MqDTaR3V MIME-Version: 1.0 X-Received: by 10.107.111.26 with SMTP id k26mr3859267ioc.28.1523520062053; Thu, 12 Apr 2018 01:01:02 -0700 (PDT) Date: Thu, 12 Apr 2018 01:01:02 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <089e082d0cb81b67d10569a2283f@google.com> Subject: KMSAN: uninit-value in netif_skb_features From: syzbot To: bpoirier@suse.com, davem@davemloft.net, edumazet@google.com, elena.reshetova@intel.com, keescook@chromium.org, linux-kernel@vger.kernel.org, maloney@google.com, netdev@vger.kernel.org, rami.rosen@intel.com, syzkaller-bugs@googlegroups.com, willemb@google.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot hit the following crash on https://github.com/google/kmsan.git/master commit e2ab7e8abba47a2f2698216258e5d8727ae58717 (Fri Apr 6 16:24:31 2018 +0000) kmsan: temporarily disable visitAsmInstruction() to help syzbot syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=0bbe42c764feafa82c5a So far this crash happened 30 times on https://github.com/google/kmsan.git/master. C reproducer: https://syzkaller.appspot.com/x/repro.c?id=4850744041668608 syzkaller reproducer: https://syzkaller.appspot.com/x/repro.syz?id=6289386287136768 Raw console output: https://syzkaller.appspot.com/x/log.txt?id=4577411249209344 Kernel config: https://syzkaller.appspot.com/x/.config?id=6627248707860932248 compiler: clang version 7.0.0 (trunk 329391) IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+0bbe42c764feafa82c5a@syzkaller.appspotmail.com It will help syzbot understand when the bug is fixed. See footer for details. If you forward the report, please keep this part and the footer. ================================================================== BUG: KMSAN: uninit-value in eth_type_vlan include/linux/if_vlan.h:283 [inline] BUG: KMSAN: uninit-value in skb_vlan_tagged_multi include/linux/if_vlan.h:656 [inline] BUG: KMSAN: uninit-value in vlan_features_check include/linux/if_vlan.h:672 [inline] BUG: KMSAN: uninit-value in dflt_features_check net/core/dev.c:2949 [inline] BUG: KMSAN: uninit-value in netif_skb_features+0xd1b/0xdc0 net/core/dev.c:3009 CPU: 1 PID: 3582 Comm: syzkaller435149 Not tainted 4.16.0+ #82 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:676 eth_type_vlan include/linux/if_vlan.h:283 [inline] skb_vlan_tagged_multi include/linux/if_vlan.h:656 [inline] vlan_features_check include/linux/if_vlan.h:672 [inline] dflt_features_check net/core/dev.c:2949 [inline] netif_skb_features+0xd1b/0xdc0 net/core/dev.c:3009 validate_xmit_skb+0x89/0x1320 net/core/dev.c:3084 __dev_queue_xmit+0x1cb2/0x2b60 net/core/dev.c:3549 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3590 packet_snd net/packet/af_packet.c:2944 [inline] packet_sendmsg+0x7c57/0x8a10 net/packet/af_packet.c:2969 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg net/socket.c:640 [inline] sock_write_iter+0x3b9/0x470 net/socket.c:909 do_iter_readv_writev+0x7bb/0x970 include/linux/fs.h:1776 do_iter_write+0x30d/0xd40 fs/read_write.c:932 vfs_writev fs/read_write.c:977 [inline] do_writev+0x3c9/0x830 fs/read_write.c:1012 SYSC_writev+0x9b/0xb0 fs/read_write.c:1085 SyS_writev+0x56/0x80 fs/read_write.c:1082 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x43ffa9 RSP: 002b:00007fff2cff3948 EFLAGS: 00000217 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ffa9 RDX: 0000000000000001 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00000000006cb018 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018d0 R13: 0000000000401960 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:188 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:314 kmsan_slab_alloc+0x11/0x20 mm/kmsan/kmsan.c:321 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc_node mm/slub.c:2737 [inline] __kmalloc_node_track_caller+0xaed/0x11c0 mm/slub.c:4369 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2cf/0x9f0 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:984 [inline] alloc_skb_with_frags+0x1d4/0xb20 net/core/skbuff.c:5234 sock_alloc_send_pskb+0xb56/0x1190 net/core/sock.c:2085 packet_alloc_skb net/packet/af_packet.c:2803 [inline] packet_snd net/packet/af_packet.c:2894 [inline] packet_sendmsg+0x6444/0x8a10 net/packet/af_packet.c:2969 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg net/socket.c:640 [inline] sock_write_iter+0x3b9/0x470 net/socket.c:909 do_iter_readv_writev+0x7bb/0x970 include/linux/fs.h:1776 do_iter_write+0x30d/0xd40 fs/read_write.c:932 vfs_writev fs/read_write.c:977 [inline] do_writev+0x3c9/0x830 fs/read_write.c:1012 SYSC_writev+0x9b/0xb0 fs/read_write.c:1085 SyS_writev+0x56/0x80 fs/read_write.c:1082 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 ================================================================== --- This bug is generated by a dumb bot. It may contain errors. See https://goo.gl/tpsmEJ for details. Direct all questions to syzkaller@googlegroups.com. syzbot will keep track of this bug report. If you forgot to add the Reported-by tag, once the fix for this bug is merged into any tree, please reply to this email with: #syz fix: exact-commit-title If you want to test a patch for this bug, please reply with: #syz test: git://repo/address.git branch and provide the patch inline or as an attachment. To mark this as a duplicate of another syzbot report, please reply with: #syz dup: exact-subject-of-another-report If it's a one-off invalid bug report, please reply with: #syz invalid Note: if the crash happens again, it will cause creation of a new bug report. Note: all commands must start from beginning of the line in the email body.