Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28543552rwd; Tue, 4 Jul 2023 22:09:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlHzbOxNAy4AkuErNEahegpP1tuLGVrZyVXvDhEdd4yU7Aj4ILv1qNBF6TiAvORV1DycdByC X-Received: by 2002:a05:6a00:2355:b0:681:415d:ba2c with SMTP id j21-20020a056a00235500b00681415dba2cmr19341363pfj.31.1688533741348; Tue, 04 Jul 2023 22:09:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688533741; cv=none; d=google.com; s=arc-20160816; b=Ca4c9TDXEDrXlC2dY9ec+bkxq4HB48IsfmTMJThGHSHVpSlXQg6uJkPe+7uO+Z7tPq v4w062abNWw2Q237fk9xzfXCC+mtINvgAvS6NMP/4VXmCzSNollp+sDm86jKUloifjNo 2hKRIINtMDSZX8jLZBgPVgcwxp/Z6U1BZ0FsApOe9565nGl5rkyfNgSlbrRWjVxF3ebK 9Cpt35dCgkO2eX246hE1w08qKSHQJx/fflzWb1yHVA/x0+tGUnDG5bHP8WMzfy3DSvmc Y2nvFcu60spvYWLBoKEgZ5RGJrV/6s258dUW0KjkkOiuIY79y5WHObjYYP4cFfwbmQ+U mN4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7pOTpabrJy6TFtEfnHQjf2gswHM6caNDGfzx1L0kmec=; fh=pg3QV1LVdfIK8liwml1ThSaf0Rs0EGWqYjukFcIq8Os=; b=rPneYvkUKw9euSvoDufA1t2zdIWFiYEFx1M61HVz3Ty2+3REyaTxeaEWfraRCh1vgG pJD8CDIYBF7NiDZo3sQewc2RBiVi9lb0QeclVjVceb97Kc235GQ9301gyaHXVZzLDn+R zL2MW4vhFpmC95GmluZkVHL6mrYOVc8NAvfQp5nVuNk1vcvWVO/7fjy+Uuww+ZGDWKVS xZVuazcadOgwPLpLKVi/t+Z9vuJ5jgN9vAIe0Mjv3lFjcXcjxahApGwGXuGTlf3DlWAA ON0JEVDnOBXk2z97hd/e1wFoj+G8qRKHfB7NEALZBAcnClMFPfN2aeo+GUQJvM5GejEg 5KLg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y40-20020a056a001ca800b006714b161b92si19880793pfw.324.2023.07.04.22.08.42; Tue, 04 Jul 2023 22:09:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbjGEEkT (ORCPT + 99 others); Wed, 5 Jul 2023 00:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjGEEkQ (ORCPT ); Wed, 5 Jul 2023 00:40:16 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4A2C10FB for ; Tue, 4 Jul 2023 21:40:15 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qGuJ5-0005TM-7p; Wed, 05 Jul 2023 06:39:59 +0200 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qGuJ1-000542-U6; Wed, 05 Jul 2023 06:39:55 +0200 Date: Wed, 5 Jul 2023 06:39:55 +0200 From: Oleksij Rempel To: Astra Joan Cc: davem@davemloft.net, edumazet@google.com, ivan.orlov0322@gmail.com, kernel@pengutronix.de, kuba@kernel.org, linux-can@vger.kernel.org, linux-kernel@vger.kernel.org, linux@rempel-privat.de, mkl@pengutronix.de, netdev@vger.kernel.org, pabeni@redhat.com, robin@protonic.nl, skhan@linuxfoundation.org, socketcan@hartkopp.net, syzbot+1591462f226d9cbf0564@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH] can: j1939: prevent deadlock by changing j1939_socks_lock to rwlock Message-ID: <20230705043955.GE15522@pengutronix.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jul 04, 2023 at 10:55:47AM -0700, Astra Joan wrote: > Hi Oleksij, > > Thank you for providing help with the bug fix! The patch was created > when I was working on another bug: > > https://syzkaller.appspot.com/bug?extid=881d65229ca4f9ae8c84 > > But the patch was not a direct fix of the problem reported in the > unregister_netdevice function call. Instead, it suppresses potential > deadlock information to guarantee the real bug would show up. Since I > have verified that the patch resolved a deadlock situation involving > the exact same locks, I'm pretty confident it would be a proper fix for > the current bug in this thread. > > I'm not sure, though, about how I could instruct Syzbot to create a > reproducer to properly test this patch. Could you or anyone here help > me find the next step? Thank you so much! Sorry, I'm not syzbot expert. I hope someone else can help here. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |