Thread (10 messages) 10 messages, 3 authors, 25m ago

Re: [BUG] bpf, sockmap: spurious wakeup by tcp_msg_wait_data() causing unexpected EAGAIN in recvfrom()

From: John Fastabend <john.fastabend@gmail.com>
Date: 2026-07-14 18:19:41
Also in: bpf, sashiko-reviews

Possibly related (same subject, not in this thread)

On Mon, Jul 13, 2026 at 12:14:07PM +0800, Jiayuan Chen wrote:
On 7/11/26 4:17 AM, Nnamdi Onyeyiri wrote:
quoted
Hi,

The updated patch below addresses the issues raised by sashiko-bot.  The closed
socket and signal handling code was added to tcp_bpf_recvmsg(), and the fix was
updated to work for sockets with SO_RCVTIMEO set.

Please let me know if any more changes are required, or if the patch would need
to be submitted some other way, I'm happy to adjust as necessary.

Thanks!

Thanks for the report.


What's your use case here? With a verdict prog attached, we'd normally

expect the data to be redirected in kernel rather than read back via

recvmsg(). Are you using SK_PASS? If so, please state that in the

commit message instead of the email body.
For our use case we never do redirect or packet operations (push, pop)
we merely use it as a mechanism to read data and possibly drop data
if it violates some policy.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help