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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E23DC4321E for ; Fri, 2 Dec 2022 15:32:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232450AbiLBPci (ORCPT ); Fri, 2 Dec 2022 10:32:38 -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 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