Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2811569ybt; Mon, 22 Jun 2020 07:37:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY349rXJ3zZf2KNNsT3nui3d3s/7YS8maF3GNDNu+/9FdsnCpSvpPyZe3Ld9q+yD8PSiOC X-Received: by 2002:a50:fe94:: with SMTP id d20mr16727211edt.254.1592836668750; Mon, 22 Jun 2020 07:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592836668; cv=none; d=google.com; s=arc-20160816; b=Adt01jErf6Ga4ICOjydlW5dVm0TgSqvYPJq6KjI32QN+PKzzOWRWn1vmrzcPgx8M7T 78Ll8aI/KoZdndsoR64TH+m7ItlC05sb7rzprmRmn2PZL95nkazgutm8otz+iKqSq8Uw YE656cab8uKgG3j221nNcZeKFGV0L6nAGwp6ZXR+3Po3xBX4exk6x1Go2+sEJkZZzNVE w1Z5tcSY+yBIogxkTxMLuqmwhW3v5CTJ7e03ssNrlEQM5M3lT+129gMkDzioRJ14TfSF dIbB1kXc9Y+rPqRfsdlcRBlw4wl1dv8PkD2rB3kbzfQrEipyBdXS87Xi5tKSxsv0TYNf 4Unw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=JSt09Fbrzf0H+Eep97NqWj/jsb72fCfRDnOyEo7TatI=; b=HDHgh9l0Ppy/0IAu5Zi6VsuwCj7FVVXIzS95GTddXbn+K68WhKIXusRUPxG2LofPw4 fveLlNMGth38oYO8PdfsTLQTbepwBqvLyrBYF7LujfsVMNNDeBJKNWKo8j9UqjMD1VvB Zv3Sns/n76yYpgRAoBjdaGbJ3RH6lVVa3glYOUyibZ15Oa9RsfCpPMZL1T+EqMgfskMf z9+vlYLYaoacm+AcCj1yQV/Ed55G0DvXYSJ8dAKSZXF7Et0SZnd+o5BRrzqIwKBbWVaW ZKF0PfjRYSRw/ScY07dpoNnBMZQB0kVOCWPYfwtYG3Y2ZnHRaA9ipMzw6FOcUXOy6Ngd WUbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YqBN6UfV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw28si8690246edb.23.2020.06.22.07.37.25; Mon, 22 Jun 2020 07:37:48 -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; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=YqBN6UfV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729317AbgFVOgu (ORCPT + 99 others); Mon, 22 Jun 2020 10:36:50 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:55320 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729308AbgFVOgt (ORCPT ); Mon, 22 Jun 2020 10:36:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592836609; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=JSt09Fbrzf0H+Eep97NqWj/jsb72fCfRDnOyEo7TatI=; b=YqBN6UfVf79fddUt8mb1hXxQTZlUTrkuRDZvF707TVzqE8vBIy2dQu3bbQAv+2IWBeWC0dYN yvHnUPAPKbOVkA5q4BvDhoZAjJTKQBV380PZOefxWhCSYgtzO89TRBxu1WjdlNYcB8bUUT4R o2XVpXJ+k6MORgmKVGKM+JR1CIg= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-east-1.postgun.com with SMTP id 5ef0c1ffa3d8a4474323a508 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 22 Jun 2020 14:36:47 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 85EF2C433CB; Mon, 22 Jun 2020 14:36:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7E361C433CA; Mon, 22 Jun 2020 14:36:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7E361C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Roman Mamedov Cc: Qiujun Huang , ath9k-devel@qca.qualcomm.com, davem@davemloft.net, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, anenbupt@gmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [BISECTED REGRESSION] ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb References: <20200404041838.10426-1-hqjagain@gmail.com> <20200404041838.10426-6-hqjagain@gmail.com> <20200621020428.6417d6fb@natsu> Date: Mon, 22 Jun 2020 17:36:41 +0300 In-Reply-To: <20200621020428.6417d6fb@natsu> (Roman Mamedov's message of "Sun, 21 Jun 2020 02:04:28 +0500") Message-ID: <87lfkff9qe.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Roman Mamedov writes: > On Sat, 4 Apr 2020 12:18:38 +0800 > Qiujun Huang wrote: > >> In ath9k_hif_usb_rx_cb interface number is assumed to be 0. >> usb_ifnum_to_if(urb->dev, 0) >> But it isn't always true. >> >> The case reported by syzbot: >> https://lore.kernel.org/linux-usb/000000000000666c9c05a1c05d12@google.com >> usb 2-1: new high-speed USB device number 2 using dummy_hcd >> usb 2-1: config 1 has an invalid interface number: 2 but max is 0 >> usb 2-1: config 1 has no interface number 0 >> usb 2-1: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= >> 1.08 >> usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 >> general protection fault, probably for non-canonical address >> 0xdffffc0000000015: 0000 [#1] SMP KASAN >> KASAN: null-ptr-deref in range [0x00000000000000a8-0x00000000000000af] >> CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.6.0-rc5-syzkaller #0 >> >> Call Trace >> __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 >> __do_softirq+0x21e/0x950 kernel/softirq.c:292 >> invoke_softirq kernel/softirq.c:373 [inline] >> irq_exit+0x178/0x1a0 kernel/softirq.c:413 >> exiting_irq arch/x86/include/asm/apic.h:546 [inline] >> smp_apic_timer_interrupt+0x141/0x540 arch/x86/kernel/apic/apic.c:1146 >> apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 >> >> Reported-and-tested-by: syzbot+40d5d2e8a4680952f042@syzkaller.appspotmail.com >> Signed-off-by: Qiujun Huang > > This causes complete breakage of ath9k operation across all the stable kernel > series it got backported to, and I guess the mainline as well. Please see: > https://bugzilla.kernel.org/show_bug.cgi?id=208251 > https://bugzilla.redhat.com/show_bug.cgi?id=1848631 So there's no fix for this? I was under impression that someone fixed this, but maybe I'm mixing with something else. If this is not fixed can someone please submit a patch to revert the offending commit (or commits) so that we get ath9k working again? -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches