Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1011983pxa; Wed, 12 Aug 2020 20:33:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbGgyXTB/eNBSlIloKIL4Squ6ykMMGXPpcR9ByDiTDfvPv1jvpFwO3wFZQAeEfNI2WDWD1 X-Received: by 2002:aa7:c697:: with SMTP id n23mr2811915edq.50.1597289580610; Wed, 12 Aug 2020 20:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597289580; cv=none; d=google.com; s=arc-20160816; b=y7nzIDqbiLVn/zeLpbaCXRCZzy/a3OZnJ961APIrOdikVcM7tOd8h0sbE0Z7dgXBOJ v6qiZWoAIesmmKEHQCYrcvpKw7uGCxLgq+7omBjeyyZSeBlf863Vtb5xoe+Ha1pOvR55 K2ZeAaG4Z1QxJfxPLRl/1W7HvfShVLG2TaX+j2XTF+LHZErkSZoSN3+DZ1T6COspkfx9 I1+BB/PFYdjlg3CqDjFealCNhPYKEFtoPrEwBmzrjqCuOvtLOjsn4cf8ipW+pywAPe/s LvlSsZZmKKhAChDCqP61xA/ZSp2cNvbrogwO1Q6rh/iIQPgWqDi79ftQgPUmj/rrnYZN tS5A== 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:in-reply-to :date:mime-version; bh=P9pLEB9Ie9BNOlGpHvN5myjm3ue4cem8ycZ60nuClrc=; b=VP06y1grn1avic7OhW9nttPDWa3pVyuTCdrS5zhqkkSCgGHIIq5CPbPtSfTSuimZbL QdxQL4PwRRBwzuWZjZihwG9uxdPmlwv+TcUI6uXbtE0r/0fpP1KqTNAznMQWRMfmh38u Bb2euq9Xqm8m5dumkwB/l7wENCiE6F6hwRPRcFyWPKRYe9lY601hK4dHFCmFY23Cx2ob SZA4lbR4oANiErlyFYGVfeTQjEqf6+eDqfNCDWR13Iq1ub1f2yZv9fK7pwUTtgLvLt2k Kme4egCyCHrP13OhgnedXH75AzauilSgK+nTeJk5pA+3gDjkUdxgkDQliGNGvQvrxu9U l4Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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. [23.128.96.18]) by mx.google.com with ESMTP id z22si2458373ejl.459.2020.08.12.20.32.23; Wed, 12 Aug 2020 20:33:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S1726583AbgHMDcT (ORCPT + 99 others); Wed, 12 Aug 2020 23:32:19 -0400 Received: from mail-il1-f197.google.com ([209.85.166.197]:45012 "EHLO mail-il1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbgHMDcS (ORCPT ); Wed, 12 Aug 2020 23:32:18 -0400 Received: by mail-il1-f197.google.com with SMTP id z15so3390572ile.11 for ; Wed, 12 Aug 2020 20:32:17 -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:in-reply-to:message-id:subject :from:to; bh=P9pLEB9Ie9BNOlGpHvN5myjm3ue4cem8ycZ60nuClrc=; b=abLOdYm1P6cCSbOU6DIHvt6gLLPhCkEnsAMXRswINA+q/ocjQQ7ZJIacZ+C0Bf0fM1 jcDzqf4a8p2aT5SuZWGBbeVnnN2DpojvNQ0kl9kDYnoF9thhMEHRnZ5SSwosMX4Yf77W cw3MDt91lByla9v474cjZ6YiY84iwQKZGsX4qjlXj5q0kRzApSPJ+x2hPC1ova6Lwyj5 xz63equmFhfiTYcuAnSaj0VDDDNf9cYo5DnyAro3aPawUhiG5djNBIojuMeG9jqMWcdx fn9VYsnd+7KVYa6Is+iDlRVXebEE1z9MW6ID57Xzx46ZYVn/trD8S/s0LMB71LzcLIwE IHkA== X-Gm-Message-State: AOAM533hZRmq2+w3qzEG6A5z38h0zD6Tmoygyi2mG3BXuLDUNVKn2fF0 hXELAdw6vVtjWBW9wUcewqaKLV4Lo3FCZpSnqjaOf7CUoqHr MIME-Version: 1.0 X-Received: by 2002:a05:6638:1125:: with SMTP id f5mr2803096jar.51.1597289536899; Wed, 12 Aug 2020 20:32:16 -0700 (PDT) Date: Wed, 12 Aug 2020 20:32:16 -0700 In-Reply-To: <000000000000c98a7f05ac744f53@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000734fe705acb9f3a2@google.com> Subject: Re: KMSAN: uninit-value in ath9k_htc_rx_msg From: syzbot To: ath9k-devel@qca.qualcomm.com, davem@davemloft.net, glider@google.com, kuba@kernel.org, kvalo@codeaurora.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: ce8056d1 wip: changed copy_from_user where instrumented git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=12985a16900000 kernel config: https://syzkaller.appspot.com/x/.config?x=3afe005fb99591f dashboard link: https://syzkaller.appspot.com/bug?extid=2ca247c2d60c7023de7f compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1468efe2900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10bb9fba900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2ca247c2d60c7023de7f@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in ath9k_htc_rx_msg+0x28f/0x1f50 drivers/net/wireless/ath/ath9k/htc_hst.c:410 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.8.0-rc5-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+0x21c/0x280 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 ath9k_htc_rx_msg+0x28f/0x1f50 drivers/net/wireless/ath/ath9k/htc_hst.c:410 ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:638 [inline] ath9k_hif_usb_rx_cb+0x1841/0x1d10 drivers/net/wireless/ath/ath9k/hif_usb.c:671 __usb_hcd_giveback_urb+0x687/0x870 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x1cb/0x730 drivers/usb/core/hcd.c:1716 dummy_timer+0xd98/0x71c0 drivers/usb/gadget/udc/dummy_hcd.c:1967 call_timer_fn+0x226/0x550 kernel/time/timer.c:1404 expire_timers+0x4fc/0x780 kernel/time/timer.c:1449 __run_timers+0xaf4/0xd30 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x2ea/0x7f5 kernel/softirq.c:293 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:23 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline] do_softirq_own_stack+0x7c/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:390 [inline] __irq_exit_rcu+0x226/0x270 kernel/softirq.c:420 irq_exit_rcu+0xe/0x10 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0x107/0x130 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:593 RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:49 [inline] RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:89 [inline] RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline] RIP: 0010:acpi_idle_do_entry drivers/acpi/processor_idle.c:525 [inline] RIP: 0010:acpi_idle_enter+0x817/0xeb0 drivers/acpi/processor_idle.c:651 Code: 85 db 74 0a f7 d3 44 21 fb 48 85 db 74 32 4d 85 ff 75 3a 48 8b 5d a0 e9 0c 00 00 00 e8 12 b2 78 fb 0f 00 2d 25 15 1c 0b fb f4 eb 5a 84 c0 8b 7d 90 0f 45 7d 94 e8 d8 9a f4 fb e9 74 fc ff ff RSP: 0018:ffff88812df93bc8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8881dfefce70 RCX: 000000012db88000 RDX: ffff88812df88000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88812df93ca0 R08: ffffffff86420acc R09: ffff88812fffa000 R10: 0000000000000002 R11: ffff88812df88000 R12: ffff88812df889d8 R13: ffff8881dfefcc64 R14: 0000000000000000 R15: 0000000000000000 cpuidle_enter_state+0x860/0x12b0 drivers/cpuidle/cpuidle.c:235 cpuidle_enter+0xe3/0x170 drivers/cpuidle/cpuidle.c:346 call_cpuidle kernel/sched/idle.c:126 [inline] cpuidle_idle_call kernel/sched/idle.c:214 [inline] do_idle+0x668/0x810 kernel/sched/idle.c:276 cpu_startup_entry+0x45/0x50 kernel/sched/idle.c:372 start_secondary+0x1bf/0x240 arch/x86/kernel/smpboot.c:268 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:144 kmsan_internal_alloc_meta_for_pages mm/kmsan/kmsan_shadow.c:269 [inline] kmsan_alloc_page+0xc5/0x1a0 mm/kmsan/kmsan_shadow.c:293 __alloc_pages_nodemask+0xdf0/0x1030 mm/page_alloc.c:4889 __alloc_pages include/linux/gfp.h:509 [inline] __alloc_pages_node include/linux/gfp.h:522 [inline] alloc_pages_node include/linux/gfp.h:536 [inline] __page_frag_cache_refill mm/page_alloc.c:4964 [inline] page_frag_alloc+0x35b/0x880 mm/page_alloc.c:4994 __netdev_alloc_skb+0x2a8/0xc90 net/core/skbuff.c:451 __dev_alloc_skb include/linux/skbuff.h:2813 [inline] ath9k_hif_usb_rx_stream drivers/net/wireless/ath/ath9k/hif_usb.c:620 [inline] ath9k_hif_usb_rx_cb+0xe5a/0x1d10 drivers/net/wireless/ath/ath9k/hif_usb.c:671 __usb_hcd_giveback_urb+0x687/0x870 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x1cb/0x730 drivers/usb/core/hcd.c:1716 dummy_timer+0xd98/0x71c0 drivers/usb/gadget/udc/dummy_hcd.c:1967 call_timer_fn+0x226/0x550 kernel/time/timer.c:1404 expire_timers+0x4fc/0x780 kernel/time/timer.c:1449 __run_timers+0xaf4/0xd30 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x2ea/0x7f5 kernel/softirq.c:293 =====================================================