Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2351051rwb; Fri, 2 Dec 2022 08:37:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf7wysyHEP7gxdDhjNnTBXs2Z96saLsBM3f+jfIbGHRyDInCRNLvJqso5rVwGPbmx1DowO9t X-Received: by 2002:a63:5853:0:b0:477:4a83:8b75 with SMTP id i19-20020a635853000000b004774a838b75mr51462770pgm.519.1669999066104; Fri, 02 Dec 2022 08:37:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669999066; cv=none; d=google.com; s=arc-20160816; b=huWEyP5ZRq1fEGf60wYHnvYeOOE3a+lsoDR9ZLszzIdZgS/JlOVFnAcTrz83Me0cIi z2onfaRPUYd6vyla0pQ5R9YJWVK/LMM2t9l+wt8tSf2Hn7EfmJ11a0r5Mg14iSF35vbI V49G/3xWEobNzNtsRBwq6DLVb09/dN249q/dJDtODznFdkKknBtwJIQpNEc/zTumv748 VZQI8ltGNxzcPQS+h1gdpSbmONucEAuS022PmGBSyP40elplmhGzmhAt/NUNc7GU5zhV qnkbWNHGJKaNJkP0bgfPCCIyWyrh3M47KHOS9JZT2DI+e5/1VDN5oSczJ4YcdDAuUtto D9OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=X0TmJQRZWy8RFrBv8mUUPUFVasspg7eeSkQXa7AwZBc=; b=PpYcee71RuJthfEzcyA+g7jx2XdA0s3/vGT9J1mMn0oQkWqlhCDKOg7OyP2Z20/Px4 I7TX8yf380ROhKha8HpiIs3Sh97FYfB+EqVyWZ1B+F315W1X42nsrGMeaPaeNNq9BWvx 6NSGC+OTf3qsTRbom02OCok6K55j6pIrB8tnoiGFsGS5xGGC9Pf4UfsT7MjOLAa0tXsf LebONmj7tiTKzKE+B7qrZCN5KHrF/WAAzjFzBVFW2zpWrtdHVkAZjv8TBVRGLT8Tm9OL vUTtzTPBCCYv4HcnzGKW6LhTcj5L/Ga8nMyEu6Eah5YlvGCmVV6Idi+IV5pC+cLohiW1 ZDmw== 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 t9-20020a17090340c900b00186897fb90dsi7746094pld.233.2022.12.02.08.37.35; Fri, 02 Dec 2022 08:37:45 -0800 (PST) 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 S232860AbiLBPcg (ORCPT + 82 others); Fri, 2 Dec 2022 10:32:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232951AbiLBPce (ORCPT ); Fri, 2 Dec 2022 10:32:34 -0500 X-Greylist: delayed 73935 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 02 Dec 2022 07:32:31 PST Received: from mail.enpas.org (zhong.enpas.org [IPv6:2a03:4000:2:537::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72C00DB0D4; Fri, 2 Dec 2022 07:32:31 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id 8ED11FF9B7; Fri, 2 Dec 2022 15:32:23 +0000 (UTC) Date: Sat, 3 Dec 2022 00:32:11 +0900 From: Max Staudt To: Marc Kleine-Budde Cc: "Jiri Slaby (SUSE)" , dario.binacchi@amarulasolutions.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Palethorpe , Petr Vorel , Wolfgang Grandegger , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-can@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] can: slcan: fix freed work crash Message-ID: <20221203003211.4c6a63b9.max@enpas.org> In-Reply-To: <20221202152701.ewnillsqded7uby4@pengutronix.de> References: <20221201073426.17328-1-jirislaby@kernel.org> <20221202152701.ewnillsqded7uby4@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 This patch fixes the crash, but is IMHO incomplete: The flush_work() in .ndo_stop() should also be removed, since its existence implies unexpected behaviour. In other words, my moving it there in can327 was a double mistake, and slcan just happened to copy my mistake over. I'm preparing a patch for can327, and it will remove the flush from .ndo_stop(). What shall we do about slcan? Max