]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
af_unix: Support POLLPRI for OOB.
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>
Thu, 17 Mar 2022 03:08:09 +0000 (12:08 +0900)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:40:21 +0000 (14:40 +0200)
commitcc668f4a0bfaf71ca46d7227afaf94609578e77b
treeb52e6749886f8155b7559bb473550ddc0d24acad
parent86389366e1652d92bcac520b9446b0bbc6cfe03d
af_unix: Support POLLPRI for OOB.

BugLink: https://bugs.launchpad.net/bugs/1969110
commit d9a232d435dcc966738b0f414a86f7edf4f4c8c4 upstream.

The commit 314001f0bf92 ("af_unix: Add OOB support") introduced OOB for
AF_UNIX, but it lacks some changes for POLLPRI.  Let's add the missing
piece.

In the selftest, normal datagrams are sent followed by OOB data, so this
commit replaces `POLLIN | POLLPRI` with just `POLLPRI` in the first test
case.

Fixes: 314001f0bf92 ("af_unix: Add OOB support")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 21b6b8d43d87708c88ae34be67bb6cbba7bc60a0)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/unix/af_unix.c
tools/testing/selftests/net/af_unix/test_unix_oob.c