All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sabrina Dubroca <sd@queasysnail.net>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, jiayuan.chen@linux.dev,
	imv4bel@gmail.com, stable@vger.kernel.org
Subject: Re: [PATCH net v2] strparser: make sure __strp_recv isn't running before tearing down the parser
Date: Mon, 5 Oct 2026 13:47:01 +0200	[thread overview]
Message-ID: <asOONdAf6gcon6MB@krikkit> (raw)
In-Reply-To: <179089956689.434549.15887968585245541352@kernel.org>

2026-10-02, 00:06:06 +0000, netdev-bot+sashiko@kernel.org wrote:
> [Severity: High]
> This is a pre-existing issue, but the new sync here depends on
> strp->stopped being set reliably. In KCM, that store looks like it can
> be lost.

I guess I'll add that just to make sashiko shut up.


> [Severity: Medium]
> Can this oops for a parser set up in general mode? strp_init() still
> accepts a NULL sk as long as cb->lock and cb->unlock are supplied, and
> stores it unchanged:

Yes, and the notes in the patch say that.

> All in-tree strp_init() callers pass a real socket: espintcp_init_sk(),
> kcm_attach(), sk_psock_init_strp() and ovpn_tcp_socket_attach(). None of
> them overrides cb.lock/cb.unlock, so nothing in-tree hits this today.
> 
> This is headed to stable, and the API and documentation still allow
> general mode. Would one of these be better?

No...


> [Severity: Low]
> This isn't a bug introduced by this patch, but the comment above
> strp_done() reads:
> 
> /* strp must already be stopped so that strp_recv will no longer be called.
>  * Note that strp_done is not called with the lower socket held.
>  */
> 
> With the new lock_sock() here, would "must not be called" be clearer
> than "is not called"?

Would anyone actually do that when the _3rd line_ in the function is
lock_sock()?


Something needs to be fixed for the last 2, and it's not the patch...

-- 
Sabrina

      reply	other threads:[~2026-10-05 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 12:05 [PATCH net v2] strparser: make sure __strp_recv isn't running before tearing down the parser Sabrina Dubroca
2026-09-29 12:08 ` netdev-bot+sinfo
2026-10-02  0:06 ` netdev-bot+sashiko
2026-10-05 11:47   ` Sabrina Dubroca [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=asOONdAf6gcon6MB@krikkit \
    --to=sd@queasysnail.net \
    --cc=imv4bel@gmail.com \
    --cc=jiayuan.chen@linux.dev \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.