From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795951753; b=CZAm3TJE5pfAkpevi2qidl25Dy59uIDDpDc07Wi2OqLvZhEfCXT1ZsBEGtp+tRK5nbG4 3jnCTRMBs3NHJPHGn8/8Upgsjig6jdpw/UYCVfaNtWmFqrksdi83jfJaY+EBuDz+Yf2MH 2/bEoE0omuPL1qTcPHBUH3W+F7HhKjQ2UALR1O5/fTy7b+2FreW2C6FgW0L3D5yTajTk+ gUJsjpGx3vVfJzbs2IrfeWlG9xzLkWcu62Ian1roBpUa72e77I0Ixdw1WIvajkXcv9HzR uIxIxHX1sJ6y8XLfbF4IwxgyDa3Su9kMyxQxf9gP4x1ucGcCkKG2zNRSYNQNlEizD2Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795951753; h=DMARC-Filter:Received:DKIM-Signature:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=S4JIp5LoaOBECFh8q5g4bY2tFSgwFa+lM9jz8noDhk8=; b=Z90LOR04U1OrhqN9rX1LIKkIomdEK/6pENEMg4qiOxuU1IX09A7hnvH+hCMlvYbjchIK LHIl2mEyo2HJmnIgFwSIkN2jI5tOcyHPDrpI3QNlSo2RJl+2r/bsqt0MMlMh0Wj+EXn0j /NDVP2oaN2fWnjpRazL5M1QmDvIki7D0s9zes2Hnxbmrv9gWiQZ+dAsfTETi8gFctijWn Eq52MsANExMetQJ0QxK315ZkreU3Q8JLv2BH5sA96ZA23L43IUZUX8gXyhDxkJVzXGrhK 5QnK/Nn6bY3KBsnYFBKflXrjL0WxDZveyN56TboXv5VpP8aCuQ5lpCkR4+6gTKZiHbQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=VdwOsz8B; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46F9F606A31C for ; Sun, 29 Nov 2026 11:29:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46F9F606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=VdwOsz8B Received: from ptx.office.stw.pengutronix.de (ptx.office.stw.pengutronix.de [IPv6:2a0a:edc0:0:900:1d::109]) (Authenticated sender: relay-from-ptx.office.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id C27B5200CB9; Sun, 29 Nov 2026 12:29:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1795951749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=S4JIp5LoaOBECFh8q5g4bY2tFSgwFa+lM9jz8noDhk8=; b=VdwOsz8BCi5+Sy9IeaO/Gd+sfn1O6Da/OHpl+9WPaCBirl26m1PMEy+c0TXd2tsDlh3wtr zJY3xPqHLO2GDHko9D2+KWaxjb6+U1WBQUjWSjkyxnsBw/hDPwsk812l5OZlHPLqfgpLjV rkNwCdPQTxkRB2VgE58tHYeC49lVIAejzguwLVTzlUUa6zl3KXdYrtLyH8BqiZgAF7Oakv o4/sjgHxq35d1tsB6CAAZmcth6NdhXGOLxbjB2NVc67WbmJKYYuKKX7gH7zC3Yc3sEUHy9 tGbSOfiIZlDuwvdHvB62NtpnQBkOqhSvYMAd67SGaQJfyU7lCpmA7A5946uyUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1795951749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=S4JIp5LoaOBECFh8q5g4bY2tFSgwFa+lM9jz8noDhk8=; b=Zl4iTNmyz3LXo1oDiHLDwqgs3u3ikhlZ/pPVrUz54DQxQBVz1KIo1qC5hFm7+bl5CDB4E6 iZrvm/FK9LMySWa9Z5oebxA57Qrmj16kzukAeQHNRZqJKlBGvd5ITrh8oDDmP/HmlwF++U OEqgM+KNc0CF9E/v/1zhJDgDARLYf6fg66TpEBHs3ARNn4RHfiGEvdMUm96xiAiRmaXjkQ 3Z4lsE5kvHciyX5O3LcJSj7TLlhQ21EDvMSSisubEY1N3s+HxWoRV6jJl7iQKbKNSKahgl aJRfSVMVL5b7VbzSTekVc/8yva7Nwh11UqPen83yQFmptLolJkBdyqhOfpNjbA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=relay-from-ptx.office.stw.pengutronix.de smtp.mailfrom=ore@pengutronix.de ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1795951749; a=rsa-sha256; cv=none; b=IP1CHx44i2x/1CwAqoPOIHDKInqGOA6YO6VsKaEKlOhVGoMy0VE1cj9kHXRBRTVKrir8nH WNPAiG47YvKXgi+EMOBNO9+io9vfSmzf3s4HiK3feB3woi7ECp/IdGburugflrK7LFcYDK 3n1q09nvzIyPNboYNTca5rTaQlLcZlJ9yFhxOzF6Ah70aYeGjUc3iTY0hNl0YDWyddpD7r aXX4HvfgmnKOn1P6llRARU1m7N2k1RMIF9BuqTqYVSzk6smQm3L1/Zo5dS/li/fveLSMaD Fhl5BZW2uQB6JNuV+cdz+aAGhxMwFGFgZsdPuAu4g7np7BUMbfF7nibfPj3TeA== Received: by ptx.office.stw.pengutronix.de (Postfix, from userid 1058) id ADC281BF4EE; Sun, 29 Nov 2026 12:29:09 +0100 (CET) Date: Sun, 29 Nov 2026 12:29:09 +0100 From: Oleksij Rempel To: Tetsuo Handa Cc: linux-can@vger.kernel.org, Marc Kleine-Budde , Robin van der Gracht , kernel@pengutronix.de, Oliver Hartkopp Subject: Re: [PATCH v15 3/3] can: j1939: fix possibility of hard-lockup/deadlock in j1939_ecu_timer_cancel() Message-ID: References: <98c16a74-5ea7-476e-ab36-c98fb77b6be4@I-love.SAKURA.ne.jp> X-Mailing-List: linux-can@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Hi Tetsuo, On Wed, Nov 18, 2026 at 12:57:44AM +0900, Tetsuo Handa wrote: > Therefore, fix this problem by introducing ac_process_lock that works > as > an outer lock for temporarily dropping priv->lock in order to safely > call > hrtimer_cancel(). The approach looks right to me. Please send this patch with 2/3 as a new small series. With the changes below, I think it is ready. Please say in the commit message why hrtimer_try_to_cancel() is not used here. [...] > + /* serializes j1939_ac_process() processing */ > + spinlock_t ac_process_lock; Please say what the lock protects, not which function takes it. Please place ac_process_lock after ents[], for example next to active_session_list_lock. Then the "above" comments in the struct stay correct, and the comment fix from your 20 Nov mail is not needed. Please say in the commit message how the problem was found and how you tested the fix. maintainer-netdev.rst asks for this in every fix. Regards, Oleksij