Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2853426ybc; Mon, 18 Nov 2019 05:47:37 -0800 (PST) X-Google-Smtp-Source: APXvYqySnX7bPJkc7NuXZdNdPJtfe7Slm4mIaZvAgzMWWUJ514r0cRFny90fFkGMsI0iS6MJa3vt X-Received: by 2002:a17:906:3393:: with SMTP id v19mr27663101eja.117.1574084857665; Mon, 18 Nov 2019 05:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574084857; cv=none; d=google.com; s=arc-20160816; b=Vs3oMACC0vD2Ry5kxEE6qRFminNxP6nvHhJK718xc2AXz+KIT63HotDIP6P5/BWijw A8xubAFaa8K/MpfGiPuy2z8egR1aBvC1Hm6f6sIRnt0FsqPLXRIrKjQUGf95Gjz1gfj0 DCYF50v10Eug2y5KsUopL/ab+8bOA9lppiObnXtLBv2LO84RHZuRSsV5m42nGf/BaNyo 82oNK7S6G4R3cLpicv7rIVRERrQlqrF+r5AZ+wKmolTPflByuX2Hgp6coeIsHLhZmPXH aCvHjtmnRHjCd64H+fg+ENX83ID5H897AjRqUiUzl5CWFXHX7atwg1lMziekUl4jx9Qw ApGg== 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=PZM3YZYHJas6qUqMWLBf78D9ijTcCQ6zD0WZYFS6K0k=; b=kEcUW15UZsupkg2jKO0ybdxJYjQ0HbVNXten4Y1/HhuufgTWqXI7zpPoyNOICStr77 vl3y1FtTrA4cOQnMnxeglw3jIEHv2KWVQcz0Isl0WDgGuclmXJxtqtiOlhVKPaXlNFt0 VqBalBYu8vxIaM3NCzbcsM5/ZMrz0nnOPfdd1nZkjm8u6xcATnPHpWlHxCgweCE/I6xA v2gq7LtbWfObPrigneBynImNCrYM2u+FK1n4bGty5M/IyQC24SdIKXFSQBYKwimGYjVF YPAgt8sgECDRlcJR9bH7kKjcieAidll1K+WaHWCjcFipf0Krl2G4s/LEdTa3qGHtEJGQ R8uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 a18si11751379ejj.100.2019.11.18.05.47.11; Mon, 18 Nov 2019 05:47:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727092AbfKRNoe (ORCPT + 99 others); Mon, 18 Nov 2019 08:44:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:42934 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726490AbfKRNoe (ORCPT ); Mon, 18 Nov 2019 08:44:34 -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 2F90BABCD; Mon, 18 Nov 2019 13:44:32 +0000 (UTC) Message-ID: <1574084670.2698.7.camel@suse.com> Subject: Re: KASAN: use-after-free Read in si470x_int_in_callback (2) From: Oliver Neukum To: syzbot , andreyknvl@google.com, hverkuil@xs4all.nl, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-usb@vger.kernel.org, mchehab@kernel.org, syzkaller-bugs@googlegroups.com Date: Mon, 18 Nov 2019 14:44:30 +0100 In-Reply-To: <000000000000f47f0b0595307ddc@google.com> References: <000000000000f47f0b0595307ddc@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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, den 18.10.2019, 07:53 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit: 22be26f7 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output: https://syzkaller.appspot.com/x/log.txt?x=102b65cf600000 > kernel config: https://syzkaller.appspot.com/x/.config?x=387eccb7ac68ec5 > dashboard link: https://syzkaller.appspot.com/bug?extid=9ca7a12fd736d93e0232 > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=143b9060e00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15d3b94b600000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+9ca7a12fd736d93e0232@syzkaller.appspotmail.com #syz test: https://github.com/google/kasan.git 22be26f7 From e7c30d32a1d9b3589c31593ce18b8df45989a27c Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Mon, 18 Nov 2019 14:41:51 +0100 Subject: [PATCH] si470x: prevent resubmission Poison the URB in case probe fails to remove any chance of a resubmission from the callback. Signed-off-by: Oliver Neukum --- drivers/media/radio/si470x/radio-si470x-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/radio/si470x/radio-si470x-usb.c b/drivers/media/radio/si470x/radio-si470x-usb.c index fedff68d8c49..b6e25d5c7c53 100644 --- a/drivers/media/radio/si470x/radio-si470x-usb.c +++ b/drivers/media/radio/si470x/radio-si470x-usb.c @@ -749,7 +749,7 @@ static int si470x_usb_driver_probe(struct usb_interface *intf, return 0; err_all: - usb_kill_urb(radio->int_in_urb); + usb_poison_urb(radio->int_in_urb); err_buf: kfree(radio->buffer); err_ctrl: -- 2.16.4