Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp405428iog; Wed, 29 Jun 2022 02:41:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uL3jj5TMaaeDHQChnIOUYwGybodK2I/rXS4LiRcANpoM4tXR1fksvTlDMP88ex0p++vh/m X-Received: by 2002:a17:902:9f97:b0:16a:9b9:fb63 with SMTP id g23-20020a1709029f9700b0016a09b9fb63mr8494875plq.7.1656495701159; Wed, 29 Jun 2022 02:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656495701; cv=none; d=google.com; s=arc-20160816; b=mGeMXoMH4HipvbMkeBVrKIiKxsJl6d4EXkgSYBwAnLCdxiOrg3oeGvmMdPxhqPF8od CqY/atUPqaYqPcS5rkxNHHqxyf6B7z6GX4Vr2MH/I+VBzkgfN1TJS+YeEQxKNJBUWJaB EO6FjGWGBxJ7Wqk1wCZ3opJ0qAxQmOvGhcy9TXmZpK8TNSkgqJ+7q5QY5Y6LXaFwmbtZ EP+LTr4Px5D4PRVSk13QoLFnqcAw3kk8lTJD+1kICjIjHgp5VhHOFOotGwIJRhGoV7yJ fi48RRYHh4wfoFwx+wpolhBr2qGlGUsbatagBWA1toDz9fe7G8UBOoeqIqo6UMTiPKEm XGWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tl5tAkNRb8h2Q9F6JqbKJSF2B7y9RQDmOb+NATyQo5Q=; b=HoX/C+tM5M93UdQTVK6gHTJrnh9mrah3/k+KRR76ZWRZun3Qifv2VEGU2H+70m1QnY uHG+ifNDkZBBg5xH7RlBu+vdMqHIQUHT3TaWodSMpWOhBhfQYPD/tq+8GLAgjDrJsSkK BQnLV6RvyITgjaBgHH/3rWvmQupxcEhM7/DlB4z+13iw0r4BoNG+OfBoBtZw9HebkcPY easZJNxT1xgO/WV/Yvy9+YCZcItWuv4++DIQtUvXTZZXu5MN8Lbz+TcEglDQAVfDZZtf XdgXpWeKf7hPy2vIH9xGZdrq9QuqVYnMI4KCouyDnPsO7mlUCsXEwFniwxcFU8BJEkBr jteg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yvcAQrUY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s11-20020a170902a50b00b00158f777bbbfsi20046840plq.559.2022.06.29.02.41.28; Wed, 29 Jun 2022 02:41:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yvcAQrUY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232127AbiF2JGL (ORCPT + 99 others); Wed, 29 Jun 2022 05:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbiF2JGK (ORCPT ); Wed, 29 Jun 2022 05:06:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50FDE2654C; Wed, 29 Jun 2022 02:06:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E1A6661DE3; Wed, 29 Jun 2022 09:06:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE516C34114; Wed, 29 Jun 2022 09:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656493568; bh=x2GCzecskcLtSCWQXoaVv3Na56ClXU+Y0k0Qh8E4oQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yvcAQrUYxKTNfIijL+ZbK08cAl5Ovfrl56tfBMJUV5aP+95TFNneNQFG2uM9frr6Q f/NiB9B06ERHDYY4a7PtkKmS3mLJLn+PNDGHfgQqWK+WxYgwXx6SwcBDpVgVF65zJt a013zE2RiSg82j4zz7P6Rse4H/JNl6MmT9ljsYzk= Date: Wed, 29 Jun 2022 11:06:05 +0200 From: Greg KH To: Davidlohr Bueso Cc: syzbot , aldas60@gmail.com, keescook@chromium.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-usb@vger.kernel.org, nathan@kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] WARNING: locking bug in hfa384x_usbctlx_completion_task Message-ID: References: <000000000000e3fc8905e2608d4f@google.com> <20220627170838.y7kbvazgpd52xd6d@offworld> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220627170838.y7kbvazgpd52xd6d@offworld> X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 27, 2022 at 10:08:38AM -0700, Davidlohr Bueso wrote: > It's nice to see this sort of stuff actually tested :) > > On Sun, 26 Jun 2022, syzbot wrote: > > > ------------[ cut here ]------------ > > DEBUG_LOCKS_WARN_ON(1) > > WARNING: CPU: 1 PID: 21 at kernel/locking/lockdep.c:231 hlock_class kernel/locking/lockdep.c:231 [inline] > > WARNING: CPU: 1 PID: 21 at kernel/locking/lockdep.c:231 hlock_class kernel/locking/lockdep.c:220 [inline] > > WARNING: CPU: 1 PID: 21 at kernel/locking/lockdep.c:231 check_wait_context kernel/locking/lockdep.c:4727 [inline] > > WARNING: CPU: 1 PID: 21 at kernel/locking/lockdep.c:231 __lock_acquire+0x1356/0x5660 kernel/locking/lockdep.c:5003 > > Modules linked in: > > CPU: 1 PID: 21 Comm: kworker/1:0 Not tainted 5.19.0-rc3-syzkaller-00071-g105f3fd2f789 #0 > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > > Workqueue: events hfa384x_usbctlx_completion_task > > Sorry about that, the below should fix it. Thanks. > > ---8<------------------------------- > From: Davidlohr Bueso > Subject: [PATCH] staging/wlan-ng: get the correct struct hfa384x in work callback > > hfa384x_usbctlx_completion_task() is bogusly using the reaper BH when > in fact this is the completion_bh. This was reflected when trying > to acquire the hw->ctlxq.lock and getting a failed lockdep class > initialized to it. > > Reported-by: syzbot+ce3408364c4a234dd90c@syzkaller.appspotmail.com > Fixes: 9442e81d7e7 (staging/wlan-ng, prism2usb: replace completion_bh tasklet with work) > Signed-off-by: Davidlohr Bueso > --- > drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Can you submit this properly so that I can accept it? thanks, greg k-h