Re: [PATCH net v4 0/2] can: j1939: the NULL session skb, split in two

From: Piyus Kedia

Date: Mon Nov 30 2026 - 05:58:06 EST


Hi Oleksij,

Thanks for the review! Both patches are out; 1/2 first, as you asked:

The NULL-skb mitigation:
https://lore.kernel.org/all/20261130101232.2464732-1-piyus@xxxxxxxxxxx/
The DPO range check:
https://lore.kernel.org/all/20261130105233.2512536-1-piyus@xxxxxxxxxxx/

The range check no longer depends on the mitigation - it can be
applied before it, after it, or on its own. v4's 2/2 did not apply
without 1/2, and that came from a single hunk in
j1939_session_completed(): the message lookup there uses the window of
the peer's last DPO rather than offset 0, which is a separate bug from
the range check. We split it out, so it will follow as its own patch
once the mitigation lands.

The range check is also not the patch you saw in v4. The Sashiko AI
review <https://lore.kernel.org/all/sashiko-outbox-240339@xxxxxxxxxx/>
found three real defects in it, and all three are fixed: it aborts
with J1939_XTP_ABORT_BAD_EDPO_OFFSET rather than
J1939_XTP_ABORT_FAULT, it deactivates the session instead of leaving
it on the active list with no timers once the ETP.DT frames that
follow the rejected DPO hit out_session_cancel, and it ignores a DPO
on a session already waiting for its abort. The details are in the
patch.

Thanks,
Piyus Kedia
Kapil Vaswani

On Mon, Nov 30, 2026 at 1:17 PM Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> wrote:
>
> Hi Piyus,
>
> On Mon, Nov 30, 2026 at 09:04:20AM +0530, Piyus Kedia wrote:
> > Posted as a series rather than as two independent patches because 2/2 does
> > not apply without 1/2 - sent separately, the second one fails to apply for
> > everyone and for the bots. If you would rather have 1/2 alone first and
> > 2/2 after it lands, say so and I will resend that way.
>
> Yes, please send 1/2 alone first.
>
> Please use "can" instead of "net" in the subject prefix, for example
> [PATCH can v5].
>
> When you resend 1/2, you can add my Acked-by.
>
> Regards,
> Oleksij