Thread (4 messages) 4 messages, 4 authors, 21d ago

Re: [PATCH net v3] strparser: make sure __strp_recv isn't running before tearing down the parser

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-10-07 01:30:06
Also in: stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Mon,  5 Oct 2026 15:50:02 +0200 you wrote:
The comment above strp_done() claims that if strp is stopped,
strp_recv will no longer be called. That's only true if the caller has
a mechanism (eg locking) to guarantee that strp_recv() calls that
started before strp_stop() have completed by the time we call
strp_done().

This adds a dummy lock_sock/release_sock pair to guarantee that any
in-flight strp_recv() (which runs under either bh_lock_sock or
lock_sock, depending if it's called from ->sk_data_ready or strp_work)
has completed.

[...]
Here is the summary with links:
  - [net,v3] strparser: make sure __strp_recv isn't running before tearing down the parser
    https://git.kernel.org/netdev/net/c/0984ebc63179

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help