From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B2C4C433E3 for ; Tue, 14 Jul 2020 16:27:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20322223AB for ; Tue, 14 Jul 2020 16:27:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728066AbgGNQ1V (ORCPT ); Tue, 14 Jul 2020 12:27:21 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:49560 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbgGNQ1U (ORCPT ); Tue, 14 Jul 2020 12:27:20 -0400 Received: by mail-io1-f70.google.com with SMTP id l7so7141986ioq.16 for ; Tue, 14 Jul 2020 09:27:19 -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=dstuODflYqtTFdHo+dQOhggl9goZdZNOBX1EB0MG4zo=; b=S/Sv3A2v7EFMBgqjI77n5zSNaNYae8IZCs+KpfW5utOmoaHaru4NdKXNvPq+QhiWxx 9jS/mBJjdFJTji+RpCZpL/+7vMxkiV6QTLn6g20gk8H8wfBR8q5Dvm4sH1we4Aq4eYtB s6lQOIoJnwvqJ+n4brTHMHUECTc2lo61QIVYPMqY6E5EQvNgZCc4KdDyVbM1H2JSGfOu HCvem6H8DSo57jFCQS/MgBQJh011MURSEhJZqPYVfRJ7I6+Hn45LLi2SHhVhRCMUtFP+ 4P3t1xjGiUowa/D1yTm4pra4Oeuo8nzJSMP8DGwKiM4UUGCBuMmJ0lQSo9S/V78k1RfQ KhDg== X-Gm-Message-State: AOAM532kRbGWtPZy6NJvsToiBHx/Df7tRcfj6XYHLx608BG5DgTB2Bdh 2GGfCpVL3/R6a6dSqrO3L+5jlVKsS5jxZBYuurXFHHYOKKAC X-Google-Smtp-Source: ABdhPJys5dUu3H+Pdy9gh29PNlGaMJv4rZM79Lpm6uhoiwhdQ7kYMr+ucdAkbvMgmvwvfa0jOydNz2B26Qil20fWpZx2801XLaGo MIME-Version: 1.0 X-Received: by 2002:a6b:3985:: with SMTP id g127mr5559995ioa.107.1594744039070; Tue, 14 Jul 2020 09:27:19 -0700 (PDT) Date: Tue, 14 Jul 2020 09:27:19 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f4e3be05aa694729@google.com> Subject: KMSAN: uninit-value in batadv_tt_hash_find From: syzbot To: a@unstable.cc, b.a.t.m.a.n@lists.open-mesh.org, davem@davemloft.net, glider@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, mareklindner@neomailbox.ch, netdev@vger.kernel.org, sven@narfation.org, sw@simonwunderlich.de, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: f0d5ec90 kmsan: apply __no_sanitize_memory to dotraplinkag.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=10c0883b100000 kernel config: https://syzkaller.appspot.com/x/.config?x=86e4f8af239686c6 dashboard link: https://syzkaller.appspot.com/bug?extid=ab16e463b903f5a37036 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) userspace arch: i386 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+ab16e463b903f5a37036@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in __read_once_size include/linux/compiler.h:206 [inline] BUG: KMSAN: uninit-value in batadv_tt_hash_find+0x38a/0x810 net/batman-adv/translation-table.c:144 CPU: 0 PID: 23320 Comm: syz-executor.5 Not tainted 5.7.0-rc4-syzkaller #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+0x1c9/0x220 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 __read_once_size include/linux/compiler.h:206 [inline] batadv_tt_hash_find+0x38a/0x810 net/batman-adv/translation-table.c:144 batadv_tt_global_hash_find net/batman-adv/translation-table.c:203 [inline] batadv_transtable_search+0x292/0xa00 net/batman-adv/translation-table.c:2618 batadv_send_skb_via_tt_generic+0x181/0x290 net/batman-adv/send.c:423 batadv_send_skb_via_tt net/batman-adv/send.h:82 [inline] batadv_interface_tx+0x1b3d/0x2450 net/batman-adv/soft-interface.c:378 __netdev_start_xmit include/linux/netdevice.h:4533 [inline] netdev_start_xmit include/linux/netdevice.h:4547 [inline] xmit_one net/core/dev.c:3477 [inline] dev_hard_start_xmit+0x531/0xab0 net/core/dev.c:3493 __dev_queue_xmit+0x2f8d/0x3b20 net/core/dev.c:4052 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4085 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0x20fd/0x2610 net/ipv4/ip_output.c:228 ip_do_fragment+0x2c98/0x3570 net/ipv4/ip_output.c:849 ip_fragment+0x242/0x400 net/ipv4/ip_output.c:585 __ip_finish_output+0xd34/0xd80 net/ipv4/ip_output.c:304 ip_finish_output+0x166/0x410 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_mc_output+0xfbf/0x1090 net/ipv4/ip_output.c:415 dst_output include/net/dst.h:435 [inline] ip_local_out net/ipv4/ip_output.c:125 [inline] ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1560 udp_send_skb+0x1046/0x18b0 net/ipv4/udp.c:891 udp_sendmsg+0x3bb5/0x4100 net/ipv4/udp.c:1178 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x1056/0x1350 net/socket.c:2362 ___sys_sendmsg net/socket.c:2416 [inline] __sys_sendmmsg+0x863/0xd60 net/socket.c:2499 __compat_sys_sendmmsg net/compat.c:672 [inline] __do_compat_sys_sendmmsg net/compat.c:679 [inline] __se_compat_sys_sendmmsg+0xcd/0xf0 net/compat.c:676 __ia32_compat_sys_sendmmsg+0x56/0x70 net/compat.c:676 do_syscall_32_irqs_on arch/x86/entry/common.c:339 [inline] do_fast_syscall_32+0x3bf/0x6d0 arch/x86/entry/common.c:398 entry_SYSENTER_compat+0x68/0x77 arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f3add9 Code: 90 e8 0b 00 00 00 f3 90 0f ae e8 eb f9 8d 74 26 00 89 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5d140cc EFLAGS: 00000296 ORIG_RAX: 0000000000000159 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020007f80 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165 ether_addr_copy include/linux/etherdevice.h:279 [inline] batadv_tt_hash_find+0x333/0x810 net/batman-adv/translation-table.c:137 batadv_tt_global_hash_find net/batman-adv/translation-table.c:203 [inline] batadv_transtable_search+0x292/0xa00 net/batman-adv/translation-table.c:2618 batadv_send_skb_via_tt_generic+0x181/0x290 net/batman-adv/send.c:423 batadv_send_skb_via_tt net/batman-adv/send.h:82 [inline] batadv_interface_tx+0x1b3d/0x2450 net/batman-adv/soft-interface.c:378 __netdev_start_xmit include/linux/netdevice.h:4533 [inline] netdev_start_xmit include/linux/netdevice.h:4547 [inline] xmit_one net/core/dev.c:3477 [inline] dev_hard_start_xmit+0x531/0xab0 net/core/dev.c:3493 __dev_queue_xmit+0x2f8d/0x3b20 net/core/dev.c:4052 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4085 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0x20fd/0x2610 net/ipv4/ip_output.c:228 ip_do_fragment+0x2c98/0x3570 net/ipv4/ip_output.c:849 ip_fragment+0x242/0x400 net/ipv4/ip_output.c:585 __ip_finish_output+0xd34/0xd80 net/ipv4/ip_output.c:304 ip_finish_output+0x166/0x410 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_mc_output+0xfbf/0x1090 net/ipv4/ip_output.c:415 dst_output include/net/dst.h:435 [inline] ip_local_out net/ipv4/ip_output.c:125 [inline] ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1560 udp_send_skb+0x1046/0x18b0 net/ipv4/udp.c:891 udp_sendmsg+0x3bb5/0x4100 net/ipv4/udp.c:1178 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x1056/0x1350 net/socket.c:2362 ___sys_sendmsg net/socket.c:2416 [inline] __sys_sendmmsg+0x863/0xd60 net/socket.c:2499 __compat_sys_sendmmsg net/compat.c:672 [inline] __do_compat_sys_sendmmsg net/compat.c:679 [inline] __se_compat_sys_sendmmsg+0xcd/0xf0 net/compat.c:676 __ia32_compat_sys_sendmmsg+0x56/0x70 net/compat.c:676 do_syscall_32_irqs_on arch/x86/entry/common.c:339 [inline] do_fast_syscall_32+0x3bf/0x6d0 arch/x86/entry/common.c:398 entry_SYSENTER_compat+0x68/0x77 arch/x86/entry/entry_64_compat.S:139 Local variable ----chaddr@batadv_interface_tx created at: batadv_interface_tx+0x66/0x2450 net/batman-adv/soft-interface.c:191 batadv_interface_tx+0x66/0x2450 net/batman-adv/soft-interface.c:191 ===================================================== --- 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.