mbox series

[v1,net,0/3] af_unix: Fix MSG_OOB bugs and prepare deprecation.

Message ID 20240409225209.58102-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series af_unix: Fix MSG_OOB bugs and prepare deprecation. | expand

Message

Kuniyuki Iwashima April 9, 2024, 10:52 p.m. UTC
Currently, OOB data can be read without MSG_OOB accidentally in two cases.

This series fixes 2 bugs, switch the default of CONFIG_AF_UNIX_OOB to n,
and add warning to deprecate MSG_OOB support in the near future.

The last patch can be dropped if not needed.


Kuniyuki Iwashima (3):
  af_unix: Call manage_oob() for every skb in
    unix_stream_read_generic().
  af_unix: Don't peek OOB data without MSG_OOB.
  af_unix: Prepare MSG_OOB deprecation.

 net/unix/Kconfig   |  4 ++--
 net/unix/af_unix.c | 14 ++++++++------
 2 files changed, 10 insertions(+), 8 deletions(-)