From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: Felix Hoffmann <f3lix.dev@gmx.de>,
Marc Kleine-Budde <mkl@pengutronix.de>,
linux-can@vger.kernel.org,
Robin van der Gracht <robin@protonic.nl>,
kernel@pengutronix.de, Oliver Hartkopp <socketcan@hartkopp.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH can v2] can: j1939: avoid address-claim timer deadlock
Date: Fri, 27 Nov 2026 12:58:48 +0100 [thread overview]
Message-ID: <awlweHXHEtTutiTz@pengutronix.de> (raw)
In-Reply-To: <fe95ba74-e195-477b-9ad5-c53d48446ae5@I-love.SAKURA.ne.jp>
On Fri, Nov 27, 2026 at 08:46:54PM +0900, Tetsuo Handa wrote:
> On 2026/11/27 19:17, Oleksij Rempel wrote:
> > On Mon, Aug 03, 2026 at 12:15:03PM +0200, Felix Hoffmann wrote:
> >> Name the 1 ms retry interval J1939_ECU_TIMER_RETRY_DELAY_MS instead of
> >> using a literal in the callback. Track consecutive failures per ECU, reset
> >> the counter when its timer starts, and emit a warning guarded by
> >> net_ratelimit() on the fifth retry. Five is a pragmatic threshold for
> >> detecting unusual delay; it is not specified by J1939.
> >>
> >> The timer uses HRTIMER_MODE_REL_SOFT, so its callback runs from
> >> HRTIMER_SOFTIRQ with bottom halves already disabled. write_trylock() does
> >> not change bottom-half state and must therefore pair with write_unlock() on
> >> success. The write_lock_bh()/write_unlock_bh() pair is unnecessary in this
> >> context.
> >>
> >> Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol")
> >> Cc: stable@vger.kernel.org
> >> Assisted-by: Codex:GPT5.6-Sol
> >> Signed-off-by: Felix Hoffmann <f3lix.dev@gmx.de>
> >
> > Hi Marc,
> >
> > this patch seems to have slipped through. As far as I can see, it still
> > applies to net/main, and the bot findings on it are pre-existing
> > issues. Could you please take it, if you see no problem with it?
> >
> > Tetsuo, if I read it right, your v15 3/3 fixes the same lockup. If
> > Marc takes this patch, 3/3 would not be needed in your next version.
>
> It seems that netdev-bot+sashiko@kernel.org failed to review the v2 patch.
> In the v1 patch, netdev-bot+sashiko@kernel.org had a concern about likeliness of
> write_trylock(&priv->lock) failure
> ( https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260731134255.1002902-1-f3lix.dev@gmx.de ).
> Asking for opinion from netdev-bot+sashiko@kernel.org by re-posting the v2 patch
> after applying my "[PATCH v15 1/3]" and "[PATCH v15 2/3]" would be preferable.
Thank you, I missed that. If I read the v1 review right, the concern
about the retry still applies to v2.
So let's keep your 3/3 for this lockup. Marc, please do not take this
patch for now.
Regards,
Oleksij
prev parent reply other threads:[~2026-11-27 11:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 13:42 [PATCH net] " Felix Hoffmann
2026-08-03 6:18 ` Oleksij Rempel
2026-08-03 10:15 ` [PATCH can v2] " Felix Hoffmann
2026-08-04 7:12 ` Oleksij Rempel
2026-11-27 10:17 ` Oleksij Rempel
2026-11-27 11:46 ` Tetsuo Handa
2026-11-27 11:58 ` Oleksij Rempel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awlweHXHEtTutiTz@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=f3lix.dev@gmx.de \
--cc=kernel@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--cc=robin@protonic.nl \
--cc=socketcan@hartkopp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®