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 8AC69ECAAA1 for ; Thu, 27 Oct 2022 20:42:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236519AbiJ0UmV (ORCPT ); Thu, 27 Oct 2022 16:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234377AbiJ0UmR (ORCPT ); Thu, 27 Oct 2022 16:42:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84AEC75CF7; Thu, 27 Oct 2022 13:42:15 -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 169B1624F5; Thu, 27 Oct 2022 20:42:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B48EBC433D6; Thu, 27 Oct 2022 20:42:12 +0000 (UTC) Date: Thu, 27 Oct 2022 16:42:27 -0400 From: Steven Rostedt To: Alan Stern Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , Greg Kroah-Hartman , Felipe Balbi , Johan Hovold , Mathias Nyman , Kai-Heng Feng , Matthias Kaehlcke , Michael Grzeschik , Bhuvanesh Surachari , Dan Carpenter , linux-usb@vger.kernel.org Subject: Re: [RFC][PATCH v2 20/31] timers: usb: Use del_timer_shutdown() before freeing timer Message-ID: <20221027164227.40225b1f@gandalf.local.home> In-Reply-To: References: <20221027150525.753064657@goodmis.org> <20221027150928.983388020@goodmis.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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 On Thu, 27 Oct 2022 16:38:19 -0400 Alan Stern wrote: > On Thu, Oct 27, 2022 at 11:05:45AM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > > > Before a timer is freed, del_timer_shutdown() must be called. > > Is this supposed to be true for all timers? Because the USB subsystem > contains an awful lot more timers than just the two you touched in this > patch. Yes, and this does mean that we are going to have to painstakingly find and fix ever one of them. This is why the last patch updates DEBUG_OBJECTS_TIMERS to detect cases where I miss. -- Steve