Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp548962ybc; Tue, 19 Nov 2019 05:38:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwgXmKVR4txq41cXLmiPO1HO1Y6l07SUUOxPcGZc+2iKroke2v8mYXIKtwXy9mtXuqTMNIO X-Received: by 2002:a5d:44d2:: with SMTP id z18mr23309013wrr.209.1574170691205; Tue, 19 Nov 2019 05:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574170691; cv=none; d=google.com; s=arc-20160816; b=VZJyxCTXD09adNQd0UsAkklsBIVMoReAQK/bW0rP6hgmY0TS2v/nnNW2Hz1Q5ZzIFS S7W1e+EOzbbCwtgsGdIsDJoe9jF7B4FzF3jp4HAR31v+qGMzkPlYkaJy9MKI8LVozPPG VXJpeb0b+0aEmgUGo3Nj2joZoZi4tYAX9b7Gp1/XY5/lpx+hDG2R4bokypTuZTo116H/ 3f5RYGPh4bHSqcP3TDtv2csA/v+CXk6crNrLpk13fhzq2hH39ei5j6yB7vEVJPsUj3S1 3UpduyjWBhK/Y6tNwyZOjYjXEner+HIKUyxgYgTX8yBCWKQtnQIJ82f+U/UA83pGOn31 1HYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id; bh=ZCYno+gQqgaAfV4ee/dWdilbtDJckVfbxXqDkksomZo=; b=f1PhJAWqm/cH3md/erYYmnZQFksAVJoMWt+sPi9Bm1iI0JFr285jviJasduE68oCXa UIzG/B8iwsz23w708ZHTG8bB2BYKw6gBbgmJYL++WYJyNv/Z0g6xTeU8SggE/5ZeblUA AHWDJ/SuXrPKdL2a92N9+JmY3UU9267zhT96YiZT7/6ppGhvdUwtDWXF32FTVbWaS5ss MGYmDqdBltU4S/X0b53/aIHuwxkTCW7hJg6TYP668/5esYljRuDnYQM2n1NCuhqbdylg DAGMPKOxYCE7lyQ4KPgIOkh+fgsY1l7eteO4uiF6hmqylpuhrv2S+px+EZ28FBfFSXeP 95nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y40si14350400edd.383.2019.11.19.05.37.44; Tue, 19 Nov 2019 05:38:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727955AbfKSNf7 (ORCPT + 99 others); Tue, 19 Nov 2019 08:35:59 -0500 Received: from mx2.suse.de ([195.135.220.15]:47754 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbfKSNf7 (ORCPT ); Tue, 19 Nov 2019 08:35:59 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 35F11B1D3; Tue, 19 Nov 2019 13:35:57 +0000 (UTC) Message-ID: <1574170553.28617.10.camel@suse.com> Subject: Re: WARNING in ath6kl_htc_pipe_rx_complete From: Oliver Neukum To: syzbot , andreyknvl@google.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 Date: Tue, 19 Nov 2019 14:35:53 +0100 In-Reply-To: <0000000000008123610596c36579@google.com> References: <0000000000008123610596c36579@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Am Donnerstag, den 07.11.2019, 07:34 -0800 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit: d60bbfea usb: raw: add raw-gadget interface > git tree: https://github.com/google/kasan.git usb-fuzzer > console output: https://syzkaller.appspot.com/x/log.txt?x=1029829ae00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=79de80330003b5f7 > dashboard link: https://syzkaller.appspot.com/bug?extid=555908813b2ea35dae9a > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1388a2aae00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13aa35dce00000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+555908813b2ea35dae9a@syzkaller.appspotmail.com #syz test: https://github.com/google/kasan.git d60bbfea From d289a4973b869117a5a7f70297b0cecffceb8289 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Mon, 18 Nov 2019 19:23:25 +0100 Subject: [PATCH] ath6kl: reduce WARN to dev_dbg() in callback The warn is triggered on a known race condition that is correctly handled. Using WARN() hinders automated testing. Reducing severity. Signed-off-by: Oliver Neukum --- drivers/net/wireless/ath/ath6kl/htc_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath6kl/htc_pipe.c b/drivers/net/wireless/ath/ath6kl/htc_pipe.c index c68848819a52..9b88d96bfe96 100644 --- a/drivers/net/wireless/ath/ath6kl/htc_pipe.c +++ b/drivers/net/wireless/ath/ath6kl/htc_pipe.c @@ -960,8 +960,8 @@ static int ath6kl_htc_pipe_rx_complete(struct ath6kl *ar, struct sk_buff *skb, * Thus the possibility of ar->htc_target being NULL * via ath6kl_recv_complete -> ath6kl_usb_io_comp_work. */ - if (WARN_ON_ONCE(!target)) { - ath6kl_err("Target not yet initialized\n"); + if (!target) { + ath6kl_dbg(ATH6KL_DBG_HTC, "Target not yet initialized\n"); status = -EINVAL; goto free_skb; } -- 2.16.4