diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-09-02 20:21:51 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-07 16:58:42 -0700 |
| commit | 6e5ee08eb5858d175da6768d75d163817b6a9d4a (patch) | |
| tree | eef1e5fa004a7b90be08f29da2fd6cad309c3eac /scripts/Makefile.thinlto | |
| parent | 94fd4debd2e3a69cf93e766c8b328a810c228119 (diff) | |
| download | linux-6e5ee08eb5858d175da6768d75d163817b6a9d4a.tar.gz linux-6e5ee08eb5858d175da6768d75d163817b6a9d4a.zip | |
af_unix: Return immediately when manage_oob() returns NULL for 0-length buffer.
Fahad Alharbi reported that recv(0, MSG_PEEK) triggers busy-wait
in unix_stream_read_generic() if recv() is blocking and the last
skb in the queue is MSG_OOB skb.
In such a situation, TCP returns 0 immediately regardless of
blocking or non-blocking.
Let's follow the behaviour.
Fixes: 314001f0bf92 ("af_unix: Add OOB support")
Reported-by: Fahad Alharbi <fahad@codepure.com>
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260902202202.892676-3-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
