mbox series

[v3,net,0/2] af_unix: Fix some OOB implementation.

Message ID 20220315183855.15190-1-kuniyu@amazon.co.jp (mailing list archive)
Headers show
Series af_unix: Fix some OOB implementation. | expand

Message

Iwashima, Kuniyuki March 15, 2022, 6:38 p.m. UTC
This series fixes some data-races and adds a missing feature around the
commit 314001f0bf92 ("af_unix: Add OOB support").

Changelog:
  - v3:
    - Add the first patch

  - v2: https://lore.kernel.org/netdev/20220315054801.72035-1-kuniyu@amazon.co.jp/
    - Add READ_ONCE() to avoid a race reported by KCSAN (Eric)
    - Add IS_ENABLED(CONFIG_AF_UNIX_OOB) (Shoaib)

  - v1: https://lore.kernel.org/netdev/20220314052110.53634-1-kuniyu@amazon.co.jp/

Kuniyuki Iwashima (2):
  af_unix: Fix some data-races around unix_sk(sk)->oob_skb.
  af_unix: Support POLLPRI for OOB.

 net/unix/af_unix.c                            | 22 ++++++++++---------
 .../selftests/net/af_unix/test_unix_oob.c     |  6 ++---
 2 files changed, 15 insertions(+), 13 deletions(-)