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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 A1E0FC432C0 for ; Fri, 22 Nov 2019 15:35:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D01D20715 for ; Fri, 22 Nov 2019 15:35:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727051AbfKVPfQ (ORCPT ); Fri, 22 Nov 2019 10:35:16 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:59376 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726633AbfKVPfP (ORCPT ); Fri, 22 Nov 2019 10:35:15 -0500 Received: (qmail 2808 invoked by uid 2102); 22 Nov 2019 10:35:14 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 22 Nov 2019 10:35:14 -0500 Date: Fri, 22 Nov 2019 10:35:14 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: syzbot cc: andreyknvl@google.com, , , , , , , Subject: Re: KASAN: use-after-free Read in si470x_int_in_callback (2) In-Reply-To: <0000000000002d684a0597ecf0b5@google.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Nov 2019, syzbot wrote: > Hello, > > syzbot has tested the proposed patch but the reproducer still triggered > crash: > INFO: rcu detected stall in dummy_timer > > radio-si470x 1-1:0.0: non-zero urb status (-71) > radio-si470x 4-1:0.0: non-zero urb status (-71) > radio-si470x 3-1:0.0: non-zero urb status (-71) Oliver: The reason for this stall is because the driver goes into a tight resubmit loop when the interrupt URB completes with an unrecognized error status. Instead, the driver should log an error message and avoid resubmitting. Error recovery can be done at a higher level. In other words, change the goto resubmit; /* Maybe we can recover. */ line in the completion handler into a return. Alan Stern