Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp846292ybi; Wed, 19 Jun 2019 08:49:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTyzZfz963QmymnbHh0TV5ys40ZGtOz3CLzGGLOulXF2SDLD/vcxYT0G+lsrR7Pu/QKVav X-Received: by 2002:a17:90a:9503:: with SMTP id t3mr11860939pjo.47.1560959364086; Wed, 19 Jun 2019 08:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560959364; cv=none; d=google.com; s=arc-20160816; b=dysRpSH0gvC65HwZs6gb1ajVQ0BaIoB5Ju0YD/r1hfCWokS88Q5+eeaqUARn+3IxKp sg6XFszzwV7C1arZopMUm3ZR2BIzXyosnUpBWDdyw5ZNOmyDPQUX6FED/+h3dvEpjVND 3keQPM9ONzaZsN7N4zPBO/1k5TeFzrom2GGap1okH+enf5aqjzPXshumnxcMNfY+fyKs bkvFJZSejlIO/t+BGkDFsHjHExV8ntt7OB1pHD+lkNRkIjjYtyMWN/CwYtbGTAZ66nfM F4NciT9joqA0aHYNxCnr9nod+tcPG4J6DCWM3mRNvKeh0vXgaP9kiD468jO6FE4e84Nw VFhw== 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; bh=G35OJz6sjhkbUbQl7PzvWn/reajdAg+kBApbnx/fYHU=; b=BbZrR20i64QiAZ7n/toY6Ltydm1TNnrFlx20BYrv42+hBOKivH0ElDfzqnbAW3EFzQ Xe66JCUK4N9H9eJZbCNHA0SAl7VPXjjLxSSfNAwwA4Zu/o4AWZTrOUsR0PBBhjw1vPj/ GHJpje0uLBgl+cSxVtuVUOuKo5Cic412BzDSa2D9TG2BGJdC+wT+PNdR6WlBklQgNByZ lDVNVZhDCh7/cJCD14nfwl6E8fxAtO5MXmc3ELlX84tV0uKPoWcIPYMiP2LhKxToTtaw DpMHY75w3zeYjktVl0dNxRAAuDQR59ZWupF7xq+mwGW3LolOBqVrzMQni1wT4vNRzEl1 lDEw== 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 s62si1637516pjc.75.2019.06.19.08.49.08; Wed, 19 Jun 2019 08:49:24 -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 S1729838AbfFSPrJ (ORCPT + 99 others); Wed, 19 Jun 2019 11:47:09 -0400 Received: from mail-io1-f71.google.com ([209.85.166.71]:39315 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbfFSPrI (ORCPT ); Wed, 19 Jun 2019 11:47:08 -0400 Received: by mail-io1-f71.google.com with SMTP id y13so21734243iol.6 for ; Wed, 19 Jun 2019 08:47:08 -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=G35OJz6sjhkbUbQl7PzvWn/reajdAg+kBApbnx/fYHU=; b=Im5gMMyNW7J27UpuoCnDYKuagZ2HhuGAmzrywk8oSW9gSG/FXORK83vfII3zvp2BpV kdYaY1GXgesSb+2BLvxCQymE0ouPAixqZRTTRa/oTR7O/EpmN6Fq4GBRcYbaspKGfJff DCtkNVGbIdXtqT1oqppx5yeC1oWs9Mch8wDRW3/0e1UkirkOjKftPpcM7No72fWKgIQB Lx+u2hY6tNpBs6bmNSvaQiDK6v4YajcJ0ewC4pqkTHJAFpJB2q/euCkfvAQg4dhkG1Kx syBfeR08veRPcO/0K6+XnzQUizIoD4HDtQk2y6ISMelHEDjfcvGrjanv9JqljZ6I4l0f 9Qow== X-Gm-Message-State: APjAAAX2VUmrs0um4UcLQIEJOAxFEdFuk4kvaczI/WNG7TC67FtkYH4i +R0C08JDX2jcfhvDUW5B/AiuSAfeDXRX5QYZBhPfKlPDZmpq MIME-Version: 1.0 X-Received: by 2002:a5e:890f:: with SMTP id k15mr5521851ioj.121.1560959227647; Wed, 19 Jun 2019 08:47:07 -0700 (PDT) Date: Wed, 19 Jun 2019 08:47:07 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000045db72058baf24f7@google.com> Subject: KMSAN: uninit-value in tipc_nl_compat_bearer_disable From: syzbot To: davem@davemloft.net, glider@google.com, 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: f75e4cfe kmsan: use kmsan_handle_urb() in urb.c git tree: kmsan console output: https://syzkaller.appspot.com/x/log.txt?x=13d0a6fea00000 kernel config: https://syzkaller.appspot.com/x/.config?x=602468164ccdc30a dashboard link: https://syzkaller.appspot.com/bug?extid=30eaa8bf392f7fafffaf compiler: clang version 9.0.0 (/home/glider/llvm/clang 06d00afa61eef8f7f501ebdb4e8612ea43ec2d78) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b4a95aa00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=162fc761a00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+30eaa8bf392f7fafffaf@syzkaller.appspotmail.com IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready 8021q: adding VLAN 0 to HW filter on device batadv0 ================================================================== BUG: KMSAN: uninit-value in memchr+0xce/0x110 lib/string.c:981 CPU: 0 PID: 12554 Comm: syz-executor731 Not tainted 5.1.0+ #1 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+0x130/0x2a0 mm/kmsan/kmsan.c:622 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:310 memchr+0xce/0x110 lib/string.c:981 string_is_valid net/tipc/netlink_compat.c:176 [inline] tipc_nl_compat_bearer_disable+0x2a1/0x480 net/tipc/netlink_compat.c:449 __tipc_nl_compat_doit net/tipc/netlink_compat.c:327 [inline] tipc_nl_compat_doit+0x3ac/0xb00 net/tipc/netlink_compat.c:360 tipc_nl_compat_handle net/tipc/netlink_compat.c:1178 [inline] tipc_nl_compat_recv+0x1b1b/0x27b0 net/tipc/netlink_compat.c:1281 genl_family_rcv_msg net/netlink/genetlink.c:602 [inline] genl_rcv_msg+0x185a/0x1a40 net/netlink/genetlink.c:627 netlink_rcv_skb+0x431/0x620 net/netlink/af_netlink.c:2486 genl_rcv+0x63/0x80 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0xf3e/0x1020 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x127e/0x12f0 net/netlink/af_netlink.c:1926 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:661 [inline] ___sys_sendmsg+0xcc6/0x1200 net/socket.c:2260 __sys_sendmsg net/socket.c:2298 [inline] __do_sys_sendmsg net/socket.c:2307 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2305 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2305 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x442639 Code: 41 02 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 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 fb 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00000000007efea8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000442639 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00000000007eff00 R08: 0000000000000003 R09: 0000000000000003 R10: 00000000bb1414ac R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000403c50 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:208 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:162 kmsan_kmalloc+0xa4/0x130 mm/kmsan/kmsan_hooks.c:175 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:184 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2771 [inline] __kmalloc_node_track_caller+0xcba/0xf30 mm/slub.c:4399 __kmalloc_reserve net/core/skbuff.c:140 [inline] __alloc_skb+0x306/0xa10 net/core/skbuff.c:208 alloc_skb include/linux/skbuff.h:1059 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1183 [inline] netlink_sendmsg+0xb81/0x12f0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:661 [inline] ___sys_sendmsg+0xcc6/0x1200 net/socket.c:2260 __sys_sendmsg net/socket.c:2298 [inline] __do_sys_sendmsg net/socket.c:2307 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2305 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2305 do_syscall_64+0xbc/0xf0 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. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches