Received: by 10.192.165.148 with SMTP id m20csp2180034imm; Thu, 3 May 2018 11:44:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoGZoEoKu5tuih4WIovkcuAYFwaOjBERLS6qlAZGXCs4mJcxtnVTE8rRSX37nfOBTeM3L60 X-Received: by 2002:a17:902:5597:: with SMTP id g23-v6mr25045025pli.347.1525373074363; Thu, 03 May 2018 11:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525373074; cv=none; d=google.com; s=arc-20160816; b=tRaFjz3bVlYK1r+9AJcTGHeo9tqOF4p1rfkN90/ziADXBO8WJZ2+WG7lDVpQFVw6vk fo5080iVJsQ9bju8B1X4b1TPBHLx7+KHINwsI9t3s7AZTU/NS2yHW0faHs1/Knf/BN7k SSjHJoNuda/JTIXUL572H4BpCK4hF/bYzMvxTYIscOUs/BeQ2GDxVfV6w2Ql4J5nO6HS AgpTubLWcGZKvoqaC+DxLFYdTlQKdRvmXOi20e0T6BidyjOPe2XhNaPffb9M2RzvrQs8 iSQNayA/WWs/A8aa20C9kUmaP/LbrfqMKcnaUMJr8LHB9bZD8u/KfGT+s7R5hmIeuef+ QU9Q== 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=zht/Yok/2XXL3bor8OitMEVygVncZDjK0TVSsUPXTsI=; b=YtvxhYhjhrHVaxbnvxnjTnVbqY9Cv53IH5CrS7s0dpkOiiLg6wLSlxDwe7ISM3ccHM CpJv9LYUgu0IBppqAeKVXKQXaLrtg6/EXsMzjbhBFHXXOKRlr6oWNxd6geiVH3BnvvF2 GxMnfK3pggaX1LjuMp+ah9ONOiwDcZwDfvxRzJ89SYh1512RJV9wBU4C1yhLsZ6A92Tx Nynaa1S79IVlclSJNJV/fQiLbmF4sLQCzgIpbUQAnKQC9YM9TNoHTNv6MXQB45jrLrto +t7qXXoklMmsbcanAHw1AcwhSFyr48+S3C+mXg05LUP6SQvO04Vm/EmtcI27VrgtQuN3 NBjA== 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 1-v6si13838982plz.279.2018.05.03.11.44.20; Thu, 03 May 2018 11:44:34 -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 S1751554AbeECSoH (ORCPT + 99 others); Thu, 3 May 2018 14:44:07 -0400 Received: from mail-io0-f199.google.com ([209.85.223.199]:34949 "EHLO mail-io0-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbeECSoD (ORCPT ); Thu, 3 May 2018 14:44:03 -0400 Received: by mail-io0-f199.google.com with SMTP id t9-v6so13679382ioa.2 for ; Thu, 03 May 2018 11:44: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=zht/Yok/2XXL3bor8OitMEVygVncZDjK0TVSsUPXTsI=; b=RN/sCh12l/rdEbRIe0Ue3wFkeOmwGVbnLseg2LPsSoHUv4g9ls8/h637ilkbvaf4Wx jwRco8wUgAcwK7Xx5tHPt1bgyvhOvB6tiCdKYIiewRVl9XCNT+nqHjePfSTQHwwXYWnE rE2bcoErE8ii5dklR9Qc0sLeLWn21D6Tu4UpLlT9Y5pNE9TvQI/iKHNVlsNqv8VjQPCE vJPF2PIE0VxW5GdnUWk+1DSGaPDolnzUkNNbOiRjiPMBFmYPE2g4C+u0MXx3fpEI5FuS 3/qraAlcXFleDrofVhgOJb7kElOYi8jGogsKv35dSzd+I7dYWI8A+DCSkcR2Qcrfcuxu axmg== X-Gm-Message-State: ALQs6tBrUSg+Y6yejK++s3r9Qufb5QNo2E1kgFAbwDKwmP2OSWR+ief3 ANqK3vIKOMbEduXmI2h6AgWJTHTMijNp7c2FZjfLlt3X5KJe MIME-Version: 1.0 X-Received: by 2002:a24:5f46:: with SMTP id r67-v6mr9299624itb.49.1525373042550; Thu, 03 May 2018 11:44:02 -0700 (PDT) Date: Thu, 03 May 2018 11:44:02 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000059f907056b519603@google.com> Subject: KMSAN: uninit-value in strcmp From: syzbot To: davem@davemloft.net, jon.maloy@ericsson.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, tipc-discussion@lists.sourceforge.net, ying.xue@windriver.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 found the following crash on: HEAD commit: d2d741e5d189 kmsan: add initialization for shmem pages git tree: https://github.com/google/kmsan.git/master console output: https://syzkaller.appspot.com/x/log.txt?x=10051497800000 kernel config: https://syzkaller.appspot.com/x/.config?x=48f9de3384bcd0f dashboard link: https://syzkaller.appspot.com/bug?extid=df0257c92ffd4fcc58cd compiler: clang version 7.0.0 (trunk 329391) syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=11275657800000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17c3d5e7800000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+df0257c92ffd4fcc58cd@syzkaller.appspotmail.com ================================================================== BUG: KMSAN: uninit-value in strcmp+0xf7/0x160 lib/string.c:329 CPU: 1 PID: 4527 Comm: syz-executor655 Not tainted 4.16.0+ #87 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:683 strcmp+0xf7/0x160 lib/string.c:329 tipc_nl_node_get_link+0x220/0x6f0 net/tipc/node.c:1881 genl_family_rcv_msg net/netlink/genetlink.c:599 [inline] genl_rcv_msg+0x1686/0x1810 net/netlink/genetlink.c:624 netlink_rcv_skb+0x378/0x600 net/netlink/af_netlink.c:2447 genl_rcv+0x63/0x80 net/netlink/genetlink.c:635 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x166b/0x1740 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x1048/0x1310 net/netlink/af_netlink.c:1900 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg net/socket.c:640 [inline] ___sys_sendmsg+0xec0/0x1310 net/socket.c:2046 __sys_sendmsg net/socket.c:2080 [inline] SYSC_sendmsg+0x2a3/0x3d0 net/socket.c:2091 SyS_sendmsg+0x54/0x80 net/socket.c:2087 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x445589 RSP: 002b:00007fb7ee66cdb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000006dac24 RCX: 0000000000445589 RDX: 0000000000000000 RSI: 0000000020023000 RDI: 0000000000000003 RBP: 00000000006dac20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffa2bf3f3f R14: 00007fb7ee66d9c0 R15: 0000000000000001 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] netlink_alloc_large_skb net/netlink/af_netlink.c:1183 [inline] netlink_sendmsg+0x9a6/0x1310 net/netlink/af_netlink.c:1875 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg net/socket.c:640 [inline] ___sys_sendmsg+0xec0/0x1310 net/socket.c:2046 __sys_sendmsg net/socket.c:2080 [inline] SYSC_sendmsg+0x2a3/0x3d0 net/socket.c:2091 SyS_sendmsg+0x54/0x80 net/socket.c:2087 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 ================================================================== --- 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. 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.