diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-06-24 18:36:44 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-06-27 12:05:01 +0200 |
commit | e400cfa38bb0419cf1313e5494ea2b7d114e86d7 (patch) | |
tree | 5b6fb74b7a7d19478f7a648fb6e7557239d33137 /arch/xtensa | |
parent | 48a998373090f33e558a20a976c6028e11e93184 (diff) |
af_unix: Fix wrong ioctl(SIOCATMARK) when consumed OOB skb is at the head.
Even if OOB data is recv()ed, ioctl(SIOCATMARK) must return 1 when the
OOB skb is at the head of the receive queue and no new OOB data is queued.
Without fix:
# RUN msg_oob.no_peek.oob ...
# msg_oob.c:305:oob:Expected answ[0] (0) == oob_head (1)
# oob: Test terminated by assertion
# FAIL msg_oob.no_peek.oob
not ok 2 msg_oob.no_peek.oob
With fix:
# RUN msg_oob.no_peek.oob ...
# OK msg_oob.no_peek.oob
ok 2 msg_oob.no_peek.oob
Fixes: 314001f0bf92 ("af_unix: Add OOB support")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions