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=-5.4 required=3.0 tests=FROM_LOCAL_DIGITS, 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 B9E23C43331 for ; Fri, 27 Mar 2020 13:30:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96E0C206F2 for ; Fri, 27 Mar 2020 13:30:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727702AbgC0NaX (ORCPT ); Fri, 27 Mar 2020 09:30:23 -0400 Received: from mail-il1-f198.google.com ([209.85.166.198]:52091 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727423AbgC0NaP (ORCPT ); Fri, 27 Mar 2020 09:30:15 -0400 Received: by mail-il1-f198.google.com with SMTP id j12so8814368ilf.18 for ; Fri, 27 Mar 2020 06:30:15 -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=HweTU5jj17xC6BlpXQyem62ObeI/pFALQMnTvUhCql4=; b=Glcwy/ARkSk9pEFwfQmDFoZTwZTTFo0pqZ32Jtjj5/jgqOVLAvwHN/VUaXHT3KuJkU zwcCWOCOOC78NkGDnwfH3MUS6Rzmvb9IXNQ1uJtgsgMQrMRcEN/QE8aq0fCQKraHX3D6 MfgbJZSRlXCyhjKikuQK2Kkk/i8KZR6EkmXLyu42slALfJZGJUYU0WA/yj07hjhfAl2s UcKbVPtq1Pkt4EAPXfdPMiHWRz+Gsuc4eAFASeGLbwhivmrJjmmjD9H2RaoisXvESYA7 7B9ceeh/Y2ZzeoWr1UzNLIKJ+8Qn3iHeYo/j/ehiFij5bw6CiYQfgwbTwNMM1A5R4AIs 5P0w== X-Gm-Message-State: ANhLgQ21MotOj/Yusq59RW2Y+/K1plbuJYA/I1HRmAU+OGWtIsadB10y QkE0nzh8vZFCP3lGLZAB4k4EsXEG0WFBN1b9nIX//Jo4XGQJ X-Google-Smtp-Source: ADFU+vvJsJfct4TOYF0rsn4TG7dIp3UoAiUjSETSMIFbPyzhwwX/OW1NnqSw1DEFL3ukg0pGEpIAIM41ykLMvtPXAdnRAyTgXYnT MIME-Version: 1.0 X-Received: by 2002:a92:8f81:: with SMTP id r1mr13736124ilk.51.1585315814830; Fri, 27 Mar 2020 06:30:14 -0700 (PDT) Date: Fri, 27 Mar 2020 06:30:14 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000000002fc05a1d61a68@google.com> Subject: KASAN: use-after-free Read in ath9k_wmi_ctrl_rx From: syzbot To: andreyknvl@google.com, ath9k-devel@qca.qualcomm.com, davem@davemloft.net, kvalo@codeaurora.org, linux-kernel@vger.kernel.org, linux-usb@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-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: e17994d1 usb: core: kcov: collect coverage from usb comple.. git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=1253c9d5e00000 kernel config: https://syzkaller.appspot.com/x/.config?x=5d64370c438bc60 dashboard link: https://syzkaller.appspot.com/bug?extid=5d338854440137ea0fef compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17fd135be00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16436be5e00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+5d338854440137ea0fef@syzkaller.appspotmail.com ================================================================== BUG: KASAN: use-after-free in ath9k_wmi_ctrl_rx+0x416/0x500 drivers/net/wireless/ath/ath9k/wmi.c:215 Read of size 1 at addr ffff8881cef1417c by task swapper/1/0 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.6.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+0xef/0x16e lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x314 mm/kasan/report.c:374 __kasan_report.cold+0x37/0x77 mm/kasan/report.c:506 kasan_report+0xe/0x20 mm/kasan/common.c:641 ath9k_wmi_ctrl_rx+0x416/0x500 drivers/net/wireless/ath/ath9k/wmi.c:215 ath9k_htc_rx_msg+0x2da/0xaf0 drivers/net/wireless/ath/ath9k/htc_hst.c:459 ath9k_hif_usb_reg_in_cb+0x1ba/0x630 drivers/net/wireless/ath/ath9k/hif_usb.c:718 __usb_hcd_giveback_urb+0x29a/0x550 drivers/usb/core/hcd.c:1650 usb_hcd_giveback_urb+0x368/0x420 drivers/usb/core/hcd.c:1716 dummy_timer+0x1258/0x32ae drivers/usb/gadget/udc/dummy_hcd.c:1966 call_timer_fn+0x195/0x6f0 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x5f9/0x1500 kernel/time/timer.c:1786 --- 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