AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/11/19 10:05 flow patch-triage
2m Args:
null

Results:
{
  "EnableConfigs": [
    "UNIX"
  ],
  "FocusSymbols": [
    "unix_stream_sendmsg",
    "unix_stream_recvmsg",
    "unix_stream_read_generic",
    "unix_stream_read_skb",
    "unix_ioctl"
  ],
  "KMSANReasoning": "The patch series completely removes out-of-band (MSG_OOB) data support for AF_UNIX sockets, including the deletion of helper functions (queue_oob, unix_stream_recv_urg, manage_oob), the SIOCATMARK ioctl handling, the oob_skb pointer from struct unix_sock, and related selftests.\n\nThis change is almost exclusively code removal and simplification. It does not introduce any new memory allocations, variables, struct fields, or code paths copying kernel data to user space (in fact, it removes a put_user invocation for SIOCATMARK). MSG_OOB requests on AF_UNIX streams now immediately fail with -EOPNOTSUPP. There are no risks of reading uninitialized memory, branching on uninitialized data, or leaking uninitialized memory to user space. Therefore, a dedicated KMSAN fuzzing session is not warranted.",
  "NeedsKMSAN": false,
  "Reasoning": "The patch removes MSG_OOB support from AF_UNIX domain sockets, modifying reachable core networking logic in net/unix/af_unix.c (including unix_stream_sendmsg, unix_stream_read_generic, unix_stream_read_skb, and unix_ioctl) as well as struct unix_sock. Because the changes modify control flow and data structures in a core networking subsystem that is readily reachable from userspace, fuzzing is warranted to detect potential regressions or latent issues.",
  "WorthFuzzing": true
}

1/1 2026/11/19 10:05 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 736c028d859beb41a198ff8012e3397c240d43cd\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Thu Nov 19 10:05:48 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/include/net/af_unix.h b/include/net/af_unix.h\nindex bb1b3dee02e829..43fb892eee065a 100644\n--- a/include/net/af_unix.h\n+++ b/include/net/af_unix.h\n@@ -50,9 +50,6 @@ struct unix_sock {\n \tint\t\t\tinq_len;\n \tbool\t\t\trecvmsg_inq;\n \tbool\t\t\tscm_rights_notrunc;\n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\tstruct sk_buff\t\t*oob_skb;\n-#endif\n };\n \n #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk)\ndiff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h\nindex fa2fe89905573a..c010fdebf24975 100644\n--- a/include/net/dropreason-core.h\n+++ b/include/net/dropreason-core.h\n@@ -10,7 +10,6 @@\n \tFN(SOCKET_FILTER)\t\t\\\n \tFN(SOCKET_RCVBUFF)\t\t\\\n \tFN(UNIX_DISCONNECT)\t\t\\\n-\tFN(UNIX_SKIP_OOB)\t\t\\\n \tFN(PKT_TOO_SMALL)\t\t\\\n \tFN(TCP_CSUM)\t\t\t\\\n \tFN(UDP_CSUM)\t\t\t\\\n@@ -164,11 +163,6 @@ enum skb_drop_reason {\n \t * during send() that the peer has been close()d.\n \t */\n \tSKB_DROP_REASON_UNIX_DISCONNECT,\n-\t/**\n-\t * @SKB_DROP_REASON_UNIX_SKIP_OOB: Out-Of-Band data is skipped by\n-\t * recv() without MSG_OOB so dropped.\n-\t */\n-\tSKB_DROP_REASON_UNIX_SKIP_OOB,\n \t/** @SKB_DROP_REASON_PKT_TOO_SMALL: packet size is too small */\n \tSKB_DROP_REASON_PKT_TOO_SMALL,\n \t/** @SKB_DROP_REASON_TCP_CSUM: TCP checksum error */\ndiff --git a/net/unix/Kconfig b/net/unix/Kconfig\nindex 6f1783c1659b81..d378726d5eb922 100644\n--- a/net/unix/Kconfig\n+++ b/net/unix/Kconfig\n@@ -16,13 +16,6 @@ config UNIX\n \n \t  Say Y unless you know what you are doing.\n \n-config\tAF_UNIX_OOB\n-\tbool \"UNIX: out-of-bound messages\"\n-\tdepends on UNIX\n-\tdefault y\n-\thelp\n-\t  Support for MSG_OOB in UNIX domain sockets. If unsure, say Y.\n-\n config UNIX_DIAG\n \ttristate \"UNIX: socket monitoring interface\"\n \tdepends on UNIX\ndiff --git a/net/unix/af_unix.c b/net/unix/af_unix.c\nindex 96c13682938e19..cc5c7fa40b4d48 100644\n--- a/net/unix/af_unix.c\n+++ b/net/unix/af_unix.c\n@@ -688,20 +688,12 @@ static void unix_release_sock(struct sock *sk, int embrion)\n \n \tunix_state_unlock(sk);\n \n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\tu-\u003eoob_skb = NULL;\n-#endif\n-\n \twake_up_interruptible_all(\u0026u-\u003epeer_wait);\n \n \tif (skpair != NULL) {\n \t\tif (sk-\u003esk_type == SOCK_STREAM || sk-\u003esk_type == SOCK_SEQPACKET) {\n \t\t\tstruct sk_buff *skb = skb_peek(\u0026sk-\u003esk_receive_queue);\n \n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\t\t\tif (skb \u0026\u0026 !unix_skb_len(skb))\n-\t\t\t\tskb = skb_peek_next(skb, \u0026sk-\u003esk_receive_queue);\n-#endif\n \t\t\tunix_state_lock(skpair);\n \t\t\t/* No more writes */\n \t\t\tWRITE_ONCE(skpair-\u003esk_shutdown, SHUTDOWN_MASK);\n@@ -2325,67 +2317,6 @@ static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg,\n  */\n #define UNIX_SKB_FRAGS_SZ (PAGE_SIZE \u003c\u003c get_order(32768))\n \n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-static int queue_oob(struct sock *sk, struct msghdr *msg, struct sock *other,\n-\t\t     struct scm_cookie *scm, bool fds_sent)\n-{\n-\tstruct unix_sock *ousk = unix_sk(other);\n-\tstruct sk_buff *skb;\n-\tint err;\n-\n-\tskb = sock_alloc_send_skb(sk, 1, msg-\u003emsg_flags \u0026 MSG_DONTWAIT, \u0026err);\n-\n-\tif (!skb)\n-\t\treturn err;\n-\n-\terr = unix_scm_to_skb(scm, skb, !fds_sent);\n-\tif (err \u003c 0)\n-\t\tgoto out;\n-\n-\terr = unix_maybe_add_creds(skb, sk, other);\n-\tif (err)\n-\t\tgoto out;\n-\n-\tskb_put(skb, 1);\n-\terr = skb_copy_datagram_from_iter(skb, 0, \u0026msg-\u003emsg_iter, 1);\n-\n-\tif (err)\n-\t\tgoto out;\n-\n-\tunix_state_lock(other);\n-\n-\tif (sock_flag(other, SOCK_DEAD) ||\n-\t    (other-\u003esk_shutdown \u0026 RCV_SHUTDOWN)) {\n-\t\terr = -EPIPE;\n-\t\tgoto out_unlock;\n-\t}\n-\n-\tif (UNIXCB(skb).fp \u0026\u0026 !other-\u003esk_scm_rights) {\n-\t\terr = -EPERM;\n-\t\tgoto out_unlock;\n-\t}\n-\n-\tscm_stat_add(other, skb);\n-\n-\tspin_lock(\u0026other-\u003esk_receive_queue.lock);\n-\tWRITE_ONCE(ousk-\u003eoob_skb, skb);\n-\tWRITE_ONCE(ousk-\u003einq_len, ousk-\u003einq_len + 1);\n-\t__skb_queue_tail(\u0026other-\u003esk_receive_queue, skb);\n-\tspin_unlock(\u0026other-\u003esk_receive_queue.lock);\n-\n-\tsk_send_sigurg(other);\n-\tunix_state_unlock(other);\n-\tREAD_ONCE(other-\u003esk_data_ready)(other);\n-\n-\treturn 0;\n-out_unlock:\n-\tunix_state_unlock(other);\n-out:\n-\tconsume_skb(skb);\n-\treturn err;\n-}\n-#endif\n-\n static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,\n \t\t\t       size_t len)\n {\n@@ -2403,12 +2334,7 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,\n \n \tif (msg-\u003emsg_flags \u0026 MSG_OOB) {\n \t\terr = -EOPNOTSUPP;\n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\t\tif (len)\n-\t\t\tlen--;\n-\t\telse\n-#endif\n-\t\t\tgoto out_err;\n+\t\tgoto out_err;\n \t}\n \n \tif (msg-\u003emsg_namelen) {\n@@ -2505,15 +2431,6 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,\n \t\tsent += size;\n \t}\n \n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\tif (msg-\u003emsg_flags \u0026 MSG_OOB) {\n-\t\terr = queue_oob(sk, msg, other, \u0026scm, fds_sent);\n-\t\tif (err)\n-\t\t\tgoto out_err;\n-\t\tsent++;\n-\t}\n-#endif\n-\n \tscm_destroy(\u0026scm);\n \n \treturn sent;\n@@ -2765,115 +2682,6 @@ struct unix_stream_read_state {\n \tunsigned int splice_flags;\n };\n \n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-static int unix_stream_recv_urg(struct unix_stream_read_state *state)\n-{\n-\tstruct sk_buff *oob_skb, *read_skb = NULL;\n-\tstruct socket *sock = state-\u003esocket;\n-\tstruct sock *sk = sock-\u003esk;\n-\tstruct unix_sock *u = unix_sk(sk);\n-\tint chunk = 1;\n-\n-\tmutex_lock(\u0026u-\u003eiolock);\n-\tunix_state_lock(sk);\n-\tspin_lock(\u0026sk-\u003esk_receive_queue.lock);\n-\n-\tif (sock_flag(sk, SOCK_URGINLINE) || !u-\u003eoob_skb) {\n-\t\tspin_unlock(\u0026sk-\u003esk_receive_queue.lock);\n-\t\tunix_state_unlock(sk);\n-\t\tmutex_unlock(\u0026u-\u003eiolock);\n-\t\treturn -EINVAL;\n-\t}\n-\n-\toob_skb = u-\u003eoob_skb;\n-\n-\tif (!(state-\u003eflags \u0026 MSG_PEEK)) {\n-\t\tWRITE_ONCE(u-\u003eoob_skb, NULL);\n-\t\tWRITE_ONCE(u-\u003einq_len, u-\u003einq_len - 1);\n-\n-\t\tif (oob_skb-\u003eprev != (struct sk_buff *)\u0026sk-\u003esk_receive_queue \u0026\u0026\n-\t\t    !unix_skb_len(oob_skb-\u003eprev)) {\n-\t\t\tread_skb = oob_skb-\u003eprev;\n-\t\t\t__skb_unlink(read_skb, \u0026sk-\u003esk_receive_queue);\n-\t\t}\n-\t}\n-\n-\tspin_unlock(\u0026sk-\u003esk_receive_queue.lock);\n-\tunix_state_unlock(sk);\n-\n-\tchunk = state-\u003erecv_actor(oob_skb, 0, chunk, state);\n-\n-\tif (!(state-\u003eflags \u0026 MSG_PEEK))\n-\t\tUNIXCB(oob_skb).consumed += 1;\n-\n-\tmutex_unlock(\u0026u-\u003eiolock);\n-\n-\tconsume_skb(read_skb);\n-\n-\tif (chunk \u003c 0)\n-\t\treturn -EFAULT;\n-\n-\tstate-\u003emsg-\u003emsg_flags |= MSG_OOB;\n-\treturn 1;\n-}\n-\n-static struct sk_buff *manage_oob(struct sk_buff *skb, struct sk_buff **last,\n-\t\t\t\t  struct sock *sk, int flags, int copied)\n-{\n-\tstruct sk_buff *read_skb = NULL, *unread_skb = NULL;\n-\tstruct unix_sock *u = unix_sk(sk);\n-\n-\tif (likely(unix_skb_len(skb) \u0026\u0026 skb != READ_ONCE(u-\u003eoob_skb)))\n-\t\treturn skb;\n-\n-\tspin_lock(\u0026sk-\u003esk_receive_queue.lock);\n-\n-\tif (!unix_skb_len(skb)) {\n-\t\tif (copied \u0026\u0026 (!u-\u003eoob_skb || skb == u-\u003eoob_skb)) {\n-\t\t\tskb = NULL;\n-\t\t} else if (flags \u0026 MSG_PEEK) {\n-\t\t\t*last = skb;\n-\t\t\tskb = skb_peek_next(skb, \u0026sk-\u003esk_receive_queue);\n-\t\t} else {\n-\t\t\tread_skb = skb;\n-\t\t\tskb = skb_peek_next(skb, \u0026sk-\u003esk_receive_queue);\n-\t\t\t__skb_unlink(read_skb, \u0026sk-\u003esk_receive_queue);\n-\t\t\t*last = skb;\n-\t\t}\n-\n-\t\tif (!skb)\n-\t\t\tgoto unlock;\n-\t}\n-\n-\tif (skb != u-\u003eoob_skb)\n-\t\tgoto unlock;\n-\n-\tif (copied) {\n-\t\tskb = NULL;\n-\t} else if (!(flags \u0026 MSG_PEEK)) {\n-\t\tWRITE_ONCE(u-\u003eoob_skb, NULL);\n-\n-\t\tif (!sock_flag(sk, SOCK_URGINLINE)) {\n-\t\t\t__skb_unlink(skb, \u0026sk-\u003esk_receive_queue);\n-\t\t\tunread_skb = skb;\n-\t\t\tskb = skb_peek(\u0026sk-\u003esk_receive_queue);\n-\t\t\t*last = skb;\n-\t\t}\n-\t} else if (!sock_flag(sk, SOCK_URGINLINE)) {\n-\t\t*last = skb;\n-\t\tskb = skb_peek_next(skb, \u0026sk-\u003esk_receive_queue);\n-\t}\n-\n-unlock:\n-\tspin_unlock(\u0026sk-\u003esk_receive_queue.lock);\n-\n-\tconsume_skb(read_skb);\n-\tkfree_skb_reason(unread_skb, SKB_DROP_REASON_UNIX_SKIP_OOB);\n-\n-\treturn skb;\n-}\n-#endif\n-\n static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)\n {\n \tstruct sk_buff_head *queue = \u0026sk-\u003esk_receive_queue;\n@@ -2900,17 +2708,6 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)\n \n \tWRITE_ONCE(u-\u003einq_len, u-\u003einq_len - unix_skb_len(skb));\n \n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\tif (skb == u-\u003eoob_skb) {\n-\t\tWRITE_ONCE(u-\u003eoob_skb, NULL);\n-\t\tspin_unlock(\u0026queue-\u003elock);\n-\t\tmutex_unlock(\u0026u-\u003eiolock);\n-\n-\t\tkfree_skb_reason(skb, SKB_DROP_REASON_UNIX_SKIP_OOB);\n-\t\treturn -EAGAIN;\n-\t}\n-#endif\n-\n \tspin_unlock(\u0026queue-\u003elock);\n \n \tunix_orphan_scm(sk, skb);\n@@ -2945,9 +2742,6 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,\n \n \tif (unlikely(flags \u0026 MSG_OOB)) {\n \t\terr = -EOPNOTSUPP;\n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\t\terr = unix_stream_recv_urg(state);\n-#endif\n \t\tgoto out;\n \t}\n \n@@ -2978,15 +2772,6 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,\n \t\tlast = skb = skb_peek(\u0026sk-\u003esk_receive_queue);\n \n again:\n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\t\tif (skb) {\n-\t\t\tskb = manage_oob(skb, \u0026last, sk, flags, copied);\n-\t\t\tif (!skb \u0026\u0026 (copied || !state-\u003esize)) {\n-\t\t\t\tunix_state_unlock(sk);\n-\t\t\t\tbreak;\n-\t\t\t}\n-\t\t}\n-#endif\n \t\tif (skb == NULL) {\n \t\t\tif (copied \u003e= target)\n \t\t\t\tgoto unlock;\n@@ -3322,37 +3107,6 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)\n \tcase SIOCUNIXFILE:\n \t\terr = unix_open_file(sk);\n \t\tbreak;\n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\tcase SIOCATMARK:\n-\t\t{\n-\t\t\tstruct unix_sock *u = unix_sk(sk);\n-\t\t\tstruct sk_buff *skb;\n-\t\t\tint answ = 0;\n-\n-\t\t\tif (sk-\u003esk_type != SOCK_STREAM)\n-\t\t\t\treturn -EOPNOTSUPP;\n-\n-\t\t\tmutex_lock(\u0026u-\u003eiolock);\n-\n-\t\t\tskb = skb_peek(\u0026sk-\u003esk_receive_queue);\n-\t\t\tif (skb) {\n-\t\t\t\tstruct sk_buff *oob_skb = READ_ONCE(u-\u003eoob_skb);\n-\t\t\t\tstruct sk_buff *next_skb;\n-\n-\t\t\t\tnext_skb = skb_peek_next(skb, \u0026sk-\u003esk_receive_queue);\n-\n-\t\t\t\tif (skb == oob_skb ||\n-\t\t\t\t    (!unix_skb_len(skb) \u0026\u0026\n-\t\t\t\t     (!oob_skb || next_skb == oob_skb)))\n-\t\t\t\t\tansw = 1;\n-\t\t\t}\n-\n-\t\t\tmutex_unlock(\u0026u-\u003eiolock);\n-\n-\t\t\terr = put_user(answ, (int __user *)arg);\n-\t\t}\n-\t\tbreak;\n-#endif\n \tdefault:\n \t\terr = -ENOIOCTLCMD;\n \t\tbreak;\n@@ -3392,10 +3146,6 @@ static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wa\n \t\tmask |= EPOLLIN | EPOLLRDNORM;\n \tif (sk_is_readable(sk))\n \t\tmask |= EPOLLIN | EPOLLRDNORM;\n-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)\n-\tif (READ_ONCE(unix_sk(sk)-\u003eoob_skb))\n-\t\tmask |= EPOLLPRI;\n-#endif\n \n \t/* Connection-based need to check for termination and startup */\n \tif ((sk-\u003esk_type == SOCK_STREAM || sk-\u003esk_type == SOCK_SEQPACKET) \u0026\u0026\ndiff --git a/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c b/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c\nindex 9c461d93113db2..e73d3a674a741c 100644\n--- a/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c\n+++ b/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c\n@@ -103,7 +103,6 @@ struct redir_spec {\n struct socket_spec {\n \tint family;\n \tint sotype;\n-\tint send_flags;\n \tint in[2];\n \tint out[2];\n };\n@@ -197,12 +196,12 @@ static void handle_unsupported(int sd_send, int sd_peer, int sd_in, int sd_out,\n \t\ttry_recv(\"bpf.recv(sd_recv)\", sd_recv, MSG_DONTWAIT, false);\n }\n \n-static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,\n+static void test_send_redir_recv(int sd_send, int sd_peer,\n \t\t\t\t int sd_in, int sd_out, int sd_recv,\n \t\t\t\t struct maps *maps, int status)\n {\n \tunsigned int drop, pass;\n-\tchar *send_buf = \"ab\";\n+\tchar *send_buf = \"a\";\n \tchar recv_buf = '\\0';\n \tssize_t n, len = 1;\n \n@@ -217,10 +216,7 @@ static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,\n \tif (xbpf_map_update_elem(maps-\u003eout, \u0026u32(0), \u0026u64(sd_out), BPF_NOEXIST))\n \t\tgoto del_in;\n \n-\t/* Last byte is OOB data when send_flags has MSG_OOB bit set */\n-\tif (send_flags \u0026 MSG_OOB)\n-\t\tlen++;\n-\tn = send(sd_send, send_buf, len, send_flags);\n+\tn = send(sd_send, send_buf, len, 0);\n \tif (n \u003e= 0 \u0026\u0026 n \u003c len)\n \t\tFAIL(\"incomplete send\");\n \tif (n \u003c 0) {\n@@ -255,20 +251,6 @@ static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,\n \tif (recv_buf != send_buf[0])\n \t\tFAIL(\"recv(): payload check, %02x != %02x\", recv_buf, send_buf[0]);\n \n-\tif (send_flags \u0026 MSG_OOB) {\n-\t\t/* Fail reading OOB while in sockmap */\n-\t\ttry_recv(\"bpf.recv(sd_out, MSG_OOB)\", sd_out,\n-\t\t\t MSG_OOB | MSG_DONTWAIT, false);\n-\n-\t\t/* Remove sd_out from sockmap */\n-\t\txbpf_map_delete_elem(maps-\u003eout, \u0026u32(0));\n-\n-\t\t/* Check that OOB was dropped on redirect */\n-\t\ttry_recv(\"recv(sd_out, MSG_OOB)\", sd_out,\n-\t\t\t MSG_OOB | MSG_DONTWAIT, false);\n-\n-\t\tgoto del_in;\n-\t}\n out:\n \txbpf_map_delete_elem(maps-\u003eout, \u0026u32(0));\n del_in:\n@@ -328,7 +310,7 @@ static void test_socket(enum bpf_map_type type, struct redir_spec *redir,\n \t\t\tstruct maps *maps, struct socket_spec *s_in,\n \t\t\tstruct socket_spec *s_out)\n {\n-\tint fd_in, fd_out, fd_send, fd_peer, fd_recv, flags, status;\n+\tint fd_in, fd_out, fd_send, fd_peer, fd_recv, status;\n \tconst char *in_str, *out_str;\n \tchar s[MAX_TEST_NAME];\n \n@@ -337,26 +319,24 @@ static void test_socket(enum bpf_map_type type, struct redir_spec *redir,\n \tfd_send = s_in-\u003ein[redir-\u003eidx_send];\n \tfd_peer = s_in-\u003ein[redir-\u003eidx_send ^ 1];\n \tfd_recv = s_out-\u003eout[redir-\u003eidx_recv];\n-\tflags = s_in-\u003esend_flags;\n \n \tin_str = socket_kind_to_str(fd_in);\n \tout_str = socket_kind_to_str(fd_out);\n \tstatus = get_support_status(redir-\u003eprog_type, in_str, out_str);\n \n \tsnprintf(s, sizeof(s),\n-\t\t \"%-4s %-17s %-5s %s %-5s%6s\",\n-\t\t /* hash sk_skb-to-ingress u_str → v_str (OOB) */\n+\t\t \"%-4s %-17s %-5s %s %-5s\",\n+\t\t /* hash sk_skb-to-ingress u_str → v_str */\n \t\t type == BPF_MAP_TYPE_SOCKMAP ? \"map\" : \"hash\",\n \t\t redir-\u003ename,\n \t\t in_str,\n \t\t status \u0026 SUPPORTED ? \"→\" : \" \",\n-\t\t out_str,\n-\t\t (flags \u0026 MSG_OOB) ? \"(OOB)\" : \"\");\n+\t\t out_str);\n \n \tif (!test__start_subtest(s))\n \t\treturn;\n \n-\ttest_send_redir_recv(fd_send, flags, fd_peer, fd_in, fd_out, fd_recv,\n+\ttest_send_redir_recv(fd_send, fd_peer, fd_in, fd_out, fd_recv,\n \t\t\t     maps, status);\n }\n \n@@ -365,12 +345,10 @@ static void test_redir(enum bpf_map_type type, struct redir_spec *redir,\n {\n \tstruct socket_spec *s, sockets[] = {\n \t\t{ AF_INET, SOCK_STREAM },\n-\t\t// { AF_INET, SOCK_STREAM, MSG_OOB }, /* Known to be broken */\n \t\t{ AF_INET6, SOCK_STREAM },\n \t\t{ AF_INET, SOCK_DGRAM },\n \t\t{ AF_INET6, SOCK_DGRAM },\n \t\t{ AF_UNIX, SOCK_STREAM },\n-\t\t{ AF_UNIX, SOCK_STREAM, MSG_OOB },\n \t\t{ AF_UNIX, SOCK_DGRAM },\n \t\t// { AF_UNIX, SOCK_SEQPACKET},\t/* Unsupported BPF_MAP_UPDATE_ELEM */\n \t\t{ AF_VSOCK, SOCK_STREAM },\n@@ -392,10 +370,9 @@ static void test_redir(enum bpf_map_type type, struct redir_spec *redir,\n \t\t\tstruct socket_spec *out = \u0026sockets[j];\n \t\t\tstruct socket_spec *in = \u0026sockets[i];\n \n-\t\t\t/* Skip intra-proto and between variants */\n-\t\t\tif (out-\u003esend_flags ||\n-\t\t\t    (in-\u003efamily == out-\u003efamily \u0026\u0026\n-\t\t\t     in-\u003esotype == out-\u003esotype))\n+\t\t\t/* Skip intra-proto */\n+\t\t\tif (in-\u003efamily == out-\u003efamily \u0026\u0026\n+\t\t\t    in-\u003esotype == out-\u003esotype)\n \t\t\t\tcontinue;\n \n \t\t\ttest_socket(type, redir, maps, in, out);\ndiff --git a/tools/testing/selftests/landlock/config b/tools/testing/selftests/landlock/config\nindex 5568d7a4b2d79d..fb617c1a4ce3fa 100644\n--- a/tools/testing/selftests/landlock/config\n+++ b/tools/testing/selftests/landlock/config\n@@ -1,4 +1,3 @@\n-CONFIG_AF_UNIX_OOB=y\n CONFIG_AUDIT=y\n CONFIG_CGROUPS=y\n CONFIG_CGROUP_SCHED=y\ndiff --git a/tools/testing/selftests/landlock/scoped_signal_test.c b/tools/testing/selftests/landlock/scoped_signal_test.c\nindex 259cdcc8aa5cc1..c4c365007370ac 100644\n--- a/tools/testing/selftests/landlock/scoped_signal_test.c\n+++ b/tools/testing/selftests/landlock/scoped_signal_test.c\n@@ -405,24 +405,6 @@ static int setup_signal_handler(int signal)\n \treturn sigaction(SIGURG, \u0026sa, NULL);\n }\n \n-/*\n- * MSG_OOB might be disabled in the kernel via the CONFIG_AF_UNIX_OOB\n- * switch, so this function can be used for probing for its availability.\n- */\n-static bool has_af_unix_oob(void)\n-{\n-\tbool available = false;\n-\tint sp[2];\n-\n-\tif (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) == 0) {\n-\t\tavailable = (send(sp[0], \".\", 1, MSG_OOB) == 1);\n-\t\tclose(sp[0]);\n-\t\tclose(sp[1]);\n-\t}\n-\n-\treturn available;\n-}\n-\n /* clang-format off */\n FIXTURE(fown) {};\n /* clang-format on */\n@@ -473,8 +455,8 @@ FIXTURE_TEARDOWN(fown)\n }\n \n /*\n- * Sending an out of bound message will trigger the SIGURG signal\n- * through file_send_sigiotask.\n+ * Sending a message to a socket with O_ASYNC will trigger\n+ * the SIGURG signal through file_send_sigiotask.\n  */\n TEST_F(fown, sigurg_socket)\n {\n@@ -485,9 +467,6 @@ TEST_F(fown, sigurg_socket)\n \tint pipe_parent[2], pipe_child[2];\n \tpid_t child;\n \n-\tif (!has_af_unix_oob())\n-\t\tSKIP(return, \"CONFIG_AF_UNIX_OOB / MSG_OOB not available\");\n-\n \tmemset(\u0026server_address, 0, sizeof(server_address));\n \tset_unix_address(\u0026server_address, 0);\n \n@@ -521,14 +500,14 @@ TEST_F(fown, sigurg_socket)\n \t\t */\n \t\tASSERT_EQ(1, read(pipe_parent[0], \u0026buffer_child, 1));\n \t\t/* May signal itself. */\n-\t\tASSERT_EQ(1, send(client_socket, \".\", 1, MSG_OOB));\n-\t\tEXPECT_EQ(0, close(client_socket));\n+\t\tASSERT_EQ(1, send(client_socket, \".\", 1, 0));\n \t\tASSERT_EQ(1, write(pipe_child[1], \".\", 1));\n \t\tEXPECT_EQ(0, close(pipe_child[1]));\n \n \t\t/* Waits for the message to be received. */\n \t\tASSERT_EQ(1, read(pipe_parent[0], \u0026buffer_child, 1));\n \t\tEXPECT_EQ(0, close(pipe_parent[0]));\n+\t\tEXPECT_EQ(0, close(client_socket));\n \n \t\tif (variant-\u003esandbox_setown == SANDBOX_BEFORE_SETOWN) {\n \t\t\tASSERT_EQ(0, signal_received);\n@@ -560,20 +539,22 @@ TEST_F(fown, sigurg_socket)\n \t\tcreate_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);\n \n \t/*\n-\t * Sets the child to receive SIGURG for MSG_OOB.  This uncommon use is\n+\t * Sets the child to receive SIGURG.  This uncommon use is\n \t * a valid attack scenario which also simplifies this test.\n \t */\n \tASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child));\n+\tASSERT_EQ(0, fcntl(recv_socket, F_SETSIG, SIGURG));\n+\tASSERT_EQ(0, fcntl(recv_socket, F_SETFL, O_ASYNC));\n \n \tif (variant-\u003esandbox_setown == SANDBOX_AFTER_SETOWN)\n \t\tcreate_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);\n \n \tASSERT_EQ(1, write(pipe_parent[1], \".\", 1));\n \n-\t/* Waits for the child to send MSG_OOB. */\n+\t/* Waits for the child to send data. */\n \tASSERT_EQ(1, read(pipe_child[0], \u0026buffer_parent, 1));\n \tEXPECT_EQ(0, close(pipe_child[0]));\n-\tASSERT_EQ(1, recv(recv_socket, \u0026buffer_parent, 1, MSG_OOB));\n+\tASSERT_EQ(1, recv(recv_socket, \u0026buffer_parent, 1, 0));\n \tEXPECT_EQ(0, close(recv_socket));\n \tEXPECT_EQ(0, close(server_socket));\n \tASSERT_EQ(1, write(pipe_parent[1], \".\", 1));\n@@ -1085,11 +1066,15 @@ TEST_F(trace_fown, deny_scope_fown)\n \t\t */\n \t\tASSERT_EQ(1, read(pipe_parent[0], \u0026buffer_child, 1));\n \t\t/* Triggers the asynchronous SIGURG to this file owner. */\n-\t\tASSERT_EQ(1, send(client_socket, \".\", 1, MSG_OOB));\n-\t\tEXPECT_EQ(0, close(client_socket));\n+\t\tASSERT_EQ(1, send(client_socket, \".\", 1, 0));\n \t\tASSERT_EQ(1, write(pipe_child[1], \".\", 1));\n \t\tEXPECT_EQ(0, close(pipe_child[1]));\n \n+\t\t/* Waits for the message to be received. */\n+\t\tASSERT_EQ(1, read(pipe_parent[0], \u0026buffer_child, 1));\n+\t\tEXPECT_EQ(0, close(pipe_parent[0]));\n+\t\tEXPECT_EQ(0, close(client_socket));\n+\n \t\t_exit(0);\n \t\treturn;\n \t}\n@@ -1114,19 +1099,23 @@ TEST_F(trace_fown, deny_scope_fown)\n \t\tcreate_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);\n \n \t/*\n-\t * Sets the child to receive SIGURG for MSG_OOB.  This uncommon use is a\n+\t * Sets the child to receive SIGURG.  This uncommon use is a\n \t * valid attack scenario which also simplifies this test.\n \t */\n \tASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child));\n+\tASSERT_EQ(0, fcntl(recv_socket, F_SETSIG, SIGURG));\n+\tASSERT_EQ(0, fcntl(recv_socket, F_SETFL, O_ASYNC));\n \n \tASSERT_EQ(1, write(pipe_parent[1], \".\", 1));\n \n-\t/* Waits for the child to send MSG_OOB. */\n+\t/* Waits for the child to send data. */\n \tASSERT_EQ(1, read(pipe_child[0], \u0026buffer_parent, 1));\n \tEXPECT_EQ(0, close(pipe_child[0]));\n-\tASSERT_EQ(1, recv(recv_socket, \u0026buffer_parent, 1, MSG_OOB));\n+\tASSERT_EQ(1, recv(recv_socket, \u0026buffer_parent, 1, 0));\n \tEXPECT_EQ(0, close(recv_socket));\n \tEXPECT_EQ(0, close(server_socket));\n+\tASSERT_EQ(1, write(pipe_parent[1], \".\", 1));\n+\tEXPECT_EQ(0, close(pipe_parent[1]));\n \n \tASSERT_EQ(child, waitpid(child, \u0026status, 0));\n \tASSERT_TRUE(WIFEXITED(status));\ndiff --git a/tools/testing/selftests/net/af_unix/.gitignore b/tools/testing/selftests/net/af_unix/.gitignore\nindex 954f0958dd0342..b926e7f9625fe0 100644\n--- a/tools/testing/selftests/net/af_unix/.gitignore\n+++ b/tools/testing/selftests/net/af_unix/.gitignore\n@@ -1,5 +1,4 @@\n diag_uid\n-msg_oob\n scm_inq\n scm_pidfd\n scm_rights\ndiff --git a/tools/testing/selftests/net/af_unix/Makefile b/tools/testing/selftests/net/af_unix/Makefile\nindex 45b841758f1bfb..fb2e09f0f44bb6 100644\n--- a/tools/testing/selftests/net/af_unix/Makefile\n+++ b/tools/testing/selftests/net/af_unix/Makefile\n@@ -7,7 +7,6 @@ CFLAGS += $(KHDR_INCLUDES) -Wall $(call cc-option,-Wflex-array-member-not-at-end\n \n TEST_GEN_PROGS := \\\n \tdiag_uid \\\n-\tmsg_oob \\\n \tscm_inq \\\n \tscm_pidfd \\\n \tscm_rights \\\ndiff --git a/tools/testing/selftests/net/af_unix/config b/tools/testing/selftests/net/af_unix/config\nindex 46450fea840736..549c33203c4111 100644\n--- a/tools/testing/selftests/net/af_unix/config\n+++ b/tools/testing/selftests/net/af_unix/config\n@@ -1,4 +1,3 @@\n-CONFIG_AF_UNIX_OOB=y\n CONFIG_BPF=y\n CONFIG_BPF_EVENTS=y\n CONFIG_BPF_JIT=y\ndiff --git a/tools/testing/selftests/net/af_unix/msg_oob.c b/tools/testing/selftests/net/af_unix/msg_oob.c\ndeleted file mode 100644\nindex f051d79f7a8ef6..00000000000000\n--- a/tools/testing/selftests/net/af_unix/msg_oob.c\n+++ /dev/null\n@@ -1,958 +0,0 @@\n-// SPDX-License-Identifier: GPL-2.0\n-/* Copyright Amazon.com Inc. or its affiliates. */\n-\n-#include \u003cfcntl.h\u003e\n-#include \u003cstring.h\u003e\n-#include \u003cunistd.h\u003e\n-\n-#include \u003cnetinet/in.h\u003e\n-#include \u003csys/epoll.h\u003e\n-#include \u003csys/ioctl.h\u003e\n-#include \u003csys/signalfd.h\u003e\n-#include \u003csys/socket.h\u003e\n-\n-#include \"kselftest_harness.h\"\n-\n-#define BUF_SZ\t32\n-\n-FIXTURE(msg_oob)\n-{\n-\tint fd[4];\t\t/* 0: AF_UNIX sender\n-\t\t\t\t * 1: AF_UNIX receiver\n-\t\t\t\t * 2: TCP sender\n-\t\t\t\t * 3: TCP receiver\n-\t\t\t\t */\n-\tint signal_fd;\n-\tint epoll_fd[2];\t/* 0: AF_UNIX receiver\n-\t\t\t\t * 1: TCP receiver\n-\t\t\t\t */\n-\tbool tcp_compliant;\n-};\n-\n-FIXTURE_VARIANT(msg_oob)\n-{\n-\tbool peek;\n-};\n-\n-FIXTURE_VARIANT_ADD(msg_oob, no_peek)\n-{\n-\t.peek = false,\n-};\n-\n-FIXTURE_VARIANT_ADD(msg_oob, peek)\n-{\n-\t.peek = true\n-};\n-\n-static void create_unix_socketpair(struct __test_metadata *_metadata,\n-\t\t\t\t   FIXTURE_DATA(msg_oob) *self)\n-{\n-\tint ret;\n-\n-\tret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, self-\u003efd);\n-\tASSERT_EQ(ret, 0);\n-}\n-\n-static void create_tcp_socketpair(struct __test_metadata *_metadata,\n-\t\t\t\t  FIXTURE_DATA(msg_oob) *self)\n-{\n-\tstruct sockaddr_in addr;\n-\tsocklen_t addrlen;\n-\tint listen_fd;\n-\tint ret;\n-\n-\tlisten_fd = socket(AF_INET, SOCK_STREAM, 0);\n-\tASSERT_GE(listen_fd, 0);\n-\n-\tret = listen(listen_fd, -1);\n-\tASSERT_EQ(ret, 0);\n-\n-\taddrlen = sizeof(addr);\n-\tret = getsockname(listen_fd, (struct sockaddr *)\u0026addr, \u0026addrlen);\n-\tASSERT_EQ(ret, 0);\n-\n-\tself-\u003efd[2] = socket(AF_INET, SOCK_STREAM, 0);\n-\tASSERT_GE(self-\u003efd[2], 0);\n-\n-\tret = connect(self-\u003efd[2], (struct sockaddr *)\u0026addr, addrlen);\n-\tASSERT_EQ(ret, 0);\n-\n-\tself-\u003efd[3] = accept(listen_fd, (struct sockaddr *)\u0026addr, \u0026addrlen);\n-\tASSERT_GE(self-\u003efd[3], 0);\n-\n-\tret = fcntl(self-\u003efd[3], F_SETFL, O_NONBLOCK);\n-\tASSERT_EQ(ret, 0);\n-}\n-\n-static void setup_sigurg(struct __test_metadata *_metadata,\n-\t\t\t FIXTURE_DATA(msg_oob) *self)\n-{\n-\tstruct signalfd_siginfo siginfo;\n-\tint pid = getpid();\n-\tsigset_t mask;\n-\tint i, ret;\n-\n-\tfor (i = 0; i \u003c 2; i++) {\n-\t\tret = ioctl(self-\u003efd[i * 2 + 1], FIOSETOWN, \u0026pid);\n-\t\tASSERT_EQ(ret, 0);\n-\t}\n-\n-\tret = sigemptyset(\u0026mask);\n-\tASSERT_EQ(ret, 0);\n-\n-\tret = sigaddset(\u0026mask, SIGURG);\n-\tASSERT_EQ(ret, 0);\n-\n-\tret = sigprocmask(SIG_BLOCK, \u0026mask, NULL);\n-\tASSERT_EQ(ret, 0);\n-\n-\tself-\u003esignal_fd = signalfd(-1, \u0026mask, SFD_NONBLOCK);\n-\tASSERT_GE(self-\u003esignal_fd, 0);\n-\n-\tret = read(self-\u003esignal_fd, \u0026siginfo, sizeof(siginfo));\n-\tASSERT_EQ(ret, -1);\n-}\n-\n-static void setup_epollpri(struct __test_metadata *_metadata,\n-\t\t\t   FIXTURE_DATA(msg_oob) *self)\n-{\n-\tstruct epoll_event event = {\n-\t\t.events = EPOLLPRI,\n-\t};\n-\tint i;\n-\n-\tfor (i = 0; i \u003c 2; i++) {\n-\t\tint ret;\n-\n-\t\tself-\u003eepoll_fd[i] = epoll_create1(0);\n-\t\tASSERT_GE(self-\u003eepoll_fd[i], 0);\n-\n-\t\tret = epoll_ctl(self-\u003eepoll_fd[i], EPOLL_CTL_ADD, self-\u003efd[i * 2 + 1], \u0026event);\n-\t\tASSERT_EQ(ret, 0);\n-\t}\n-}\n-\n-static void close_sockets(FIXTURE_DATA(msg_oob) *self)\n-{\n-\tint i;\n-\n-\tfor (i = 0; i \u003c 4; i++)\n-\t\tclose(self-\u003efd[i]);\n-}\n-\n-FIXTURE_SETUP(msg_oob)\n-{\n-\tcreate_unix_socketpair(_metadata, self);\n-\tcreate_tcp_socketpair(_metadata, self);\n-\n-\tsetup_sigurg(_metadata, self);\n-\tsetup_epollpri(_metadata, self);\n-\n-\tself-\u003etcp_compliant = true;\n-}\n-\n-FIXTURE_TEARDOWN(msg_oob)\n-{\n-\tclose_sockets(self);\n-}\n-\n-static void __epollpair(struct __test_metadata *_metadata,\n-\t\t\tFIXTURE_DATA(msg_oob) *self,\n-\t\t\tbool oob_remaining)\n-{\n-\tstruct epoll_event event[2] = {};\n-\tint i, ret[2];\n-\n-\tfor (i = 0; i \u003c 2; i++)\n-\t\tret[i] = epoll_wait(self-\u003eepoll_fd[i], \u0026event[i], 1, 0);\n-\n-\tASSERT_EQ(ret[0], oob_remaining);\n-\n-\tif (self-\u003etcp_compliant)\n-\t\tASSERT_EQ(ret[0], ret[1]);\n-\n-\tif (oob_remaining) {\n-\t\tASSERT_EQ(event[0].events, EPOLLPRI);\n-\n-\t\tif (self-\u003etcp_compliant)\n-\t\t\tASSERT_EQ(event[0].events, event[1].events);\n-\t}\n-}\n-\n-static void __sendpair(struct __test_metadata *_metadata,\n-\t\t       FIXTURE_DATA(msg_oob) *self,\n-\t\t       const void *buf, size_t len, int flags)\n-{\n-\tint i, ret[2];\n-\n-\tfor (i = 0; i \u003c 2; i++) {\n-\t\tstruct signalfd_siginfo siginfo = {};\n-\t\tint bytes;\n-\n-\t\tret[i] = send(self-\u003efd[i * 2], buf, len, flags);\n-\n-\t\tbytes = read(self-\u003esignal_fd, \u0026siginfo, sizeof(siginfo));\n-\n-\t\tif (flags \u0026 MSG_OOB) {\n-\t\t\tASSERT_EQ(bytes, sizeof(siginfo));\n-\t\t\tASSERT_EQ(siginfo.ssi_signo, SIGURG);\n-\n-\t\t\tbytes = read(self-\u003esignal_fd, \u0026siginfo, sizeof(siginfo));\n-\t\t}\n-\n-\t\tASSERT_EQ(bytes, -1);\n-\t}\n-\n-\tASSERT_EQ(ret[0], len);\n-\tASSERT_EQ(ret[0], ret[1]);\n-}\n-\n-static void __recvpair(struct __test_metadata *_metadata,\n-\t\t       FIXTURE_DATA(msg_oob) *self,\n-\t\t       const char *expected_buf, int expected_len,\n-\t\t       int buf_len, int flags, bool is_sender)\n-{\n-\tint i, ret[2], recv_errno[2], expected_errno = 0;\n-\tchar recv_buf[2][BUF_SZ] = {};\n-\tbool printed = false;\n-\n-\tASSERT_GE(BUF_SZ, buf_len);\n-\n-\terrno = 0;\n-\n-\tfor (i = 0; i \u003c 2; i++) {\n-\t\tint index = is_sender ? i * 2 : i * 2 + 1;\n-\n-\t\tret[i] = recv(self-\u003efd[index], recv_buf[i], buf_len, flags);\n-\t\trecv_errno[i] = errno;\n-\t}\n-\n-\tif (expected_len \u003c 0) {\n-\t\texpected_errno = -expected_len;\n-\t\texpected_len = -1;\n-\t}\n-\n-\tif (ret[0] != expected_len || recv_errno[0] != expected_errno) {\n-\t\tTH_LOG(\"AF_UNIX :%s\", ret[0] \u003c 0 ? strerror(recv_errno[0]) : recv_buf[0]);\n-\t\tTH_LOG(\"Expected:%s\", expected_errno ? strerror(expected_errno) : expected_buf);\n-\n-\t\tASSERT_EQ(ret[0], expected_len);\n-\t\tASSERT_EQ(recv_errno[0], expected_errno);\n-\t}\n-\n-\tif (ret[0] != ret[1] || recv_errno[0] != recv_errno[1]) {\n-\t\tTH_LOG(\"AF_UNIX :%s\", ret[0] \u003c 0 ? strerror(recv_errno[0]) : recv_buf[0]);\n-\t\tTH_LOG(\"TCP     :%s\", ret[1] \u003c 0 ? strerror(recv_errno[1]) : recv_buf[1]);\n-\n-\t\tprinted = true;\n-\n-\t\tif (self-\u003etcp_compliant) {\n-\t\t\tASSERT_EQ(ret[0], ret[1]);\n-\t\t\tASSERT_EQ(recv_errno[0], recv_errno[1]);\n-\t\t}\n-\t}\n-\n-\tif (expected_len \u003e= 0) {\n-\t\tint cmp;\n-\n-\t\tcmp = strncmp(expected_buf, recv_buf[0], expected_len);\n-\t\tif (cmp) {\n-\t\t\tTH_LOG(\"AF_UNIX :%s\", ret[0] \u003c 0 ? strerror(recv_errno[0]) : recv_buf[0]);\n-\t\t\tTH_LOG(\"Expected:%s\", expected_errno ? strerror(expected_errno) : expected_buf);\n-\n-\t\t\tASSERT_EQ(cmp, 0);\n-\t\t}\n-\n-\t\tcmp = strncmp(recv_buf[0], recv_buf[1], expected_len);\n-\t\tif (cmp) {\n-\t\t\tif (!printed) {\n-\t\t\t\tTH_LOG(\"AF_UNIX :%s\", ret[0] \u003c 0 ? strerror(recv_errno[0]) : recv_buf[0]);\n-\t\t\t\tTH_LOG(\"TCP     :%s\", ret[1] \u003c 0 ? strerror(recv_errno[1]) : recv_buf[1]);\n-\t\t\t}\n-\n-\t\t\tif (self-\u003etcp_compliant)\n-\t\t\t\tASSERT_EQ(cmp, 0);\n-\t\t}\n-\t}\n-}\n-\n-static void __setinlinepair(struct __test_metadata *_metadata,\n-\t\t\t    FIXTURE_DATA(msg_oob) *self)\n-{\n-\tint i, oob_inline = 1;\n-\n-\tfor (i = 0; i \u003c 2; i++) {\n-\t\tint ret;\n-\n-\t\tret = setsockopt(self-\u003efd[i * 2 + 1], SOL_SOCKET, SO_OOBINLINE,\n-\t\t\t\t \u0026oob_inline, sizeof(oob_inline));\n-\t\tASSERT_EQ(ret, 0);\n-\t}\n-}\n-\n-static void __setblockingpair(struct __test_metadata *_metadata,\n-\t\t\t      FIXTURE_DATA(msg_oob) *self)\n-{\n-\tint i;\n-\n-\tfor (i = 0; i \u003c 2; i++) {\n-\t\tint ret, old_flags, flags;\n-\n-\t\told_flags = fcntl(self-\u003efd[i * 2 + 1], F_GETFL, 0);\n-\t\tASSERT_NE(-1, old_flags);\n-\n-\t\tret = fcntl(self-\u003efd[i * 2 + 1], F_SETFL, old_flags \u0026 ~O_NONBLOCK);\n-\t\tASSERT_EQ(0, ret);\n-\n-\t\tflags = fcntl(self-\u003efd[i * 2 + 1], F_GETFL, 0);\n-\t\tASSERT_EQ(old_flags \u0026 ~O_NONBLOCK, flags);\n-\t}\n-}\n-\n-static void __siocatmarkpair(struct __test_metadata *_metadata,\n-\t\t\t     FIXTURE_DATA(msg_oob) *self,\n-\t\t\t     bool oob_head)\n-{\n-\tint answ[2] = {};\n-\tint i;\n-\n-\tfor (i = 0; i \u003c 2; i++) {\n-\t\tint ret;\n-\n-\t\tret = ioctl(self-\u003efd[i * 2 + 1], SIOCATMARK, \u0026answ[i]);\n-\t\tASSERT_EQ(ret, 0);\n-\t}\n-\n-\tASSERT_EQ(answ[0], oob_head);\n-\n-\tif (self-\u003etcp_compliant)\n-\t\tASSERT_EQ(answ[0], answ[1]);\n-}\n-\n-static void __resetpair(struct __test_metadata *_metadata,\n-\t\t\tFIXTURE_DATA(msg_oob) *self,\n-\t\t\tconst FIXTURE_VARIANT(msg_oob) *variant,\n-\t\t\tbool reset)\n-{\n-\tint i;\n-\n-\tfor (i = 0; i \u003c 2; i++)\n-\t\tclose(self-\u003efd[i * 2 + 1]);\n-\n-\t__recvpair(_metadata, self, \"\", reset ? -ECONNRESET : 0, 1,\n-\t\t   variant-\u003epeek ? MSG_PEEK : 0, true);\n-}\n-\n-#define sendpair(buf, len, flags)\t\t\t\t\t\\\n-\t__sendpair(_metadata, self, buf, len, flags)\n-\n-#define recvpair(expected_buf, expected_len, buf_len, flags)\t\t\\\n-\tdo {\t\t\t\t\t\t\t\t\\\n-\t\tif (variant-\u003epeek)\t\t\t\t\t\\\n-\t\t\t__recvpair(_metadata, self,\t\t\t\\\n-\t\t\t\t   expected_buf, expected_len,\t\t\\\n-\t\t\t\t   buf_len, (flags) | MSG_PEEK, false);\t\\\n-\t\t__recvpair(_metadata, self,\t\t\t\t\\\n-\t\t\t   expected_buf, expected_len,\t\t\t\\\n-\t\t\t   buf_len, flags, false);\t\t\t\\\n-\t} while (0)\n-\n-#define epollpair(oob_remaining)\t\t\t\t\t\\\n-\t__epollpair(_metadata, self, oob_remaining)\n-\n-#define siocatmarkpair(oob_head)\t\t\t\t\t\\\n-\t__siocatmarkpair(_metadata, self, oob_head)\n-\n-#define setinlinepair()\t\t\t\t\t\t\t\\\n-\t__setinlinepair(_metadata, self)\n-\n-#define setblockingpair()\t\t\t\t\t\t\\\n-\t__setblockingpair(_metadata, self)\n-\n-#define resetpair(reset)\t\t\t\t\t\t\\\n-\t__resetpair(_metadata, self, variant, reset)\n-\n-#define tcp_incompliant\t\t\t\t\t\t\t\\\n-\tfor (self-\u003etcp_compliant = false;\t\t\t\t\\\n-\t     self-\u003etcp_compliant == false;\t\t\t\t\\\n-\t     self-\u003etcp_compliant = true)\n-\n-TEST_F(msg_oob, non_oob)\n-{\n-\tsendpair(\"x\", 1, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"\", -EINVAL, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(true);\n-}\n-\n-TEST_F(msg_oob, non_oob_no_reset)\n-{\n-\tsendpair(\"x\", 1, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"x\", 1, 1, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, oob)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"x\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\ttcp_incompliant {\n-\t\tresetpair(false);\t\t/* TCP sets -ECONNRESET for ex-OOB. */\n-\t}\n-}\n-\n-TEST_F(msg_oob, oob_reset)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\tresetpair(true);\n-}\n-\n-TEST_F(msg_oob, oob_drop)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"\", -EAGAIN, 1, 0);\t\t/* Drop OOB. */\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"\", -EINVAL, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, oob_ahead)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"o\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hell\", 4, 4, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\ttcp_incompliant {\n-\t\tresetpair(false);\t\t/* TCP sets -ECONNRESET for ex-OOB. */\n-\t}\n-}\n-\n-TEST_F(msg_oob, oob_break)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hell\", 4, 5, 0);\t\t/* Break at OOB even with enough buffer. */\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"o\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"\", -EAGAIN, 1, 0);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, oob_ahead_break)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"world\", 5, 0);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"o\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hell\", 4, 9, 0);\t\t/* Break at OOB even after it's recv()ed. */\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"world\", 5, 5, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, oob_break_drop)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"world\", 5, 0);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hell\", 4, 10, 0);\t\t/* Break at OOB even with enough buffer. */\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"world\", 5, 10, 0);\t\t/* Drop OOB and recv() the next skb. */\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"\", -EINVAL, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, ex_oob_break)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"wor\", 3, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"ld\", 2, 0);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hellowo\", 7, 10, 0);\t\t/* Break at OOB but not at ex-OOB. */\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"r\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"ld\", 2, 2, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, ex_oob_drop)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\tsendpair(\"y\", 1, MSG_OOB);\t\t/* TCP drops \"x\" at this moment. */\n-\tepollpair(true);\n-\n-\ttcp_incompliant {\n-\t\tsiocatmarkpair(false);\n-\n-\t\trecvpair(\"x\", 1, 1, 0);\t\t/* TCP drops \"y\" by passing through it. */\n-\t\tepollpair(true);\n-\t\tsiocatmarkpair(true);\n-\n-\t\trecvpair(\"y\", 1, 1, MSG_OOB);\t/* TCP returns -EINVAL. */\n-\t\tepollpair(false);\n-\t\tsiocatmarkpair(true);\n-\t}\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, ex_oob_drop_2)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\tsendpair(\"y\", 1, MSG_OOB);\t\t/* TCP drops \"x\" at this moment. */\n-\tepollpair(true);\n-\n-\ttcp_incompliant {\n-\t\tsiocatmarkpair(false);\n-\t}\n-\n-\trecvpair(\"y\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\n-\ttcp_incompliant {\n-\t\tsiocatmarkpair(false);\n-\n-\t\trecvpair(\"x\", 1, 1, 0);\t\t/* TCP returns -EAGAIN. */\n-\t\tepollpair(false);\n-\t\tsiocatmarkpair(true);\n-\t}\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, ex_oob_oob)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"x\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\tsendpair(\"y\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"\", -EAGAIN, 1, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"\", -EINVAL, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, ex_oob_ex_oob)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"x\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\tsendpair(\"y\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"y\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\ttcp_incompliant {\n-\t\tresetpair(false);\t\t/* TCP sets -ECONNRESET for ex-OOB. */\n-\t}\n-}\n-\n-TEST_F(msg_oob, ex_oob_ex_oob_oob)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"x\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\tsendpair(\"y\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"y\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\tsendpair(\"z\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-}\n-\n-TEST_F(msg_oob, ex_oob_ahead_break)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"wor\", 3, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"r\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"ld\", 2, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\ttcp_incompliant {\n-\t\trecvpair(\"hellowol\", 8, 10, 0);\t/* TCP recv()s \"helloworl\", why \"r\" ?? */\n-\t}\n-\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"d\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\ttcp_incompliant {\n-\t\tresetpair(false);\t\t/* TCP sets -ECONNRESET for ex-OOB. */\n-\t}\n-}\n-\n-TEST_F(msg_oob, ex_oob_siocatmark)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"o\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"world\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hell\", 4, 4, 0);\t\t/* Intentionally stop at ex-OOB. */\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(true);\n-}\n-\n-TEST_F(msg_oob, inline_oob)\n-{\n-\tsetinlinepair();\n-\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"\", -EINVAL, 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"x\", 1, 1, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, inline_oob_break)\n-{\n-\tsetinlinepair();\n-\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"\", -EINVAL, 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hell\", 4, 5, 0);\t\t/* Break at OOB but not at ex-OOB. */\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"o\", 1, 1, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, inline_oob_ahead_break)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"world\", 5, 0);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"o\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tsetinlinepair();\n-\n-\trecvpair(\"hell\", 4, 9, 0);\t\t/* Break at OOB even with enough buffer. */\n-\tepollpair(false);\n-\tsiocatmarkpair(true);\n-\n-\ttcp_incompliant {\n-\t\trecvpair(\"world\", 5, 6, 0);\t/* TCP recv()s \"oworld\", ... \"o\" ??? */\n-\t}\n-\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, inline_ex_oob_break)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"wor\", 3, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsendpair(\"ld\", 2, 0);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tsetinlinepair();\n-\n-\trecvpair(\"hellowo\", 7, 10, 0);\t\t/* Break at OOB but not at ex-OOB. */\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"rld\", 3, 3, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, inline_ex_oob_no_drop)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\tsetinlinepair();\n-\n-\tsendpair(\"y\", 1, MSG_OOB);\t\t/* TCP does NOT drops \"x\" at this moment. */\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"x\", 1, 1, 0);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\trecvpair(\"y\", 1, 1, 0);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, inline_ex_oob_drop)\n-{\n-\tsendpair(\"x\", 1, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(true);\n-\n-\tsendpair(\"y\", 1, MSG_OOB);\t\t/* TCP drops \"x\" at this moment. */\n-\tepollpair(true);\n-\n-\tsetinlinepair();\n-\n-\ttcp_incompliant {\n-\t\tsiocatmarkpair(false);\n-\n-\t\trecvpair(\"x\", 1, 1, 0);\t\t/* TCP recv()s \"y\". */\n-\t\tepollpair(true);\n-\t\tsiocatmarkpair(true);\n-\n-\t\trecvpair(\"y\", 1, 1, 0);\t\t/* TCP returns -EAGAIN. */\n-\t\tepollpair(false);\n-\t\tsiocatmarkpair(false);\n-\t}\n-\n-\tresetpair(false);\n-}\n-\n-TEST_F(msg_oob, inline_ex_oob_siocatmark)\n-{\n-\tsendpair(\"hello\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"o\", 1, 1, MSG_OOB);\n-\tepollpair(false);\n-\tsiocatmarkpair(false);\n-\n-\tsetinlinepair();\n-\n-\tsendpair(\"world\", 5, MSG_OOB);\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\trecvpair(\"hell\", 4, 4, 0);\t\t/* Intentionally stop at ex-OOB. */\n-\tepollpair(true);\n-\tsiocatmarkpair(false);\n-\n-\tresetpair(true);\n-}\n-\n-TEST_F(msg_oob, zero_buf_oob)\n-{\n-\tsendpair(\"a\", 1, MSG_OOB);\n-\trecvpair(\"\", 0, 0, 0);\n-}\n-\n-TEST_F(msg_oob, zero_buf_oob_blocking)\n-{\n-\tsendpair(\"a\", 1, MSG_OOB);\n-\tsetblockingpair();\n-\trecvpair(\"\", 0, 0, 0);\n-}\n-\n-TEST_F(msg_oob, zero_buf_non_oob_oob)\n-{\n-\tsendpair(\"ab\", 2, MSG_OOB);\n-\trecvpair(\"\", 0, 0, 0);\n-}\n-\n-TEST_F(msg_oob, zero_buf_non_oob_oob_blocking)\n-{\n-\tsendpair(\"ab\", 2, MSG_OOB);\n-\tsetblockingpair();\n-\trecvpair(\"\", 0, 0, 0);\n-}\n-\n-TEST_F(msg_oob, zero_buf_ex_oob_oob)\n-{\n-\tsendpair(\"a\", 1, MSG_OOB);\n-\trecvpair(\"a\", 1, 1, MSG_OOB);\n-\n-\tsendpair(\"b\", 1, MSG_OOB);\n-\trecvpair(\"\", 0, 0, 0);\n-}\n-\n-TEST_F(msg_oob, zero_buf_ex_oob_oob_blocking)\n-{\n-\tsendpair(\"a\", 1, MSG_OOB);\n-\trecvpair(\"a\", 1, 1, MSG_OOB);\n-\n-\tsendpair(\"b\", 1, MSG_OOB);\n-\tsetblockingpair();\n-\trecvpair(\"\", 0, 0, 0);\n-}\n-\n-TEST_HARNESS_MAIN\ndiff --git a/tools/testing/selftests/net/af_unix/scm_rights.c b/tools/testing/selftests/net/af_unix/scm_rights.c\nindex c165f250220a4a..40459fb21b733b 100644\n--- a/tools/testing/selftests/net/af_unix/scm_rights.c\n+++ b/tools/testing/selftests/net/af_unix/scm_rights.c\n@@ -21,7 +21,6 @@ FIXTURE_VARIANT(scm_rights)\n {\n \tchar name[32];\n \tint type;\n-\tint flags;\n \tbool test_listener;\n \tbool disabled;\n };\n@@ -30,7 +29,6 @@ FIXTURE_VARIANT_ADD(scm_rights, dgram)\n {\n \t.name = \"UNIX \",\n \t.type = SOCK_DGRAM,\n-\t.flags = 0,\n \t.test_listener = false,\n \t.disabled = false,\n };\n@@ -39,7 +37,6 @@ FIXTURE_VARIANT_ADD(scm_rights, dgram_disabled)\n {\n \t.name = \"UNIX \",\n \t.type = SOCK_DGRAM,\n-\t.flags = 0,\n \t.test_listener = false,\n \t.disabled = true,\n };\n@@ -48,7 +45,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream)\n {\n \t.name = \"UNIX-STREAM \",\n \t.type = SOCK_STREAM,\n-\t.flags = 0,\n \t.test_listener = false,\n \t.disabled = false,\n };\n@@ -57,25 +53,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_disabled)\n {\n \t.name = \"UNIX-STREAM \",\n \t.type = SOCK_STREAM,\n-\t.flags = 0,\n-\t.test_listener = false,\n-\t.disabled = true,\n-};\n-\n-FIXTURE_VARIANT_ADD(scm_rights, stream_oob)\n-{\n-\t.name = \"UNIX-STREAM \",\n-\t.type = SOCK_STREAM,\n-\t.flags = MSG_OOB,\n-\t.test_listener = false,\n-\t.disabled = false,\n-};\n-\n-FIXTURE_VARIANT_ADD(scm_rights, stream_oob_disabled)\n-{\n-\t.name = \"UNIX-STREAM \",\n-\t.type = SOCK_STREAM,\n-\t.flags = MSG_OOB,\n \t.test_listener = false,\n \t.disabled = true,\n };\n@@ -84,7 +61,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_listener)\n {\n \t.name = \"UNIX-STREAM \",\n \t.type = SOCK_STREAM,\n-\t.flags = 0,\n \t.test_listener = true,\n \t.disabled = false,\n };\n@@ -93,25 +69,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_listener_disabled)\n {\n \t.name = \"UNIX-STREAM \",\n \t.type = SOCK_STREAM,\n-\t.flags = 0,\n-\t.test_listener = true,\n-\t.disabled = true,\n-};\n-\n-FIXTURE_VARIANT_ADD(scm_rights, stream_listener_oob)\n-{\n-\t.name = \"UNIX-STREAM \",\n-\t.type = SOCK_STREAM,\n-\t.flags = MSG_OOB,\n-\t.test_listener = true,\n-\t.disabled = false,\n-};\n-\n-FIXTURE_VARIANT_ADD(scm_rights, stream_listener_oob_disabled)\n-{\n-\t.name = \"UNIX-STREAM \",\n-\t.type = SOCK_STREAM,\n-\t.flags = MSG_OOB,\n \t.test_listener = true,\n \t.disabled = true,\n };\n@@ -297,7 +254,7 @@ void __send_fd(struct __test_metadata *_metadata,\n \tcmsg-\u003ecmsg_len = CMSG_LEN(sizeof(fds));\n \tmemcpy(CMSG_DATA(cmsg), fds, sizeof(fds));\n \n-\tret = sendmsg(self-\u003efd[receiver * 2 + 1], \u0026msg, variant-\u003eflags);\n+\tret = sendmsg(self-\u003efd[receiver * 2 + 1], \u0026msg, 0);\n \n \tif (variant-\u003edisabled) {\n \t\tASSERT_EQ(-1, ret);\n"
}

2/1 2026/11/19 10:05 agent patch-evaluator
2m Model:
core

Args:
null

Results:
{
  "EnableConfigs": [
    "UNIX"
  ],
  "FocusSymbols": [
    "unix_stream_sendmsg",
    "unix_stream_recvmsg",
    "unix_stream_read_generic",
    "unix_stream_read_skb",
    "unix_ioctl"
  ],
  "Reasoning": "The patch removes MSG_OOB support from AF_UNIX domain sockets, modifying reachable core networking logic in net/unix/af_unix.c (including unix_stream_sendmsg, unix_stream_read_generic, unix_stream_read_skb, and unix_ioctl) as well as struct unix_sock. Because the changes modify control flow and data structures in a core networking subsystem that is readily reachable from userspace, fuzzing is warranted to detect potential regressions or latent issues.",
  "WorthFuzzing": true
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 736c028d859beb41a198ff8012e3397c240d43cd
Author: syz-cluster <triage@syzkaller.com>
Date:   Thu Nov 19 10:05:48 2026 +0000

    syz-cluster: applied patch under review

diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index bb1b3dee02e829..43fb892eee065a 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -50,9 +50,6 @@ struct unix_sock {
 	int			inq_len;
 	bool			recvmsg_inq;
 	bool			scm_rights_notrunc;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	struct sk_buff		*oob_skb;
-#endif
 };
 
 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk)
diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h
index fa2fe89905573a..c010fdebf24975 100644
--- a/include/net/dropreason-core.h
+++ b/include/net/dropreason-core.h
@@ -10,7 +10,6 @@
 	FN(SOCKET_FILTER)		\
 	FN(SOCKET_RCVBUFF)		\
 	FN(UNIX_DISCONNECT)		\
-	FN(UNIX_SKIP_OOB)		\
 	FN(PKT_TOO_SMALL)		\
 	FN(TCP_CSUM)			\
 	FN(UDP_CSUM)			\
@@ -164,11 +163,6 @@ enum skb_drop_reason {
 	 * during send() that the peer has been close()d.
 	 */
 	SKB_DROP_REASON_UNIX_DISCONNECT,
-	/**
-	 * @SKB_DROP_REASON_UNIX_SKIP_OOB: Out-Of-Band data is skipped by
-	 * recv() without MSG_OOB so dropped.
-	 */
-	SKB_DROP_REASON_UNIX_SKIP_OOB,
 	/** @SKB_DROP_REASON_PKT_TOO_SMALL: packet size is too small */
 	SKB_DROP_REASON_PKT_TOO_SMALL,
 	/** @SKB_DROP_REASON_TCP_CSUM: TCP checksum error */
diff --git a/net/unix/Kconfig b/net/unix/Kconfig
index 6f1783c1659b81..d378726d5eb922 100644
--- a/net/unix/Kconfig
+++ b/net/unix/Kconfig
@@ -16,13 +16,6 @@ config UNIX
 
 	  Say Y unless you know what you are doing.
 
-config	AF_UNIX_OOB
-	bool "UNIX: out-of-bound messages"
-	depends on UNIX
-	default y
-	help
-	  Support for MSG_OOB in UNIX domain sockets. If unsure, say Y.
-
 config UNIX_DIAG
 	tristate "UNIX: socket monitoring interface"
 	depends on UNIX
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 96c13682938e19..cc5c7fa40b4d48 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -688,20 +688,12 @@ static void unix_release_sock(struct sock *sk, int embrion)
 
 	unix_state_unlock(sk);
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	u->oob_skb = NULL;
-#endif
-
 	wake_up_interruptible_all(&u->peer_wait);
 
 	if (skpair != NULL) {
 		if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) {
 			struct sk_buff *skb = skb_peek(&sk->sk_receive_queue);
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-			if (skb && !unix_skb_len(skb))
-				skb = skb_peek_next(skb, &sk->sk_receive_queue);
-#endif
 			unix_state_lock(skpair);
 			/* No more writes */
 			WRITE_ONCE(skpair->sk_shutdown, SHUTDOWN_MASK);
@@ -2325,67 +2317,6 @@ static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg,
  */
 #define UNIX_SKB_FRAGS_SZ (PAGE_SIZE << get_order(32768))
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-static int queue_oob(struct sock *sk, struct msghdr *msg, struct sock *other,
-		     struct scm_cookie *scm, bool fds_sent)
-{
-	struct unix_sock *ousk = unix_sk(other);
-	struct sk_buff *skb;
-	int err;
-
-	skb = sock_alloc_send_skb(sk, 1, msg->msg_flags & MSG_DONTWAIT, &err);
-
-	if (!skb)
-		return err;
-
-	err = unix_scm_to_skb(scm, skb, !fds_sent);
-	if (err < 0)
-		goto out;
-
-	err = unix_maybe_add_creds(skb, sk, other);
-	if (err)
-		goto out;
-
-	skb_put(skb, 1);
-	err = skb_copy_datagram_from_iter(skb, 0, &msg->msg_iter, 1);
-
-	if (err)
-		goto out;
-
-	unix_state_lock(other);
-
-	if (sock_flag(other, SOCK_DEAD) ||
-	    (other->sk_shutdown & RCV_SHUTDOWN)) {
-		err = -EPIPE;
-		goto out_unlock;
-	}
-
-	if (UNIXCB(skb).fp && !other->sk_scm_rights) {
-		err = -EPERM;
-		goto out_unlock;
-	}
-
-	scm_stat_add(other, skb);
-
-	spin_lock(&other->sk_receive_queue.lock);
-	WRITE_ONCE(ousk->oob_skb, skb);
-	WRITE_ONCE(ousk->inq_len, ousk->inq_len + 1);
-	__skb_queue_tail(&other->sk_receive_queue, skb);
-	spin_unlock(&other->sk_receive_queue.lock);
-
-	sk_send_sigurg(other);
-	unix_state_unlock(other);
-	READ_ONCE(other->sk_data_ready)(other);
-
-	return 0;
-out_unlock:
-	unix_state_unlock(other);
-out:
-	consume_skb(skb);
-	return err;
-}
-#endif
-
 static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
 			       size_t len)
 {
@@ -2403,12 +2334,7 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
 
 	if (msg->msg_flags & MSG_OOB) {
 		err = -EOPNOTSUPP;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-		if (len)
-			len--;
-		else
-#endif
-			goto out_err;
+		goto out_err;
 	}
 
 	if (msg->msg_namelen) {
@@ -2505,15 +2431,6 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
 		sent += size;
 	}
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	if (msg->msg_flags & MSG_OOB) {
-		err = queue_oob(sk, msg, other, &scm, fds_sent);
-		if (err)
-			goto out_err;
-		sent++;
-	}
-#endif
-
 	scm_destroy(&scm);
 
 	return sent;
@@ -2765,115 +2682,6 @@ struct unix_stream_read_state {
 	unsigned int splice_flags;
 };
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-static int unix_stream_recv_urg(struct unix_stream_read_state *state)
-{
-	struct sk_buff *oob_skb, *read_skb = NULL;
-	struct socket *sock = state->socket;
-	struct sock *sk = sock->sk;
-	struct unix_sock *u = unix_sk(sk);
-	int chunk = 1;
-
-	mutex_lock(&u->iolock);
-	unix_state_lock(sk);
-	spin_lock(&sk->sk_receive_queue.lock);
-
-	if (sock_flag(sk, SOCK_URGINLINE) || !u->oob_skb) {
-		spin_unlock(&sk->sk_receive_queue.lock);
-		unix_state_unlock(sk);
-		mutex_unlock(&u->iolock);
-		return -EINVAL;
-	}
-
-	oob_skb = u->oob_skb;
-
-	if (!(state->flags & MSG_PEEK)) {
-		WRITE_ONCE(u->oob_skb, NULL);
-		WRITE_ONCE(u->inq_len, u->inq_len - 1);
-
-		if (oob_skb->prev != (struct sk_buff *)&sk->sk_receive_queue &&
-		    !unix_skb_len(oob_skb->prev)) {
-			read_skb = oob_skb->prev;
-			__skb_unlink(read_skb, &sk->sk_receive_queue);
-		}
-	}
-
-	spin_unlock(&sk->sk_receive_queue.lock);
-	unix_state_unlock(sk);
-
-	chunk = state->recv_actor(oob_skb, 0, chunk, state);
-
-	if (!(state->flags & MSG_PEEK))
-		UNIXCB(oob_skb).consumed += 1;
-
-	mutex_unlock(&u->iolock);
-
-	consume_skb(read_skb);
-
-	if (chunk < 0)
-		return -EFAULT;
-
-	state->msg->msg_flags |= MSG_OOB;
-	return 1;
-}
-
-static struct sk_buff *manage_oob(struct sk_buff *skb, struct sk_buff **last,
-				  struct sock *sk, int flags, int copied)
-{
-	struct sk_buff *read_skb = NULL, *unread_skb = NULL;
-	struct unix_sock *u = unix_sk(sk);
-
-	if (likely(unix_skb_len(skb) && skb != READ_ONCE(u->oob_skb)))
-		return skb;
-
-	spin_lock(&sk->sk_receive_queue.lock);
-
-	if (!unix_skb_len(skb)) {
-		if (copied && (!u->oob_skb || skb == u->oob_skb)) {
-			skb = NULL;
-		} else if (flags & MSG_PEEK) {
-			*last = skb;
-			skb = skb_peek_next(skb, &sk->sk_receive_queue);
-		} else {
-			read_skb = skb;
-			skb = skb_peek_next(skb, &sk->sk_receive_queue);
-			__skb_unlink(read_skb, &sk->sk_receive_queue);
-			*last = skb;
-		}
-
-		if (!skb)
-			goto unlock;
-	}
-
-	if (skb != u->oob_skb)
-		goto unlock;
-
-	if (copied) {
-		skb = NULL;
-	} else if (!(flags & MSG_PEEK)) {
-		WRITE_ONCE(u->oob_skb, NULL);
-
-		if (!sock_flag(sk, SOCK_URGINLINE)) {
-			__skb_unlink(skb, &sk->sk_receive_queue);
-			unread_skb = skb;
-			skb = skb_peek(&sk->sk_receive_queue);
-			*last = skb;
-		}
-	} else if (!sock_flag(sk, SOCK_URGINLINE)) {
-		*last = skb;
-		skb = skb_peek_next(skb, &sk->sk_receive_queue);
-	}
-
-unlock:
-	spin_unlock(&sk->sk_receive_queue.lock);
-
-	consume_skb(read_skb);
-	kfree_skb_reason(unread_skb, SKB_DROP_REASON_UNIX_SKIP_OOB);
-
-	return skb;
-}
-#endif
-
 static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
 {
 	struct sk_buff_head *queue = &sk->sk_receive_queue;
@@ -2900,17 +2708,6 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
 
 	WRITE_ONCE(u->inq_len, u->inq_len - unix_skb_len(skb));
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	if (skb == u->oob_skb) {
-		WRITE_ONCE(u->oob_skb, NULL);
-		spin_unlock(&queue->lock);
-		mutex_unlock(&u->iolock);
-
-		kfree_skb_reason(skb, SKB_DROP_REASON_UNIX_SKIP_OOB);
-		return -EAGAIN;
-	}
-#endif
-
 	spin_unlock(&queue->lock);
 
 	unix_orphan_scm(sk, skb);
@@ -2945,9 +2742,6 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,
 
 	if (unlikely(flags & MSG_OOB)) {
 		err = -EOPNOTSUPP;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-		err = unix_stream_recv_urg(state);
-#endif
 		goto out;
 	}
 
@@ -2978,15 +2772,6 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,
 		last = skb = skb_peek(&sk->sk_receive_queue);
 
 again:
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-		if (skb) {
-			skb = manage_oob(skb, &last, sk, flags, copied);
-			if (!skb && (copied || !state->size)) {
-				unix_state_unlock(sk);
-				break;
-			}
-		}
-#endif
 		if (skb == NULL) {
 			if (copied >= target)
 				goto unlock;
@@ -3322,37 +3107,6 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
 	case SIOCUNIXFILE:
 		err = unix_open_file(sk);
 		break;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	case SIOCATMARK:
-		{
-			struct unix_sock *u = unix_sk(sk);
-			struct sk_buff *skb;
-			int answ = 0;
-
-			if (sk->sk_type != SOCK_STREAM)
-				return -EOPNOTSUPP;
-
-			mutex_lock(&u->iolock);
-
-			skb = skb_peek(&sk->sk_receive_queue);
-			if (skb) {
-				struct sk_buff *oob_skb = READ_ONCE(u->oob_skb);
-				struct sk_buff *next_skb;
-
-				next_skb = skb_peek_next(skb, &sk->sk_receive_queue);
-
-				if (skb == oob_skb ||
-				    (!unix_skb_len(skb) &&
-				     (!oob_skb || next_skb == oob_skb)))
-					answ = 1;
-			}
-
-			mutex_unlock(&u->iolock);
-
-			err = put_user(answ, (int __user *)arg);
-		}
-		break;
-#endif
 	default:
 		err = -ENOIOCTLCMD;
 		break;
@@ -3392,10 +3146,6 @@ static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wa
 		mask |= EPOLLIN | EPOLLRDNORM;
 	if (sk_is_readable(sk))
 		mask |= EPOLLIN | EPOLLRDNORM;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	if (READ_ONCE(unix_sk(sk)->oob_skb))
-		mask |= EPOLLPRI;
-#endif
 
 	/* Connection-based need to check for termination and startup */
 	if ((sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) &&
diff --git a/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c b/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c
index 9c461d93113db2..e73d3a674a741c 100644
--- a/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c
+++ b/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c
@@ -103,7 +103,6 @@ struct redir_spec {
 struct socket_spec {
 	int family;
 	int sotype;
-	int send_flags;
 	int in[2];
 	int out[2];
 };
@@ -197,12 +196,12 @@ static void handle_unsupported(int sd_send, int sd_peer, int sd_in, int sd_out,
 		try_recv("bpf.recv(sd_recv)", sd_recv, MSG_DONTWAIT, false);
 }
 
-static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,
+static void test_send_redir_recv(int sd_send, int sd_peer,
 				 int sd_in, int sd_out, int sd_recv,
 				 struct maps *maps, int status)
 {
 	unsigned int drop, pass;
-	char *send_buf = "ab";
+	char *send_buf = "a";
 	char recv_buf = '\0';
 	ssize_t n, len = 1;
 
@@ -217,10 +216,7 @@ static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,
 	if (xbpf_map_update_elem(maps->out, &u32(0), &u64(sd_out), BPF_NOEXIST))
 		goto del_in;
 
-	/* Last byte is OOB data when send_flags has MSG_OOB bit set */
-	if (send_flags & MSG_OOB)
-		len++;
-	n = send(sd_send, send_buf, len, send_flags);
+	n = send(sd_send, send_buf, len, 0);
 	if (n >= 0 && n < len)
 		FAIL("incomplete send");
 	if (n < 0) {
@@ -255,20 +251,6 @@ static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,
 	if (recv_buf != send_buf[0])
 		FAIL("recv(): payload check, %02x != %02x", recv_buf, send_buf[0]);
 
-	if (send_flags & MSG_OOB) {
-		/* Fail reading OOB while in sockmap */
-		try_recv("bpf.recv(sd_out, MSG_OOB)", sd_out,
-			 MSG_OOB | MSG_DONTWAIT, false);
-
-		/* Remove sd_out from sockmap */
-		xbpf_map_delete_elem(maps->out, &u32(0));
-
-		/* Check that OOB was dropped on redirect */
-		try_recv("recv(sd_out, MSG_OOB)", sd_out,
-			 MSG_OOB | MSG_DONTWAIT, false);
-
-		goto del_in;
-	}
 out:
 	xbpf_map_delete_elem(maps->out, &u32(0));
 del_in:
@@ -328,7 +310,7 @@ static void test_socket(enum bpf_map_type type, struct redir_spec *redir,
 			struct maps *maps, struct socket_spec *s_in,
 			struct socket_spec *s_out)
 {
-	int fd_in, fd_out, fd_send, fd_peer, fd_recv, flags, status;
+	int fd_in, fd_out, fd_send, fd_peer, fd_recv, status;
 	const char *in_str, *out_str;
 	char s[MAX_TEST_NAME];
 
@@ -337,26 +319,24 @@ static void test_socket(enum bpf_map_type type, struct redir_spec *redir,
 	fd_send = s_in->in[redir->idx_send];
 	fd_peer = s_in->in[redir->idx_send ^ 1];
 	fd_recv = s_out->out[redir->idx_recv];
-	flags = s_in->send_flags;
 
 	in_str = socket_kind_to_str(fd_in);
 	out_str = socket_kind_to_str(fd_out);
 	status = get_support_status(redir->prog_type, in_str, out_str);
 
 	snprintf(s, sizeof(s),
-		 "%-4s %-17s %-5s %s %-5s%6s",
-		 /* hash sk_skb-to-ingress u_str → v_str (OOB) */
+		 "%-4s %-17s %-5s %s %-5s",
+		 /* hash sk_skb-to-ingress u_str → v_str */
 		 type == BPF_MAP_TYPE_SOCKMAP ? "map" : "hash",
 		 redir->name,
 		 in_str,
 		 status & SUPPORTED ? "→" : " ",
-		 out_str,
-		 (flags & MSG_OOB) ? "(OOB)" : "");
+		 out_str);
 
 	if (!test__start_subtest(s))
 		return;
 
-	test_send_redir_recv(fd_send, flags, fd_peer, fd_in, fd_out, fd_recv,
+	test_send_redir_recv(fd_send, fd_peer, fd_in, fd_out, fd_recv,
 			     maps, status);
 }
 
@@ -365,12 +345,10 @@ static void test_redir(enum bpf_map_type type, struct redir_spec *redir,
 {
 	struct socket_spec *s, sockets[] = {
 		{ AF_INET, SOCK_STREAM },
-		// { AF_INET, SOCK_STREAM, MSG_OOB }, /* Known to be broken */
 		{ AF_INET6, SOCK_STREAM },
 		{ AF_INET, SOCK_DGRAM },
 		{ AF_INET6, SOCK_DGRAM },
 		{ AF_UNIX, SOCK_STREAM },
-		{ AF_UNIX, SOCK_STREAM, MSG_OOB },
 		{ AF_UNIX, SOCK_DGRAM },
 		// { AF_UNIX, SOCK_SEQPACKET},	/* Unsupported BPF_MAP_UPDATE_ELEM */
 		{ AF_VSOCK, SOCK_STREAM },
@@ -392,10 +370,9 @@ static void test_redir(enum bpf_map_type type, struct redir_spec *redir,
 			struct socket_spec *out = &sockets[j];
 			struct socket_spec *in = &sockets[i];
 
-			/* Skip intra-proto and between variants */
-			if (out->send_flags ||
-			    (in->family == out->family &&
-			     in->sotype == out->sotype))
+			/* Skip intra-proto */
+			if (in->family == out->family &&
+			    in->sotype == out->sotype)
 				continue;
 
 			test_socket(type, redir, maps, in, out);
diff --git a/tools/testing/selftests/landlock/config b/tools/testing/selftests/landlock/config
index 5568d7a4b2d79d..fb617c1a4ce3fa 100644
--- a/tools/testing/selftests/landlock/config
+++ b/tools/testing/selftests/landlock/config
@@ -1,4 +1,3 @@
-CONFIG_AF_UNIX_OOB=y
 CONFIG_AUDIT=y
 CONFIG_CGROUPS=y
 CONFIG_CGROUP_SCHED=y
diff --git a/tools/testing/selftests/landlock/scoped_signal_test.c b/tools/testing/selftests/landlock/scoped_signal_test.c
index 259cdcc8aa5cc1..c4c365007370ac 100644
--- a/tools/testing/selftests/landlock/scoped_signal_test.c
+++ b/tools/testing/selftests/landlock/scoped_signal_test.c
@@ -405,24 +405,6 @@ static int setup_signal_handler(int signal)
 	return sigaction(SIGURG, &sa, NULL);
 }
 
-/*
- * MSG_OOB might be disabled in the kernel via the CONFIG_AF_UNIX_OOB
- * switch, so this function can be used for probing for its availability.
- */
-static bool has_af_unix_oob(void)
-{
-	bool available = false;
-	int sp[2];
-
-	if (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) == 0) {
-		available = (send(sp[0], ".", 1, MSG_OOB) == 1);
-		close(sp[0]);
-		close(sp[1]);
-	}
-
-	return available;
-}
-
 /* clang-format off */
 FIXTURE(fown) {};
 /* clang-format on */
@@ -473,8 +455,8 @@ FIXTURE_TEARDOWN(fown)
 }
 
 /*
- * Sending an out of bound message will trigger the SIGURG signal
- * through file_send_sigiotask.
+ * Sending a message to a socket with O_ASYNC will trigger
+ * the SIGURG signal through file_send_sigiotask.
  */
 TEST_F(fown, sigurg_socket)
 {
@@ -485,9 +467,6 @@ TEST_F(fown, sigurg_socket)
 	int pipe_parent[2], pipe_child[2];
 	pid_t child;
 
-	if (!has_af_unix_oob())
-		SKIP(return, "CONFIG_AF_UNIX_OOB / MSG_OOB not available");
-
 	memset(&server_address, 0, sizeof(server_address));
 	set_unix_address(&server_address, 0);
 
@@ -521,14 +500,14 @@ TEST_F(fown, sigurg_socket)
 		 */
 		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
 		/* May signal itself. */
-		ASSERT_EQ(1, send(client_socket, ".", 1, MSG_OOB));
-		EXPECT_EQ(0, close(client_socket));
+		ASSERT_EQ(1, send(client_socket, ".", 1, 0));
 		ASSERT_EQ(1, write(pipe_child[1], ".", 1));
 		EXPECT_EQ(0, close(pipe_child[1]));
 
 		/* Waits for the message to be received. */
 		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
 		EXPECT_EQ(0, close(pipe_parent[0]));
+		EXPECT_EQ(0, close(client_socket));
 
 		if (variant->sandbox_setown == SANDBOX_BEFORE_SETOWN) {
 			ASSERT_EQ(0, signal_received);
@@ -560,20 +539,22 @@ TEST_F(fown, sigurg_socket)
 		create_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);
 
 	/*
-	 * Sets the child to receive SIGURG for MSG_OOB.  This uncommon use is
+	 * Sets the child to receive SIGURG.  This uncommon use is
 	 * a valid attack scenario which also simplifies this test.
 	 */
 	ASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETSIG, SIGURG));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETFL, O_ASYNC));
 
 	if (variant->sandbox_setown == SANDBOX_AFTER_SETOWN)
 		create_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);
 
 	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
 
-	/* Waits for the child to send MSG_OOB. */
+	/* Waits for the child to send data. */
 	ASSERT_EQ(1, read(pipe_child[0], &buffer_parent, 1));
 	EXPECT_EQ(0, close(pipe_child[0]));
-	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, MSG_OOB));
+	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, 0));
 	EXPECT_EQ(0, close(recv_socket));
 	EXPECT_EQ(0, close(server_socket));
 	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
@@ -1085,11 +1066,15 @@ TEST_F(trace_fown, deny_scope_fown)
 		 */
 		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
 		/* Triggers the asynchronous SIGURG to this file owner. */
-		ASSERT_EQ(1, send(client_socket, ".", 1, MSG_OOB));
-		EXPECT_EQ(0, close(client_socket));
+		ASSERT_EQ(1, send(client_socket, ".", 1, 0));
 		ASSERT_EQ(1, write(pipe_child[1], ".", 1));
 		EXPECT_EQ(0, close(pipe_child[1]));
 
+		/* Waits for the message to be received. */
+		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
+		EXPECT_EQ(0, close(pipe_parent[0]));
+		EXPECT_EQ(0, close(client_socket));
+
 		_exit(0);
 		return;
 	}
@@ -1114,19 +1099,23 @@ TEST_F(trace_fown, deny_scope_fown)
 		create_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);
 
 	/*
-	 * Sets the child to receive SIGURG for MSG_OOB.  This uncommon use is a
+	 * Sets the child to receive SIGURG.  This uncommon use is a
 	 * valid attack scenario which also simplifies this test.
 	 */
 	ASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETSIG, SIGURG));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETFL, O_ASYNC));
 
 	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
 
-	/* Waits for the child to send MSG_OOB. */
+	/* Waits for the child to send data. */
 	ASSERT_EQ(1, read(pipe_child[0], &buffer_parent, 1));
 	EXPECT_EQ(0, close(pipe_child[0]));
-	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, MSG_OOB));
+	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, 0));
 	EXPECT_EQ(0, close(recv_socket));
 	EXPECT_EQ(0, close(server_socket));
+	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
+	EXPECT_EQ(0, close(pipe_parent[1]));
 
 	ASSERT_EQ(child, waitpid(child, &status, 0));
 	ASSERT_TRUE(WIFEXITED(status));
diff --git a/tools/testing/selftests/net/af_unix/.gitignore b/tools/testing/selftests/net/af_unix/.gitignore
index 954f0958dd0342..b926e7f9625fe0 100644
--- a/tools/testing/selftests/net/af_unix/.gitignore
+++ b/tools/testing/selftests/net/af_unix/.gitignore
@@ -1,5 +1,4 @@
 diag_uid
-msg_oob
 scm_inq
 scm_pidfd
 scm_rights
diff --git a/tools/testing/selftests/net/af_unix/Makefile b/tools/testing/selftests/net/af_unix/Makefile
index 45b841758f1bfb..fb2e09f0f44bb6 100644
--- a/tools/testing/selftests/net/af_unix/Makefile
+++ b/tools/testing/selftests/net/af_unix/Makefile
@@ -7,7 +7,6 @@ CFLAGS += $(KHDR_INCLUDES) -Wall $(call cc-option,-Wflex-array-member-not-at-end
 
 TEST_GEN_PROGS := \
 	diag_uid \
-	msg_oob \
 	scm_inq \
 	scm_pidfd \
 	scm_rights \
diff --git a/tools/testing/selftests/net/af_unix/config b/tools/testing/selftests/net/af_unix/config
index 46450fea840736..549c33203c4111 100644
--- a/tools/testing/selftests/net/af_unix/config
+++ b/tools/testing/selftests/net/af_unix/config
@@ -1,4 +1,3 @@
-CONFIG_AF_UNIX_OOB=y
 CONFIG_BPF=y
 CONFIG_BPF_EVENTS=y
 CONFIG_BPF_JIT=y
diff --git a/tools/testing/selftests/net/af_unix/msg_oob.c b/tools/testing/selftests/net/af_unix/msg_oob.c
deleted file mode 100644
index f051d79f7a8ef6..00000000000000
--- a/tools/testing/selftests/net/af_unix/msg_oob.c
+++ /dev/null
@@ -1,958 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/* Copyright Amazon.com Inc. or its affiliates. */
-
-#include <fcntl.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <netinet/in.h>
-#include <sys/epoll.h>
-#include <sys/ioctl.h>
-#include <sys/signalfd.h>
-#include <sys/socket.h>
-
-#include "kselftest_harness.h"
-
-#define BUF_SZ	32
-
-FIXTURE(msg_oob)
-{
-	int fd[4];		/* 0: AF_UNIX sender
-				 * 1: AF_UNIX receiver
-				 * 2: TCP sender
-				 * 3: TCP receiver
-				 */
-	int signal_fd;
-	int epoll_fd[2];	/* 0: AF_UNIX receiver
-				 * 1: TCP receiver
-				 */
-	bool tcp_compliant;
-};
-
-FIXTURE_VARIANT(msg_oob)
-{
-	bool peek;
-};
-
-FIXTURE_VARIANT_ADD(msg_oob, no_peek)
-{
-	.peek = false,
-};
-
-FIXTURE_VARIANT_ADD(msg_oob, peek)
-{
-	.peek = true
-};
-
-static void create_unix_socketpair(struct __test_metadata *_metadata,
-				   FIXTURE_DATA(msg_oob) *self)
-{
-	int ret;
-
-	ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, self->fd);
-	ASSERT_EQ(ret, 0);
-}
-
-static void create_tcp_socketpair(struct __test_metadata *_metadata,
-				  FIXTURE_DATA(msg_oob) *self)
-{
-	struct sockaddr_in addr;
-	socklen_t addrlen;
-	int listen_fd;
-	int ret;
-
-	listen_fd = socket(AF_INET, SOCK_STREAM, 0);
-	ASSERT_GE(listen_fd, 0);
-
-	ret = listen(listen_fd, -1);
-	ASSERT_EQ(ret, 0);
-
-	addrlen = sizeof(addr);
-	ret = getsockname(listen_fd, (struct sockaddr *)&addr, &addrlen);
-	ASSERT_EQ(ret, 0);
-
-	self->fd[2] = socket(AF_INET, SOCK_STREAM, 0);
-	ASSERT_GE(self->fd[2], 0);
-
-	ret = connect(self->fd[2], (struct sockaddr *)&addr, addrlen);
-	ASSERT_EQ(ret, 0);
-
-	self->fd[3] = accept(listen_fd, (struct sockaddr *)&addr, &addrlen);
-	ASSERT_GE(self->fd[3], 0);
-
-	ret = fcntl(self->fd[3], F_SETFL, O_NONBLOCK);
-	ASSERT_EQ(ret, 0);
-}
-
-static void setup_sigurg(struct __test_metadata *_metadata,
-			 FIXTURE_DATA(msg_oob) *self)
-{
-	struct signalfd_siginfo siginfo;
-	int pid = getpid();
-	sigset_t mask;
-	int i, ret;
-
-	for (i = 0; i < 2; i++) {
-		ret = ioctl(self->fd[i * 2 + 1], FIOSETOWN, &pid);
-		ASSERT_EQ(ret, 0);
-	}
-
-	ret = sigemptyset(&mask);
-	ASSERT_EQ(ret, 0);
-
-	ret = sigaddset(&mask, SIGURG);
-	ASSERT_EQ(ret, 0);
-
-	ret = sigprocmask(SIG_BLOCK, &mask, NULL);
-	ASSERT_EQ(ret, 0);
-
-	self->signal_fd = signalfd(-1, &mask, SFD_NONBLOCK);
-	ASSERT_GE(self->signal_fd, 0);
-
-	ret = read(self->signal_fd, &siginfo, sizeof(siginfo));
-	ASSERT_EQ(ret, -1);
-}
-
-static void setup_epollpri(struct __test_metadata *_metadata,
-			   FIXTURE_DATA(msg_oob) *self)
-{
-	struct epoll_event event = {
-		.events = EPOLLPRI,
-	};
-	int i;
-
-	for (i = 0; i < 2; i++) {
-		int ret;
-
-		self->epoll_fd[i] = epoll_create1(0);
-		ASSERT_GE(self->epoll_fd[i], 0);
-
-		ret = epoll_ctl(self->epoll_fd[i], EPOLL_CTL_ADD, self->fd[i * 2 + 1], &event);
-		ASSERT_EQ(ret, 0);
-	}
-}
-
-static void close_sockets(FIXTURE_DATA(msg_oob) *self)
-{
-	int i;
-
-	for (i = 0; i < 4; i++)
-		close(self->fd[i]);
-}
-
-FIXTURE_SETUP(msg_oob)
-{
-	create_unix_socketpair(_metadata, self);
-	create_tcp_socketpair(_metadata, self);
-
-	setup_sigurg(_metadata, self);
-	setup_epollpri(_metadata, self);
-
-	self->tcp_compliant = true;
-}
-
-FIXTURE_TEARDOWN(msg_oob)
-{
-	close_sockets(self);
-}
-
-static void __epollpair(struct __test_metadata *_metadata,
-			FIXTURE_DATA(msg_oob) *self,
-			bool oob_remaining)
-{
-	struct epoll_event event[2] = {};
-	int i, ret[2];
-
-	for (i = 0; i < 2; i++)
-		ret[i] = epoll_wait(self->epoll_fd[i], &event[i], 1, 0);
-
-	ASSERT_EQ(ret[0], oob_remaining);
-
-	if (self->tcp_compliant)
-		ASSERT_EQ(ret[0], ret[1]);
-
-	if (oob_remaining) {
-		ASSERT_EQ(event[0].events, EPOLLPRI);
-
-		if (self->tcp_compliant)
-			ASSERT_EQ(event[0].events, event[1].events);
-	}
-}
-
-static void __sendpair(struct __test_metadata *_metadata,
-		       FIXTURE_DATA(msg_oob) *self,
-		       const void *buf, size_t len, int flags)
-{
-	int i, ret[2];
-
-	for (i = 0; i < 2; i++) {
-		struct signalfd_siginfo siginfo = {};
-		int bytes;
-
-		ret[i] = send(self->fd[i * 2], buf, len, flags);
-
-		bytes = read(self->signal_fd, &siginfo, sizeof(siginfo));
-
-		if (flags & MSG_OOB) {
-			ASSERT_EQ(bytes, sizeof(siginfo));
-			ASSERT_EQ(siginfo.ssi_signo, SIGURG);
-
-			bytes = read(self->signal_fd, &siginfo, sizeof(siginfo));
-		}
-
-		ASSERT_EQ(bytes, -1);
-	}
-
-	ASSERT_EQ(ret[0], len);
-	ASSERT_EQ(ret[0], ret[1]);
-}
-
-static void __recvpair(struct __test_metadata *_metadata,
-		       FIXTURE_DATA(msg_oob) *self,
-		       const char *expected_buf, int expected_len,
-		       int buf_len, int flags, bool is_sender)
-{
-	int i, ret[2], recv_errno[2], expected_errno = 0;
-	char recv_buf[2][BUF_SZ] = {};
-	bool printed = false;
-
-	ASSERT_GE(BUF_SZ, buf_len);
-
-	errno = 0;
-
-	for (i = 0; i < 2; i++) {
-		int index = is_sender ? i * 2 : i * 2 + 1;
-
-		ret[i] = recv(self->fd[index], recv_buf[i], buf_len, flags);
-		recv_errno[i] = errno;
-	}
-
-	if (expected_len < 0) {
-		expected_errno = -expected_len;
-		expected_len = -1;
-	}
-
-	if (ret[0] != expected_len || recv_errno[0] != expected_errno) {
-		TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-		TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf);
-
-		ASSERT_EQ(ret[0], expected_len);
-		ASSERT_EQ(recv_errno[0], expected_errno);
-	}
-
-	if (ret[0] != ret[1] || recv_errno[0] != recv_errno[1]) {
-		TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-		TH_LOG("TCP     :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]);
-
-		printed = true;
-
-		if (self->tcp_compliant) {
-			ASSERT_EQ(ret[0], ret[1]);
-			ASSERT_EQ(recv_errno[0], recv_errno[1]);
-		}
-	}
-
-	if (expected_len >= 0) {
-		int cmp;
-
-		cmp = strncmp(expected_buf, recv_buf[0], expected_len);
-		if (cmp) {
-			TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-			TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf);
-
-			ASSERT_EQ(cmp, 0);
-		}
-
-		cmp = strncmp(recv_buf[0], recv_buf[1], expected_len);
-		if (cmp) {
-			if (!printed) {
-				TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-				TH_LOG("TCP     :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]);
-			}
-
-			if (self->tcp_compliant)
-				ASSERT_EQ(cmp, 0);
-		}
-	}
-}
-
-static void __setinlinepair(struct __test_metadata *_metadata,
-			    FIXTURE_DATA(msg_oob) *self)
-{
-	int i, oob_inline = 1;
-
-	for (i = 0; i < 2; i++) {
-		int ret;
-
-		ret = setsockopt(self->fd[i * 2 + 1], SOL_SOCKET, SO_OOBINLINE,
-				 &oob_inline, sizeof(oob_inline));
-		ASSERT_EQ(ret, 0);
-	}
-}
-
-static void __setblockingpair(struct __test_metadata *_metadata,
-			      FIXTURE_DATA(msg_oob) *self)
-{
-	int i;
-
-	for (i = 0; i < 2; i++) {
-		int ret, old_flags, flags;
-
-		old_flags = fcntl(self->fd[i * 2 + 1], F_GETFL, 0);
-		ASSERT_NE(-1, old_flags);
-
-		ret = fcntl(self->fd[i * 2 + 1], F_SETFL, old_flags & ~O_NONBLOCK);
-		ASSERT_EQ(0, ret);
-
-		flags = fcntl(self->fd[i * 2 + 1], F_GETFL, 0);
-		ASSERT_EQ(old_flags & ~O_NONBLOCK, flags);
-	}
-}
-
-static void __siocatmarkpair(struct __test_metadata *_metadata,
-			     FIXTURE_DATA(msg_oob) *self,
-			     bool oob_head)
-{
-	int answ[2] = {};
-	int i;
-
-	for (i = 0; i < 2; i++) {
-		int ret;
-
-		ret = ioctl(self->fd[i * 2 + 1], SIOCATMARK, &answ[i]);
-		ASSERT_EQ(ret, 0);
-	}
-
-	ASSERT_EQ(answ[0], oob_head);
-
-	if (self->tcp_compliant)
-		ASSERT_EQ(answ[0], answ[1]);
-}
-
-static void __resetpair(struct __test_metadata *_metadata,
-			FIXTURE_DATA(msg_oob) *self,
-			const FIXTURE_VARIANT(msg_oob) *variant,
-			bool reset)
-{
-	int i;
-
-	for (i = 0; i < 2; i++)
-		close(self->fd[i * 2 + 1]);
-
-	__recvpair(_metadata, self, "", reset ? -ECONNRESET : 0, 1,
-		   variant->peek ? MSG_PEEK : 0, true);
-}
-
-#define sendpair(buf, len, flags)					\
-	__sendpair(_metadata, self, buf, len, flags)
-
-#define recvpair(expected_buf, expected_len, buf_len, flags)		\
-	do {								\
-		if (variant->peek)					\
-			__recvpair(_metadata, self,			\
-				   expected_buf, expected_len,		\
-				   buf_len, (flags) | MSG_PEEK, false);	\
-		__recvpair(_metadata, self,				\
-			   expected_buf, expected_len,			\
-			   buf_len, flags, false);			\
-	} while (0)
-
-#define epollpair(oob_remaining)					\
-	__epollpair(_metadata, self, oob_remaining)
-
-#define siocatmarkpair(oob_head)					\
-	__siocatmarkpair(_metadata, self, oob_head)
-
-#define setinlinepair()							\
-	__setinlinepair(_metadata, self)
-
-#define setblockingpair()						\
-	__setblockingpair(_metadata, self)
-
-#define resetpair(reset)						\
-	__resetpair(_metadata, self, variant, reset)
-
-#define tcp_incompliant							\
-	for (self->tcp_compliant = false;				\
-	     self->tcp_compliant == false;				\
-	     self->tcp_compliant = true)
-
-TEST_F(msg_oob, non_oob)
-{
-	sendpair("x", 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, non_oob_no_reset)
-{
-	sendpair("x", 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("x", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, oob_reset)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, oob_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("", -EAGAIN, 1, 0);		/* Drop OOB. */
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob_ahead)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 4, 0);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, oob_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 5, 0);		/* Break at OOB even with enough buffer. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	recvpair("", -EAGAIN, 1, 0);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob_ahead_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 9, 0);		/* Break at OOB even after it's recv()ed. */
-	epollpair(false);
-	siocatmarkpair(true);
-
-	recvpair("world", 5, 5, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob_break_drop)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 10, 0);		/* Break at OOB even with enough buffer. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("world", 5, 10, 0);		/* Drop OOB and recv() the next skb. */
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("wor", 3, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("ld", 2, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hellowo", 7, 10, 0);		/* Break at OOB but not at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("r", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	recvpair("ld", 2, 2, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);		/* TCP drops "x" at this moment. */
-	epollpair(true);
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-
-		recvpair("x", 1, 1, 0);		/* TCP drops "y" by passing through it. */
-		epollpair(true);
-		siocatmarkpair(true);
-
-		recvpair("y", 1, 1, MSG_OOB);	/* TCP returns -EINVAL. */
-		epollpair(false);
-		siocatmarkpair(true);
-	}
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_drop_2)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);		/* TCP drops "x" at this moment. */
-	epollpair(true);
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-	}
-
-	recvpair("y", 1, 1, MSG_OOB);
-	epollpair(false);
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-
-		recvpair("x", 1, 1, 0);		/* TCP returns -EAGAIN. */
-		epollpair(false);
-		siocatmarkpair(true);
-	}
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("", -EAGAIN, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_ex_oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("y", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, ex_oob_ex_oob_oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("y", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("z", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-}
-
-TEST_F(msg_oob, ex_oob_ahead_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("wor", 3, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("r", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	sendpair("ld", 2, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	tcp_incompliant {
-		recvpair("hellowol", 8, 10, 0);	/* TCP recv()s "helloworl", why "r" ?? */
-	}
-
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("d", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, ex_oob_siocatmark)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 4, 0);		/* Intentionally stop at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(false);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, inline_oob)
-{
-	setinlinepair();
-
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_oob_break)
-{
-	setinlinepair();
-
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 5, 0);		/* Break at OOB but not at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("o", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_oob_ahead_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	setinlinepair();
-
-	recvpair("hell", 4, 9, 0);		/* Break at OOB even with enough buffer. */
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		recvpair("world", 5, 6, 0);	/* TCP recv()s "oworld", ... "o" ??? */
-	}
-
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("wor", 3, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("ld", 2, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	setinlinepair();
-
-	recvpair("hellowo", 7, 10, 0);		/* Break at OOB but not at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("rld", 3, 3, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_no_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	setinlinepair();
-
-	sendpair("y", 1, MSG_OOB);		/* TCP does NOT drops "x" at this moment. */
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("x", 1, 1, 0);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("y", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);		/* TCP drops "x" at this moment. */
-	epollpair(true);
-
-	setinlinepair();
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-
-		recvpair("x", 1, 1, 0);		/* TCP recv()s "y". */
-		epollpair(true);
-		siocatmarkpair(true);
-
-		recvpair("y", 1, 1, 0);		/* TCP returns -EAGAIN. */
-		epollpair(false);
-		siocatmarkpair(false);
-	}
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_siocatmark)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	setinlinepair();
-
-	sendpair("world", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 4, 0);		/* Intentionally stop at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(false);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, zero_buf_oob)
-{
-	sendpair("a", 1, MSG_OOB);
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_oob_blocking)
-{
-	sendpair("a", 1, MSG_OOB);
-	setblockingpair();
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_non_oob_oob)
-{
-	sendpair("ab", 2, MSG_OOB);
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_non_oob_oob_blocking)
-{
-	sendpair("ab", 2, MSG_OOB);
-	setblockingpair();
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_ex_oob_oob)
-{
-	sendpair("a", 1, MSG_OOB);
-	recvpair("a", 1, 1, MSG_OOB);
-
-	sendpair("b", 1, MSG_OOB);
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_ex_oob_oob_blocking)
-{
-	sendpair("a", 1, MSG_OOB);
-	recvpair("a", 1, 1, MSG_OOB);
-
-	sendpair("b", 1, MSG_OOB);
-	setblockingpair();
-	recvpair("", 0, 0, 0);
-}
-
-TEST_HARNESS_MAIN
diff --git a/tools/testing/selftests/net/af_unix/scm_rights.c b/tools/testing/selftests/net/af_unix/scm_rights.c
index c165f250220a4a..40459fb21b733b 100644
--- a/tools/testing/selftests/net/af_unix/scm_rights.c
+++ b/tools/testing/selftests/net/af_unix/scm_rights.c
@@ -21,7 +21,6 @@ FIXTURE_VARIANT(scm_rights)
 {
 	char name[32];
 	int type;
-	int flags;
 	bool test_listener;
 	bool disabled;
 };
@@ -30,7 +29,6 @@ FIXTURE_VARIANT_ADD(scm_rights, dgram)
 {
 	.name = "UNIX ",
 	.type = SOCK_DGRAM,
-	.flags = 0,
 	.test_listener = false,
 	.disabled = false,
 };
@@ -39,7 +37,6 @@ FIXTURE_VARIANT_ADD(scm_rights, dgram_disabled)
 {
 	.name = "UNIX ",
 	.type = SOCK_DGRAM,
-	.flags = 0,
 	.test_listener = false,
 	.disabled = true,
 };
@@ -48,7 +45,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
 	.test_listener = false,
 	.disabled = false,
 };
@@ -57,25 +53,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_disabled)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
-	.test_listener = false,
-	.disabled = true,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_oob)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
-	.test_listener = false,
-	.disabled = false,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_oob_disabled)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
 	.test_listener = false,
 	.disabled = true,
 };
@@ -84,7 +61,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_listener)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
 	.test_listener = true,
 	.disabled = false,
 };
@@ -93,25 +69,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_listener_disabled)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
-	.test_listener = true,
-	.disabled = true,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_listener_oob)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
-	.test_listener = true,
-	.disabled = false,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_listener_oob_disabled)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
 	.test_listener = true,
 	.disabled = true,
 };
@@ -297,7 +254,7 @@ void __send_fd(struct __test_metadata *_metadata,
 	cmsg->cmsg_len = CMSG_LEN(sizeof(fds));
 	memcpy(CMSG_DATA(cmsg), fds, sizeof(fds));
 
-	ret = sendmsg(self->fd[receiver * 2 + 1], &msg, variant->flags);
+	ret = sendmsg(self->fd[receiver * 2 + 1], &msg, 0);
 
 	if (variant->disabled) {
 		ASSERT_EQ(-1, ret);

3/2 2026/11/19 10:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 22590
							output: 33
							thoughts: 67
						

Thoughts:
Here's my analysis of this patch, as it unfolds in my mind:

**Analyzing this Patch: A Quick Deep Dive**

Okay, let's dive in. First things first, I need to understand *precisely* what this commit is supposed to accomplish. Before I even begin to think about its implications or possible problems, I need a clear definition of its purpose.

Alright, let's grab the git commit log if it's available. If not, the diff itself will suffice. I can probably get the gist from the diff, but I really should get a look at the commit log messages before getting into the weeds. Hold on, instead of just reading it, let's leverage some more robust tools. I'll reach for `git log`, maybe a grepper, or I can always take a look at the `HEAD` commit directly. Better yet, let's run a dedicated tool. I'm thinking a structured log inspection, perhaps something that offers a visual representation or automated analysis of the commit history. This is going to be faster and more thorough in the long run. Now, let's see what we have.



4/2 2026/11/19 10:05 tool grepper
0m Args:
{
  "Expression": "CONFIG_AF_UNIX_OOB",
  "PathPrefixes": [
    "net/unix"
  ]
}

Results:
{
  "Output": "no matches"
}

5/2 2026/11/19 10:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 22943
							output: 33
							thoughts: 757
						

Thoughts:
**Analyzing the Removal of AF_UNIX_OOB Support in the Kernel**

Okay, let's dive into this. First, I need to figure out the exact commit responsible for this change. I don't have `git log` at my fingertips, but `grepper` and `read-file` should be sufficient. I'll start by examining the patch itself.

Aha! It looks like the commit explicitly removed `CONFIG_AF_UNIX_OOB`. That's significant. It means out-of-band message support (MSG_OOB) for AF_UNIX sockets is completely gone. I need to understand the implications of this.

Looking at the diff, it's pretty thorough.

*   `include/net/af_unix.h` has the `#if IS_ENABLED(CONFIG_AF_UNIX_OOB)` guard removed along with the associated `oob_skb` struct member.
*   `include/net/dropreason-core.h` is updated, removing the UNIX specific OOB drop reason.
*   `net/unix/Kconfig` has the `AF_UNIX_OOB` option removed entirely.
*   `net/unix/af_unix.c` saw a massive cleanup. Functions related to OOB handling like `queue_oob`, `unix_stream_recv_urg`, and `manage_oob` have been axed. SIOCATMARK handling is gone, and even EPOLLPRI for `oob_skb` has been removed. Crucially, the code now *directly* returns `-EOPNOTSUPP` for `MSG_OOB` in both `unix_stream_sendmsg` and `unix_stream_read_generic`. The check for `skb == u->oob_skb` is gone in `unix_stream_read_skb` too.

And, of course, the selftests are affected too. That specific `tools/testing/selftests/net/af_unix/msg_oob.c` has been completely deleted. Several other tests like `sockmap_redir.c`, `scoped_signal_test.c`, and `scm_rights.c` show modifications or outright removal of the OOB test sections.

The question is *why*. This is a substantial removal. I need to understand the reasoning behind this. I need to track down the commit message or any related information in the repository. I'll use `read-file` to check for details in `.git/COMMIT_EDITMSG` or `.git/logs/HEAD`. Hopefully, there's a good explanation for this. I hope this commit has a well documented reason to perform such a change!



6/2 2026/11/19 10:06 tool read-file
0m Args:
{
  "File": ".git/COMMIT_EDITMSG",
  "FirstLine": 1,
  "LineCount": 50
}

Results:
{
  "Contents": "   1:\tsyz-cluster: applied patch under review\n"
}

7/2 2026/11/19 10:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 24345
							output: 32
							thoughts: 11
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Diving into the Git Logs**

Alright, let's get down to brass tacks. I'm thinking, "Where's the history? Where's the *real* history?" Not the nice, sanitized commits we see in the `git log` output, but the messy, granular, step-by-step evolution of the HEAD pointer itself. That's what I need to see. That's where the *truth* lies. Time to crack open `.git/logs/HEAD`. I know that's where the meat is, showing me exactly how HEAD has moved, the reflog entries detailing every single action – merges, rebases, reverts, checkouts, and everything in between. This is the unvarnished narrative of my working copy. I'm going to look at the raw data to give me the full story. Let's see what secrets it's hiding.



8/2 2026/11/19 10:06 tool read-file
0m Args:
{
  "File": ".git/logs/HEAD",
  "FirstLine": 1,
  "LineCount": 50
}

Results:
{
  "Contents": "   1:\t0000000000000000000000000000000000000000 27a46d593d8924157cef8397b6078525eaebfa0e syzkaller \u003csyzkaller@series-workflowfcql4-triage-action-2766159271.(none)\u003e 1795082745 +0000\treset: moving to 27a46d593d8924157cef8397b6078525eaebfa0e\n   2:\t27a46d593d8924157cef8397b6078525eaebfa0e 736c028d859beb41a198ff8012e3397c240d43cd syz-cluster \u003ctriage@syzkaller.com\u003e 1795082748 +0000\tcommit: syz-cluster: applied patch under review\n"
}

9/2 2026/11/19 10:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 24898
							output: 38
							thoughts: 3051
						

Thoughts:
**Analysis of AF_UNIX OOB Removal Patch**

Alright, let's break this down. From what I'm seeing, this patch is straightforward. It's effectively *reverting* the support for out-of-band (OOB) data within AF_UNIX sockets. This OOB feature, which was added fairly recently, seems to have been causing enough headaches or issues that it's being pulled. This isn't just about removing a few lines; it's a feature removal, which, depending on the implementation and usage, *could* introduce regressions or uncover latent bugs.

Now, I've gone through each modified file meticulously:

1.  `include/net/af_unix.h`: The `oob_skb` pointer in `struct unix_sock` is being removed.

2.  `include/net/dropreason-core.h`: Related `SKB_DROP_REASON` for OOB is removed.

3.  `net/unix/Kconfig`: The `CONFIG_AF_UNIX_OOB` configuration option is deleted.

4.  `net/unix/af_unix.c`: This is where things get interesting and where the core logic changes occur! Crucially, the patch eliminates all the code related to OOB handling. This includes:

    *   In `unix_stream_sendmsg`, the `MSG_OOB` flag now directly results in an `-EOPNOTSUPP` error. Previously, some logic for handling the length of OOB messages existed.

    *   `queue_oob`, `unix_stream_recv_urg`, `manage_oob`, and `unix_stream_read_skb` are gone. These functions were all dedicated to handling the OOB data within stream sockets.

    *   `unix_stream_read_generic` now directly returns `-EOPNOTSUPP` if `MSG_OOB` is set.

    *   `unix_ioctl` no longer handles `SIOCATMARK`, and now falls through to the default, resulting in `-ENOIOCTLCMD`.

    *   `unix_release_sock`, code related to managing `oob_skb` has been removed.

    *   `unix_poll`, related `EPOLLPRI` logic is removed.

5.  `Tools/selftests`: Only tests changes.

I've carefully re-read the fuzzing guidelines. The key is *reachability*. This isn't some obscure driver or hardware-specific code. AF\_UNIX sockets are core networking, and removing code from *that* subsystem requires a closer look.

The guidelines state I should return `WorthFuzzing=false` *only if* the changes fall strictly into specific categories: non-kernel/non-executable, structurally unreachable hardware, or unreachable execution paths. This doesn't seem to be the case here. Removing OOB support *directly* modifies core networking code (`af_unix.c`). It alters how the kernel *behaves* when dealing with `MSG_OOB` flags, the logic within these functions, and so on.

The modification is in core networking, and it *does* touch executable code. This is definitely worth fuzzing.



10/2 2026/11/19 10:06 tool read-file
0m Args:
{
  "File": "net/unix/af_unix.c",
  "FirstLine": 2325,
  "LineCount": 40
}

Results:
{
  "Contents": "2325:\t\tstruct sock *other = NULL;\n2326:\t\tstruct unix_sock *otheru;\n2327:\t\tstruct scm_cookie scm;\n2328:\t\tbool fds_sent = false;\n2329:\t\tint err, sent = 0;\n2330:\t\n2331:\t\terr = scm_send(sock, msg, \u0026scm, false);\n2332:\t\tif (err \u003c 0)\n2333:\t\t\treturn err;\n2334:\t\n2335:\t\tif (msg-\u003emsg_flags \u0026 MSG_OOB) {\n2336:\t\t\terr = -EOPNOTSUPP;\n2337:\t\t\tgoto out_err;\n2338:\t\t}\n2339:\t\n2340:\t\tif (msg-\u003emsg_namelen) {\n2341:\t\t\terr = READ_ONCE(sk-\u003esk_state) == TCP_ESTABLISHED ? -EISCONN : -EOPNOTSUPP;\n2342:\t\t\tgoto out_err;\n2343:\t\t}\n2344:\t\n2345:\t\tother = unix_peer(sk);\n2346:\t\tif (!other) {\n2347:\t\t\terr = -ENOTCONN;\n2348:\t\t\tgoto out_err;\n2349:\t\t}\n2350:\t\n2351:\t\totheru = unix_sk(other);\n2352:\t\n2353:\t\tif (READ_ONCE(sk-\u003esk_shutdown) \u0026 SEND_SHUTDOWN)\n2354:\t\t\tgoto out_pipe;\n2355:\t\n2356:\t\twhile (sent \u003c len) {\n2357:\t\t\tint size = len - sent;\n2358:\t\t\tint data_len;\n2359:\t\n2360:\t\t\tif (unlikely(msg-\u003emsg_flags \u0026 MSG_SPLICE_PAGES)) {\n2361:\t\t\t\tskb = sock_alloc_send_pskb(sk, 0, 0,\n2362:\t\t\t\t\t\t\t   msg-\u003emsg_flags \u0026 MSG_DONTWAIT,\n2363:\t\t\t\t\t\t\t   \u0026err, 0);\n2364:\t\t\t} else {\n"
}

11/2 2026/11/19 10:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 29256
							output: 38
							thoughts: 27
						

Thoughts:
Okay, here's my summary, considering my expertise:

**Diving into the Unix Domain Socket Read Function**

Right, let's zoom in on `unix_stream_read_generic` within `net/unix/af_unix.c`. I need to understand this better. We're obviously dealing with the generic read path for stream-oriented Unix domain sockets, and this function is likely a critical part of the data transfer process. Given my experience, I'm already thinking about potential performance bottlenecks, locking strategies employed, and how it handles different scenarios like blocking versus non-blocking reads, and also how it may interact with the socket buffer management. I expect to find common read handling logic here, but I also expect there to be specific checks for Unix domain socket peculiarities, such as dealing with credentials and message passing semantics. Time to dive in.



12/2 2026/11/19 10:06 tool read-file
0m Args:
{
  "File": "net/unix/af_unix.c",
  "FirstLine": 2730,
  "LineCount": 60
}

Results:
{
  "Contents": "2730:\t\tstruct scm_cookie scm;\n2731:\t\tstruct unix_sock *u;\n2732:\t\tint copied = 0;\n2733:\t\tint err = 0;\n2734:\t\tlong timeo;\n2735:\t\tint target;\n2736:\t\tint skip;\n2737:\t\n2738:\t\tif (unlikely(READ_ONCE(sk-\u003esk_state) != TCP_ESTABLISHED)) {\n2739:\t\t\terr = -EINVAL;\n2740:\t\t\tgoto out;\n2741:\t\t}\n2742:\t\n2743:\t\tif (unlikely(flags \u0026 MSG_OOB)) {\n2744:\t\t\terr = -EOPNOTSUPP;\n2745:\t\t\tgoto out;\n2746:\t\t}\n2747:\t\n2748:\t\ttarget = sock_rcvlowat(sk, flags \u0026 MSG_WAITALL, size);\n2749:\t\ttimeo = sock_rcvtimeo(sk, noblock);\n2750:\t\n2751:\t\tmemset(\u0026scm, 0, sizeof(scm));\n2752:\t\n2753:\t\tu = unix_sk(sk);\n2754:\t\n2755:\tredo:\n2756:\t\t/* Lock the socket to prevent queue disordering\n2757:\t\t * while sleeps in memcpy_tomsg\n2758:\t\t */\n2759:\t\tmutex_lock(\u0026u-\u003eiolock);\n2760:\t\n2761:\t\tskip = max(sk_peek_offset(sk, flags), 0);\n2762:\t\n2763:\t\tdo {\n2764:\t\t\tstruct sk_buff *skb, *last;\n2765:\t\t\tint chunk;\n2766:\t\n2767:\t\t\tunix_state_lock(sk);\n2768:\t\t\tif (sock_flag(sk, SOCK_DEAD)) {\n2769:\t\t\t\terr = -ECONNRESET;\n2770:\t\t\t\tgoto unlock;\n2771:\t\t\t}\n2772:\t\t\tlast = skb = skb_peek(\u0026sk-\u003esk_receive_queue);\n2773:\t\n2774:\tagain:\n2775:\t\t\tif (skb == NULL) {\n2776:\t\t\t\tif (copied \u003e= target)\n2777:\t\t\t\t\tgoto unlock;\n2778:\t\n2779:\t\t\t\t/*\n2780:\t\t\t\t *\tPOSIX 1003.1g mandates this order.\n2781:\t\t\t\t */\n2782:\t\n2783:\t\t\t\terr = sock_error(sk);\n2784:\t\t\t\tif (err)\n2785:\t\t\t\t\tgoto unlock;\n2786:\t\t\t\tif (sk-\u003esk_shutdown \u0026 RCV_SHUTDOWN)\n2787:\t\t\t\t\tgoto unlock;\n2788:\t\n2789:\t\t\t\tunix_state_unlock(sk);\n"
}

13/2 2026/11/19 10:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 30272
							output: 37
							thoughts: 19
						

Thoughts:
Here's my take on those thoughts:

**Analyzing `unix_release_sock` in `af_unix.c`**

Alright, let's dive into this. My first thought is to zero in on `unix_release_sock`. I know it resides within `af_unix.c`, so that's where I'll begin my investigation. I'm keen to understand precisely how this function handles the release of Unix domain sockets. I'll be looking specifically at how it interacts with the socket data structures, memory management, and potential lock interactions. I'll need to consider how it coordinates with the socket's lifecycle, connection states, and resource cleanup. I'm immediately thinking about potential race conditions and how the code guards against them, given the nature of sockets being shared resources. I'll also want to look at where this function gets called and what other areas of the code rely on its proper execution. Ultimately, I want to form a clear picture of its role and effectiveness within the AF_UNIX subsystem.



14/2 2026/11/19 10:06 tool read-file
0m Args:
{
  "File": "net/unix/af_unix.c",
  "FirstLine": 685,
  "LineCount": 35
}

Results:
{
  "Contents": " 685:\t\n 686:\t\tskpair = unix_peer(sk);\n 687:\t\tunix_peer(sk) = NULL;\n 688:\t\n 689:\t\tunix_state_unlock(sk);\n 690:\t\n 691:\t\twake_up_interruptible_all(\u0026u-\u003epeer_wait);\n 692:\t\n 693:\t\tif (skpair != NULL) {\n 694:\t\t\tif (sk-\u003esk_type == SOCK_STREAM || sk-\u003esk_type == SOCK_SEQPACKET) {\n 695:\t\t\t\tstruct sk_buff *skb = skb_peek(\u0026sk-\u003esk_receive_queue);\n 696:\t\n 697:\t\t\t\tunix_state_lock(skpair);\n 698:\t\t\t\t/* No more writes */\n 699:\t\t\t\tWRITE_ONCE(skpair-\u003esk_shutdown, SHUTDOWN_MASK);\n 700:\t\t\t\tif (skb || embrion)\n 701:\t\t\t\t\tWRITE_ONCE(skpair-\u003esk_err, ECONNRESET);\n 702:\t\t\t\tunix_state_unlock(skpair);\n 703:\t\t\t\tskpair-\u003esk_state_change(skpair);\n 704:\t\t\t\tsk_wake_async(skpair, SOCK_WAKE_WAITD, POLL_HUP);\n 705:\t\t\t}\n 706:\t\n 707:\t\t\tunix_dgram_peer_wake_disconnect(sk, skpair);\n 708:\t\t\tsock_put(skpair); /* It may now die */\n 709:\t\t}\n 710:\t\n 711:\t\t/* Try to flush out this socket. Throw out buffers at least */\n 712:\t\n 713:\t\twhile ((skb = skb_dequeue(\u0026sk-\u003esk_receive_queue)) != NULL) {\n 714:\t\t\tif (state == TCP_LISTEN)\n 715:\t\t\t\tunix_release_sock(skb-\u003esk, 1);\n 716:\t\n 717:\t\t\t/* passed fds are erased in the kfree_skb hook */\n 718:\t\t\tkfree_skb_reason(skb, SKB_DROP_REASON_SOCKET_CLOSE);\n 719:\t\t}\n"
}

15/2 2026/11/19 10:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 31126
							output: 37
							thoughts: 1347
						

Thoughts:
**WorthFuzzing Analysis: AF_UNIX Socket Patch**

Okay, let's break this down. First, the patch touches `unix_release_sock`, `unix_ioctl`, `unix_poll`, and modifies data structures related to AF_UNIX sockets. Specifically, I see changes impacting how out-of-band (OOB) data is handled (or rather, *not* handled anymore) and a removal of SIOCATMARK and EPOLLPRI related functionality. The changes involve core functions like `unix_stream_sendmsg` and `unix_stream_read_generic`.

Now, does this merit fuzzing? Let's consult the guidelines. Section 1 stresses that fuzzing is crucial if reachable, executable code is modified, even if it's refactoring. Section 2 lays out negative criteria – things that *don't* warrant fuzzing. But none of those negative conditions apply here: These are not documentation changes, user-space tools, logging tweaks, build system changes, unreachable hardware paths, or unreachable execution paths.

This patch directly affects AF_UNIX socket implementation, which is very much reachable and executable. In fact, it's core networking code, modifying data structures and control flow. `sendmsg`, `recvmsg`, `close`, `ioctl`, and `poll` all interact with AF_UNIX sockets and are directly affected. This *definitely* seems like a case for `WorthFuzzing = true`. I have to apply the criteria correctly.

Now, which functions should I flag as FocusSymbols to direct the fuzzer effectively? I need to avoid listing overly generic functions that are called everywhere. Instead, I need to focus on the specific logic being added or altered. I immediately think of `unix_stream_sendmsg`, `unix_stream_read_generic`, and the functions that call them (`unix_stream_recvmsg` and `unix_read_sock`). Those functions directly implement the altered behavior, the restriction to OOB functionality. Those seem like the prime targets to direct the fuzzer.



16/2 2026/11/19 10:07 tool grepper
0m Args:
{
  "Expression": "unix_stream_read_generic",
  "PathPrefixes": [
    "net/unix/af_unix.c"
  ]
}

Results:
{
  "Output": "net/unix/af_unix.c=2685=static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)\n--\nnet/unix/af_unix.c-2719-\nnet/unix/af_unix.c:2720:static int unix_stream_read_generic(struct unix_stream_read_state *state,\nnet/unix/af_unix.c-2721-\t\t\t\t    bool freezable)\n--\nnet/unix/af_unix.c=2928=int __unix_stream_recvmsg(struct sock *sk, struct msghdr *msg,\n--\nnet/unix/af_unix.c-2938-\nnet/unix/af_unix.c:2939:\treturn unix_stream_read_generic(\u0026state, true);\nnet/unix/af_unix.c-2940-}\n--\nnet/unix/af_unix.c=2942=static int unix_stream_recvmsg(struct socket *sock, struct msghdr *msg,\n--\nnet/unix/af_unix.c-2959-#endif\nnet/unix/af_unix.c:2960:\treturn unix_stream_read_generic(\u0026state, true);\nnet/unix/af_unix.c-2961-}\n--\nnet/unix/af_unix.c=2972=static ssize_t unix_stream_splice_read(struct socket *sock,  loff_t *ppos,\n--\nnet/unix/af_unix.c-2990-\nnet/unix/af_unix.c:2991:\treturn unix_stream_read_generic(\u0026state, false);\nnet/unix/af_unix.c-2992-}\n"
}

17/2 2026/11/19 10:07 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 33393
							output: 38
							thoughts: 182
						

Thoughts:
Okay, let's dive into this code.

**Investigating a Recent Modification in Unix Stream Read Functionality**

My initial thought is to make sure we've explored all relevant functions. So, I need to check `unix_stream_read_skb` alongside the primary function we're focused on. Alright, it looks like that function *was* also modified. Let's see...

Okay, I see the code block... it's conditional, using `#if IS_ENABLED(CONFIG_AF_UNIX_OOB)`. That suggests it's related to out-of-band data handling within the AF_UNIX domain. The critical part is the check `if (skb == u->oob_skb)`. If the current socket buffer (`skb`) matches the out-of-band socket buffer (`u->oob_skb`), it's handled differently: the `oob_skb` pointer is cleared (using `WRITE_ONCE`), then the associated locks are released, and finally, the socket buffer is freed with a specific reason code. It looks like it is skipped and freed.

I'm starting to get a better sense of this code. But, who *actually* calls `unix_stream_read_skb`? Time to bring out the big guns... I'll fire up `grepper` and see where this function is used.



18/2 2026/11/19 10:07 tool grepper
0m Args:
{
  "Expression": "unix_stream_read_skb",
  "PathPrefixes": [
    "net/unix/af_unix.c"
  ]
}

Results:
{
  "Output": "net/unix/af_unix.c=856=static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor);\nnet/unix/af_unix.c:857:static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor);\nnet/unix/af_unix.c-858-static int unix_dgram_connect(struct socket *, struct sockaddr_unsized *,\n--\nnet/unix/af_unix.c=965=static const struct proto_ops unix_stream_ops = {\n--\nnet/unix/af_unix.c-983-\t.recvmsg =\tunix_stream_recvmsg,\nnet/unix/af_unix.c:984:\t.read_skb =\tunix_stream_read_skb,\nnet/unix/af_unix.c-985-\t.mmap =\t\tsock_no_mmap,\n--\nnet/unix/af_unix.c=2674=struct unix_stream_read_state {\n--\nnet/unix/af_unix.c-2684-\nnet/unix/af_unix.c:2685:static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)\nnet/unix/af_unix.c-2686-{\n"
}

19/2 2026/11/19 10:07 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 34266
							output: 32
							thoughts: 836
						

Thoughts:
**Analyzing AF_UNIX Stream Socket Modifications for Redirection**

Okay, so I'm looking at how `unix_stream_read_skb` is used in sockmap/sk_msg redirection, specifically the `unix_stream_ops.read_skb` operation. But wait, that's just one modified function. What else is going on in `net/unix/af_unix.c` that's relevant? Let's break this down systematically.

First, I need to list all the functions that have been modified. Here's what I've got:

1.  `unix_release_sock`: Hmmm, this is the socket release/close function, and I immediately wonder if this is a very common hot-path. But, for now, let's keep it in the list and check the others first.
2.  `unix_stream_sendmsg`: This one is specific to stream UNIX sockets, so it's likely relevant.
3.  `unix_stream_recvmsg` / `unix_stream_read_generic`: Also stream UNIX socket specific.
4.  `unix_stream_read_skb`: Definitely important for sockmap read, that's what I started with!
5.  `unix_ioctl`: UNIX socket ioctl handling.
6.  `unix_poll`: UNIX socket poll handling.

Now, let's refine this list. `unix_poll` and `unix_release_sock` are a bit generic, since poll and close are used by many types of sockets. The ones that really seem specific to AF_UNIX stream send and receive and that are related to the removal of MSG_OOB handling are `unix_stream_sendmsg`, `unix_stream_recvmsg`, `unix_stream_read_skb`, and `unix_stream_read_generic`.

But, what about `unix_stream_read_generic`? Is it inlined? Let's see... it's a `static int` called from `__unix_stream_recvmsg`, `unix_stream_recvmsg`, and `unix_stream_splice_read`. Typically, `unix_stream_sendmsg` and `unix_stream_recvmsg` are standard non-inlined entrypoints in `unix_stream_ops`, and yes! I confirm that:

`unix_stream_ops` has:
*  `.sendmsg = unix_stream_sendmsg`
*  `.recvmsg = unix_stream_recvmsg`
*  `.read_skb = unix_stream_read_skb`
*  `.splice_read = unix_stream_splice_read`

So, my target list is: `unix_stream_sendmsg`, `unix_stream_recvmsg`, `unix_stream_read_skb`, `unix_stream_splice_read`.
Also, `unix_stream_read_generic` if it is not inlined, and `unix_ioctl`.

Now, let's move on to checking the necessary configurations by examining `net/unix/Kconfig`.



20/2 2026/11/19 10:07 tool read-file
0m Args:
{
  "File": "net/unix/Kconfig",
  "FirstLine": 1,
  "LineCount": 40
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\t#\n   3:\t# Unix Domain Sockets\n   4:\t#\n   5:\t\n   6:\tconfig UNIX\n   7:\t\tbool \"Unix domain sockets\"\n   8:\t\thelp\n   9:\t\t  If you say Y here, you will include support for Unix domain sockets;\n  10:\t\t  sockets are the standard Unix mechanism for establishing and\n  11:\t\t  accessing network connections.  Many commonly used programs such as\n  12:\t\t  the X Window system and syslog use these sockets even if your\n  13:\t\t  machine is not connected to any network.  Unless you are working on\n  14:\t\t  an embedded system or something similar, you therefore definitely\n  15:\t\t  want to say Y here.\n  16:\t\n  17:\t\t  Say Y unless you know what you are doing.\n  18:\t\n  19:\tconfig UNIX_DIAG\n  20:\t\ttristate \"UNIX: socket monitoring interface\"\n  21:\t\tdepends on UNIX\n  22:\t\tdefault n\n  23:\t\thelp\n  24:\t\t  Support for UNIX socket monitoring interface used by the ss tool.\n  25:\t\t  If unsure, say Y.\n"
}

21/2 2026/11/19 10:07 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 36124
							output: 31
							thoughts: 13
						

Thoughts:
Okay, let's dive into this `net/unix/Makefile`. I need to understand what's happening within this makefile, so I can grasp its role in the larger system. This is where I'll find the specific instructions for building and linking the Unix domain socket components, and probably the relevant dependencies and flags. Time to get familiar with its structure, see how it's organized, and what it's calling.



22/2 2026/11/19 10:07 tool read-file
0m Args:
{
  "File": "net/unix/Makefile",
  "FirstLine": 1,
  "LineCount": 20
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0\n   2:\t#\n   3:\t# Makefile for the Linux unix domain socket layer.\n   4:\t#\n   5:\t\n   6:\tobj-$(CONFIG_UNIX)\t+= unix.o\n   7:\t\n   8:\tunix-y\t\t\t:= af_unix.o garbage.o\n   9:\tunix-$(CONFIG_SYSCTL)\t+= sysctl_net_unix.o\n  10:\tunix-$(CONFIG_BPF_SYSCALL) += unix_bpf.o\n  11:\t\n  12:\tobj-$(CONFIG_UNIX_DIAG)\t+= unix_diag.o\n  13:\tunix_diag-y\t\t:= diag.o\n"
}

23/2 2026/11/19 10:07 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 36455
							output: 29
							thoughts: 46
						

Thoughts:
Okay, here's my take on those thoughts, framed as my own:

**Investigating the `CONFIG_UNIX` Configuration Option**

Alright, so `CONFIG_UNIX` is the key configuration option we're looking at here. That's a good starting point. But before I dive too deep, I need to make sure I understand its dependencies and implications. It's too easy to get caught up in a rabbit hole without a solid foundation.

Right, so is `UNIX` dependent on anything else? I need to check the Kconfig files. Time to poke around `net/Kconfig` and see how this is all wired up, specifically around that `source "net/unix/Kconfig"` line. I suspect the answer will lie in there. That should show me the broader context and any prerequisite options I need to consider. Let's see what we can find.



24/2 2026/11/19 10:07 tool grepper
0m Args:
{
  "Expression": "net/unix/Kconfig",
  "PathPrefixes": [
    "net/"
  ]
}

Results:
{
  "Output": "net/Kconfig=84=source \"net/psp/Kconfig\"\nnet/Kconfig:85:source \"net/unix/Kconfig\"\nnet/Kconfig-86-source \"net/tls/Kconfig\"\n"
}

25/2 2026/11/19 10:07 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 36785
							output: 183
							thoughts: 1401
						

Thoughts:
**Analysis of Kernel Patch for Fuzzing Eligibility**

Okay, so this patch is removing `MSG_OOB` support for AF_UNIX. Let's break this down systematically. First, I need to figure out the essential configuration and dependencies. The code resides within `net/unix/Kconfig` and depends on `NET`, and specifically uses `CONFIG_UNIX`.  `UNIX` is the key config symbol here, confirming it's directly related to Unix domain sockets.

I need to confirm if anything else is configured, and it looks like `CONFIG_AF_UNIX_OOB` was removed, meaning `AF_UNIX_OOB` no longer exists. The sole configuration requirement is indeed `UNIX`.

Now for the interesting bit: the functions. I've identified several key symbols associated with AF_UNIX stream sockets: `unix_stream_sendmsg`, `unix_stream_recvmsg`, `unix_stream_read_generic`, `unix_stream_read_skb`, and `unix_ioctl`. I need to ensure these are included.  `unix_stream_read_generic` is static, which could cause inlining into `unix_stream_recvmsg`, `__unix_stream_recvmsg`, and `unix_stream_splice_read`. However, `unix_stream_recvmsg`, `unix_stream_sendmsg`, `unix_stream_read_skb`, and `unix_ioctl` are proto_ops callbacks, which are non-ubiquitous. They are specific to AF_UNIX stream sockets and ioctl. So I need to include them.

Let's double-check the fuzzing criteria. This patch *removes* code, and could be incorrectly marked as `WorthFuzzing=false`. The phrasing of the negative criteria is critical: "ONLY IF all modified code falls strictly into one or more of these categories".

Does it? Absolutely not! The patch directly modifies `net/unix/af_unix.c`, core networking code. It alters the control flow of `unix_stream_sendmsg`, `unix_stream_read_generic`, `unix_release_sock`, `unix_stream_read_skb`, `unix_ioctl`, and `unix_poll`, and alters data structures such as `struct unix_sock`.

Now, the positive criteria. This falls squarely under "Core Subsystems" ("Any logic modifications in ... core networking").  Therefore, `WorthFuzzing` MUST be `true`.

Alright, I'm confident. The `set-results` parameters are as follows:

*   `WorthFuzzing`: `true`
*   `EnableConfigs`: `["UNIX"]`
*   `FocusSymbols`: `["unix_stream_sendmsg", "unix_stream_recvmsg", "unix_stream_read_generic", "unix_stream_read_skb", "unix_ioctl"]`
*   `Reasoning`: The patch removes AF_UNIX `MSG_OOB` support, modifying reachable core networking code in `net/unix/af_unix.c` (`unix_stream_sendmsg`, `unix_stream_read_generic`, `unix_stream_read_skb`, `unix_ioctl`, `unix_poll`) and the `unix_sock` data structure.

Everything is meticulously checked. Time to call `set-results`.



26/2 2026/11/19 10:07 tool set-results
0m Args:
{
  "EnableConfigs": [
    "UNIX"
  ],
  "FocusSymbols": [
    "unix_stream_sendmsg",
    "unix_stream_recvmsg",
    "unix_stream_read_generic",
    "unix_stream_read_skb",
    "unix_ioctl"
  ],
  "Reasoning": "The patch removes MSG_OOB support from AF_UNIX domain sockets, modifying reachable core networking logic in net/unix/af_unix.c (including unix_stream_sendmsg, unix_stream_read_generic, unix_stream_read_skb, and unix_ioctl) as well as struct unix_sock. Because the changes modify control flow and data structures in a core networking subsystem that is readily reachable from userspace, fuzzing is warranted to detect potential regressions or latent issues.",
  "WorthFuzzing": true
}

Results:
{
  "EnableConfigs": [
    "UNIX"
  ],
  "FocusSymbols": [
    "unix_stream_sendmsg",
    "unix_stream_recvmsg",
    "unix_stream_read_generic",
    "unix_stream_read_skb",
    "unix_ioctl"
  ],
  "Reasoning": "The patch removes MSG_OOB support from AF_UNIX domain sockets, modifying reachable core networking logic in net/unix/af_unix.c (including unix_stream_sendmsg, unix_stream_read_generic, unix_stream_read_skb, and unix_ioctl) as well as struct unix_sock. Because the changes modify control flow and data structures in a core networking subsystem that is readily reachable from userspace, fuzzing is warranted to detect potential regressions or latent issues.",
  "WorthFuzzing": true
}

27/1 2026/11/19 10:07 action If
0m Args:
{
  "WorthFuzzing": true
}

Results:
null

28/2 2026/11/19 10:07 agent kmsan-evaluator
0m Model:
core

Args:
null

Results:
{
  "KMSANReasoning": "The patch series completely removes out-of-band (MSG_OOB) data support for AF_UNIX sockets, including the deletion of helper functions (queue_oob, unix_stream_recv_urg, manage_oob), the SIOCATMARK ioctl handling, the oob_skb pointer from struct unix_sock, and related selftests.\n\nThis change is almost exclusively code removal and simplification. It does not introduce any new memory allocations, variables, struct fields, or code paths copying kernel data to user space (in fact, it removes a put_user invocation for SIOCATMARK). MSG_OOB requests on AF_UNIX streams now immediately fail with -EOPNOTSUPP. There are no risks of reading uninitialized memory, branching on uninitialized data, or leaking uninitialized memory to user space. Therefore, a dedicated KMSAN fuzzing session is not warranted.",
  "NeedsKMSAN": false
}

Instruction:
You are an expert Linux kernel security engineer specializing in kernel memory
error detectors (KASAN and KMSAN). Your job is to review the provided patch series and
determine if the code changes justify spawning a dedicated KMSAN (KernelMemorySanitizer)
fuzzing session in addition to standard KASAN fuzzing.

CRITICAL DISTINCTION BETWEEN KASAN AND KMSAN:
- Standard KASAN kernel builds (upstream-apparmor-kasan.config) already enable
  a comprehensive suite of debugging tools and sanitizers, including KASAN
  (out-of-bounds accesses, use-after-free, double free, invalid free), LOCKDEP
  (locking bugs and deadlocks), UB-sanitizers, and memory corruption checks.
- KMSAN (KernelMemorySanitizer) detects reads of UNINITIALIZED memory (stack, heap,
  or page allocations) and kernel-to-user memory info-leaks.

Rule: THERE IS NO SENSE IN RUNNING A KMSAN SESSION IF A BUG CAN BE CAUGHT BY KASAN,
LOCKDEP, OR OTHER STANDARD BUG DETECTORS.
A dedicated KMSAN fuzzing session incurs significant resource costs. You must ONLY
set NeedsKMSAN=true if the code changes introduce or expose UNINITIALIZED MEMORY risks
that are detected ONLY by KMSAN.

Look holistically at the patch series and surrounding code. Even if no direct
uninitialized field accesses or new buffer allocations are added in the diff itself,
a patch may alter control flow, bounds checking, or data length calculations in ways
that change how the rest of the code operates on existing buffers (e.g. allowing
uninitialized stack/heap memory to be read, copied to user space, or used in control
flow). Do not hesitate to use your code access tools to inspect the surrounding code,
called functions, and callers.

Set NeedsKMSAN=true ONLY IF the patch introduces or modifies:
1. Kernel structures sent to user space (via copy_to_user, put_user, netlink skb
   attributes, ioctl output arguments, socket options, or BPF buffers) where fields
   or structure padding might not be fully initialized/zeroed.
2. Conditional logic or branching that depends on potentially uninitialized variables
   or struct fields.
3. Allocation or initialization of complex data structures where uninitialized fields
   could be read later in reachable code paths.
4. Bounds checks, lengths, or logic in a way that allows surrounding code to access
   uninitialized bytes of existing buffers.

Set NeedsKMSAN=false IF:
- The code changes primarily risk out-of-bounds access, array overflows, NULL pointer
  dereferences, locking deadlocks, or use-after-free bugs (these are already caught
  by KASAN, LOCKDEP, or standard bug detectors).
- All stack/heap structures touched or introduced by the patch are fully zeroed
  or initialized (e.g. using = {0}, memset, kzalloc) before being read or copied.
- The patch does not introduce any risk of uninitialized memory usage or info-leaks.

Use your code access tools to inspect the surrounding code if necessary, then provide
detailed KMSANReasoning contrasting KASAN vs KMSAN applicability for this patch.
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 736c028d859beb41a198ff8012e3397c240d43cd
Author: syz-cluster <triage@syzkaller.com>
Date:   Thu Nov 19 10:05:48 2026 +0000

    syz-cluster: applied patch under review

diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index bb1b3dee02e829..43fb892eee065a 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -50,9 +50,6 @@ struct unix_sock {
 	int			inq_len;
 	bool			recvmsg_inq;
 	bool			scm_rights_notrunc;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	struct sk_buff		*oob_skb;
-#endif
 };
 
 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk)
diff --git a/include/net/dropreason-core.h b/include/net/dropreason-core.h
index fa2fe89905573a..c010fdebf24975 100644
--- a/include/net/dropreason-core.h
+++ b/include/net/dropreason-core.h
@@ -10,7 +10,6 @@
 	FN(SOCKET_FILTER)		\
 	FN(SOCKET_RCVBUFF)		\
 	FN(UNIX_DISCONNECT)		\
-	FN(UNIX_SKIP_OOB)		\
 	FN(PKT_TOO_SMALL)		\
 	FN(TCP_CSUM)			\
 	FN(UDP_CSUM)			\
@@ -164,11 +163,6 @@ enum skb_drop_reason {
 	 * during send() that the peer has been close()d.
 	 */
 	SKB_DROP_REASON_UNIX_DISCONNECT,
-	/**
-	 * @SKB_DROP_REASON_UNIX_SKIP_OOB: Out-Of-Band data is skipped by
-	 * recv() without MSG_OOB so dropped.
-	 */
-	SKB_DROP_REASON_UNIX_SKIP_OOB,
 	/** @SKB_DROP_REASON_PKT_TOO_SMALL: packet size is too small */
 	SKB_DROP_REASON_PKT_TOO_SMALL,
 	/** @SKB_DROP_REASON_TCP_CSUM: TCP checksum error */
diff --git a/net/unix/Kconfig b/net/unix/Kconfig
index 6f1783c1659b81..d378726d5eb922 100644
--- a/net/unix/Kconfig
+++ b/net/unix/Kconfig
@@ -16,13 +16,6 @@ config UNIX
 
 	  Say Y unless you know what you are doing.
 
-config	AF_UNIX_OOB
-	bool "UNIX: out-of-bound messages"
-	depends on UNIX
-	default y
-	help
-	  Support for MSG_OOB in UNIX domain sockets. If unsure, say Y.
-
 config UNIX_DIAG
 	tristate "UNIX: socket monitoring interface"
 	depends on UNIX
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 96c13682938e19..cc5c7fa40b4d48 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -688,20 +688,12 @@ static void unix_release_sock(struct sock *sk, int embrion)
 
 	unix_state_unlock(sk);
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	u->oob_skb = NULL;
-#endif
-
 	wake_up_interruptible_all(&u->peer_wait);
 
 	if (skpair != NULL) {
 		if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) {
 			struct sk_buff *skb = skb_peek(&sk->sk_receive_queue);
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-			if (skb && !unix_skb_len(skb))
-				skb = skb_peek_next(skb, &sk->sk_receive_queue);
-#endif
 			unix_state_lock(skpair);
 			/* No more writes */
 			WRITE_ONCE(skpair->sk_shutdown, SHUTDOWN_MASK);
@@ -2325,67 +2317,6 @@ static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg,
  */
 #define UNIX_SKB_FRAGS_SZ (PAGE_SIZE << get_order(32768))
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-static int queue_oob(struct sock *sk, struct msghdr *msg, struct sock *other,
-		     struct scm_cookie *scm, bool fds_sent)
-{
-	struct unix_sock *ousk = unix_sk(other);
-	struct sk_buff *skb;
-	int err;
-
-	skb = sock_alloc_send_skb(sk, 1, msg->msg_flags & MSG_DONTWAIT, &err);
-
-	if (!skb)
-		return err;
-
-	err = unix_scm_to_skb(scm, skb, !fds_sent);
-	if (err < 0)
-		goto out;
-
-	err = unix_maybe_add_creds(skb, sk, other);
-	if (err)
-		goto out;
-
-	skb_put(skb, 1);
-	err = skb_copy_datagram_from_iter(skb, 0, &msg->msg_iter, 1);
-
-	if (err)
-		goto out;
-
-	unix_state_lock(other);
-
-	if (sock_flag(other, SOCK_DEAD) ||
-	    (other->sk_shutdown & RCV_SHUTDOWN)) {
-		err = -EPIPE;
-		goto out_unlock;
-	}
-
-	if (UNIXCB(skb).fp && !other->sk_scm_rights) {
-		err = -EPERM;
-		goto out_unlock;
-	}
-
-	scm_stat_add(other, skb);
-
-	spin_lock(&other->sk_receive_queue.lock);
-	WRITE_ONCE(ousk->oob_skb, skb);
-	WRITE_ONCE(ousk->inq_len, ousk->inq_len + 1);
-	__skb_queue_tail(&other->sk_receive_queue, skb);
-	spin_unlock(&other->sk_receive_queue.lock);
-
-	sk_send_sigurg(other);
-	unix_state_unlock(other);
-	READ_ONCE(other->sk_data_ready)(other);
-
-	return 0;
-out_unlock:
-	unix_state_unlock(other);
-out:
-	consume_skb(skb);
-	return err;
-}
-#endif
-
 static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
 			       size_t len)
 {
@@ -2403,12 +2334,7 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
 
 	if (msg->msg_flags & MSG_OOB) {
 		err = -EOPNOTSUPP;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-		if (len)
-			len--;
-		else
-#endif
-			goto out_err;
+		goto out_err;
 	}
 
 	if (msg->msg_namelen) {
@@ -2505,15 +2431,6 @@ static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg,
 		sent += size;
 	}
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	if (msg->msg_flags & MSG_OOB) {
-		err = queue_oob(sk, msg, other, &scm, fds_sent);
-		if (err)
-			goto out_err;
-		sent++;
-	}
-#endif
-
 	scm_destroy(&scm);
 
 	return sent;
@@ -2765,115 +2682,6 @@ struct unix_stream_read_state {
 	unsigned int splice_flags;
 };
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-static int unix_stream_recv_urg(struct unix_stream_read_state *state)
-{
-	struct sk_buff *oob_skb, *read_skb = NULL;
-	struct socket *sock = state->socket;
-	struct sock *sk = sock->sk;
-	struct unix_sock *u = unix_sk(sk);
-	int chunk = 1;
-
-	mutex_lock(&u->iolock);
-	unix_state_lock(sk);
-	spin_lock(&sk->sk_receive_queue.lock);
-
-	if (sock_flag(sk, SOCK_URGINLINE) || !u->oob_skb) {
-		spin_unlock(&sk->sk_receive_queue.lock);
-		unix_state_unlock(sk);
-		mutex_unlock(&u->iolock);
-		return -EINVAL;
-	}
-
-	oob_skb = u->oob_skb;
-
-	if (!(state->flags & MSG_PEEK)) {
-		WRITE_ONCE(u->oob_skb, NULL);
-		WRITE_ONCE(u->inq_len, u->inq_len - 1);
-
-		if (oob_skb->prev != (struct sk_buff *)&sk->sk_receive_queue &&
-		    !unix_skb_len(oob_skb->prev)) {
-			read_skb = oob_skb->prev;
-			__skb_unlink(read_skb, &sk->sk_receive_queue);
-		}
-	}
-
-	spin_unlock(&sk->sk_receive_queue.lock);
-	unix_state_unlock(sk);
-
-	chunk = state->recv_actor(oob_skb, 0, chunk, state);
-
-	if (!(state->flags & MSG_PEEK))
-		UNIXCB(oob_skb).consumed += 1;
-
-	mutex_unlock(&u->iolock);
-
-	consume_skb(read_skb);
-
-	if (chunk < 0)
-		return -EFAULT;
-
-	state->msg->msg_flags |= MSG_OOB;
-	return 1;
-}
-
-static struct sk_buff *manage_oob(struct sk_buff *skb, struct sk_buff **last,
-				  struct sock *sk, int flags, int copied)
-{
-	struct sk_buff *read_skb = NULL, *unread_skb = NULL;
-	struct unix_sock *u = unix_sk(sk);
-
-	if (likely(unix_skb_len(skb) && skb != READ_ONCE(u->oob_skb)))
-		return skb;
-
-	spin_lock(&sk->sk_receive_queue.lock);
-
-	if (!unix_skb_len(skb)) {
-		if (copied && (!u->oob_skb || skb == u->oob_skb)) {
-			skb = NULL;
-		} else if (flags & MSG_PEEK) {
-			*last = skb;
-			skb = skb_peek_next(skb, &sk->sk_receive_queue);
-		} else {
-			read_skb = skb;
-			skb = skb_peek_next(skb, &sk->sk_receive_queue);
-			__skb_unlink(read_skb, &sk->sk_receive_queue);
-			*last = skb;
-		}
-
-		if (!skb)
-			goto unlock;
-	}
-
-	if (skb != u->oob_skb)
-		goto unlock;
-
-	if (copied) {
-		skb = NULL;
-	} else if (!(flags & MSG_PEEK)) {
-		WRITE_ONCE(u->oob_skb, NULL);
-
-		if (!sock_flag(sk, SOCK_URGINLINE)) {
-			__skb_unlink(skb, &sk->sk_receive_queue);
-			unread_skb = skb;
-			skb = skb_peek(&sk->sk_receive_queue);
-			*last = skb;
-		}
-	} else if (!sock_flag(sk, SOCK_URGINLINE)) {
-		*last = skb;
-		skb = skb_peek_next(skb, &sk->sk_receive_queue);
-	}
-
-unlock:
-	spin_unlock(&sk->sk_receive_queue.lock);
-
-	consume_skb(read_skb);
-	kfree_skb_reason(unread_skb, SKB_DROP_REASON_UNIX_SKIP_OOB);
-
-	return skb;
-}
-#endif
-
 static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
 {
 	struct sk_buff_head *queue = &sk->sk_receive_queue;
@@ -2900,17 +2708,6 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)
 
 	WRITE_ONCE(u->inq_len, u->inq_len - unix_skb_len(skb));
 
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	if (skb == u->oob_skb) {
-		WRITE_ONCE(u->oob_skb, NULL);
-		spin_unlock(&queue->lock);
-		mutex_unlock(&u->iolock);
-
-		kfree_skb_reason(skb, SKB_DROP_REASON_UNIX_SKIP_OOB);
-		return -EAGAIN;
-	}
-#endif
-
 	spin_unlock(&queue->lock);
 
 	unix_orphan_scm(sk, skb);
@@ -2945,9 +2742,6 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,
 
 	if (unlikely(flags & MSG_OOB)) {
 		err = -EOPNOTSUPP;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-		err = unix_stream_recv_urg(state);
-#endif
 		goto out;
 	}
 
@@ -2978,15 +2772,6 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,
 		last = skb = skb_peek(&sk->sk_receive_queue);
 
 again:
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-		if (skb) {
-			skb = manage_oob(skb, &last, sk, flags, copied);
-			if (!skb && (copied || !state->size)) {
-				unix_state_unlock(sk);
-				break;
-			}
-		}
-#endif
 		if (skb == NULL) {
 			if (copied >= target)
 				goto unlock;
@@ -3322,37 +3107,6 @@ static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
 	case SIOCUNIXFILE:
 		err = unix_open_file(sk);
 		break;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	case SIOCATMARK:
-		{
-			struct unix_sock *u = unix_sk(sk);
-			struct sk_buff *skb;
-			int answ = 0;
-
-			if (sk->sk_type != SOCK_STREAM)
-				return -EOPNOTSUPP;
-
-			mutex_lock(&u->iolock);
-
-			skb = skb_peek(&sk->sk_receive_queue);
-			if (skb) {
-				struct sk_buff *oob_skb = READ_ONCE(u->oob_skb);
-				struct sk_buff *next_skb;
-
-				next_skb = skb_peek_next(skb, &sk->sk_receive_queue);
-
-				if (skb == oob_skb ||
-				    (!unix_skb_len(skb) &&
-				     (!oob_skb || next_skb == oob_skb)))
-					answ = 1;
-			}
-
-			mutex_unlock(&u->iolock);
-
-			err = put_user(answ, (int __user *)arg);
-		}
-		break;
-#endif
 	default:
 		err = -ENOIOCTLCMD;
 		break;
@@ -3392,10 +3146,6 @@ static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wa
 		mask |= EPOLLIN | EPOLLRDNORM;
 	if (sk_is_readable(sk))
 		mask |= EPOLLIN | EPOLLRDNORM;
-#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
-	if (READ_ONCE(unix_sk(sk)->oob_skb))
-		mask |= EPOLLPRI;
-#endif
 
 	/* Connection-based need to check for termination and startup */
 	if ((sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) &&
diff --git a/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c b/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c
index 9c461d93113db2..e73d3a674a741c 100644
--- a/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c
+++ b/tools/testing/selftests/bpf/prog_tests/sockmap_redir.c
@@ -103,7 +103,6 @@ struct redir_spec {
 struct socket_spec {
 	int family;
 	int sotype;
-	int send_flags;
 	int in[2];
 	int out[2];
 };
@@ -197,12 +196,12 @@ static void handle_unsupported(int sd_send, int sd_peer, int sd_in, int sd_out,
 		try_recv("bpf.recv(sd_recv)", sd_recv, MSG_DONTWAIT, false);
 }
 
-static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,
+static void test_send_redir_recv(int sd_send, int sd_peer,
 				 int sd_in, int sd_out, int sd_recv,
 				 struct maps *maps, int status)
 {
 	unsigned int drop, pass;
-	char *send_buf = "ab";
+	char *send_buf = "a";
 	char recv_buf = '\0';
 	ssize_t n, len = 1;
 
@@ -217,10 +216,7 @@ static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,
 	if (xbpf_map_update_elem(maps->out, &u32(0), &u64(sd_out), BPF_NOEXIST))
 		goto del_in;
 
-	/* Last byte is OOB data when send_flags has MSG_OOB bit set */
-	if (send_flags & MSG_OOB)
-		len++;
-	n = send(sd_send, send_buf, len, send_flags);
+	n = send(sd_send, send_buf, len, 0);
 	if (n >= 0 && n < len)
 		FAIL("incomplete send");
 	if (n < 0) {
@@ -255,20 +251,6 @@ static void test_send_redir_recv(int sd_send, int send_flags, int sd_peer,
 	if (recv_buf != send_buf[0])
 		FAIL("recv(): payload check, %02x != %02x", recv_buf, send_buf[0]);
 
-	if (send_flags & MSG_OOB) {
-		/* Fail reading OOB while in sockmap */
-		try_recv("bpf.recv(sd_out, MSG_OOB)", sd_out,
-			 MSG_OOB | MSG_DONTWAIT, false);
-
-		/* Remove sd_out from sockmap */
-		xbpf_map_delete_elem(maps->out, &u32(0));
-
-		/* Check that OOB was dropped on redirect */
-		try_recv("recv(sd_out, MSG_OOB)", sd_out,
-			 MSG_OOB | MSG_DONTWAIT, false);
-
-		goto del_in;
-	}
 out:
 	xbpf_map_delete_elem(maps->out, &u32(0));
 del_in:
@@ -328,7 +310,7 @@ static void test_socket(enum bpf_map_type type, struct redir_spec *redir,
 			struct maps *maps, struct socket_spec *s_in,
 			struct socket_spec *s_out)
 {
-	int fd_in, fd_out, fd_send, fd_peer, fd_recv, flags, status;
+	int fd_in, fd_out, fd_send, fd_peer, fd_recv, status;
 	const char *in_str, *out_str;
 	char s[MAX_TEST_NAME];
 
@@ -337,26 +319,24 @@ static void test_socket(enum bpf_map_type type, struct redir_spec *redir,
 	fd_send = s_in->in[redir->idx_send];
 	fd_peer = s_in->in[redir->idx_send ^ 1];
 	fd_recv = s_out->out[redir->idx_recv];
-	flags = s_in->send_flags;
 
 	in_str = socket_kind_to_str(fd_in);
 	out_str = socket_kind_to_str(fd_out);
 	status = get_support_status(redir->prog_type, in_str, out_str);
 
 	snprintf(s, sizeof(s),
-		 "%-4s %-17s %-5s %s %-5s%6s",
-		 /* hash sk_skb-to-ingress u_str → v_str (OOB) */
+		 "%-4s %-17s %-5s %s %-5s",
+		 /* hash sk_skb-to-ingress u_str → v_str */
 		 type == BPF_MAP_TYPE_SOCKMAP ? "map" : "hash",
 		 redir->name,
 		 in_str,
 		 status & SUPPORTED ? "→" : " ",
-		 out_str,
-		 (flags & MSG_OOB) ? "(OOB)" : "");
+		 out_str);
 
 	if (!test__start_subtest(s))
 		return;
 
-	test_send_redir_recv(fd_send, flags, fd_peer, fd_in, fd_out, fd_recv,
+	test_send_redir_recv(fd_send, fd_peer, fd_in, fd_out, fd_recv,
 			     maps, status);
 }
 
@@ -365,12 +345,10 @@ static void test_redir(enum bpf_map_type type, struct redir_spec *redir,
 {
 	struct socket_spec *s, sockets[] = {
 		{ AF_INET, SOCK_STREAM },
-		// { AF_INET, SOCK_STREAM, MSG_OOB }, /* Known to be broken */
 		{ AF_INET6, SOCK_STREAM },
 		{ AF_INET, SOCK_DGRAM },
 		{ AF_INET6, SOCK_DGRAM },
 		{ AF_UNIX, SOCK_STREAM },
-		{ AF_UNIX, SOCK_STREAM, MSG_OOB },
 		{ AF_UNIX, SOCK_DGRAM },
 		// { AF_UNIX, SOCK_SEQPACKET},	/* Unsupported BPF_MAP_UPDATE_ELEM */
 		{ AF_VSOCK, SOCK_STREAM },
@@ -392,10 +370,9 @@ static void test_redir(enum bpf_map_type type, struct redir_spec *redir,
 			struct socket_spec *out = &sockets[j];
 			struct socket_spec *in = &sockets[i];
 
-			/* Skip intra-proto and between variants */
-			if (out->send_flags ||
-			    (in->family == out->family &&
-			     in->sotype == out->sotype))
+			/* Skip intra-proto */
+			if (in->family == out->family &&
+			    in->sotype == out->sotype)
 				continue;
 
 			test_socket(type, redir, maps, in, out);
diff --git a/tools/testing/selftests/landlock/config b/tools/testing/selftests/landlock/config
index 5568d7a4b2d79d..fb617c1a4ce3fa 100644
--- a/tools/testing/selftests/landlock/config
+++ b/tools/testing/selftests/landlock/config
@@ -1,4 +1,3 @@
-CONFIG_AF_UNIX_OOB=y
 CONFIG_AUDIT=y
 CONFIG_CGROUPS=y
 CONFIG_CGROUP_SCHED=y
diff --git a/tools/testing/selftests/landlock/scoped_signal_test.c b/tools/testing/selftests/landlock/scoped_signal_test.c
index 259cdcc8aa5cc1..c4c365007370ac 100644
--- a/tools/testing/selftests/landlock/scoped_signal_test.c
+++ b/tools/testing/selftests/landlock/scoped_signal_test.c
@@ -405,24 +405,6 @@ static int setup_signal_handler(int signal)
 	return sigaction(SIGURG, &sa, NULL);
 }
 
-/*
- * MSG_OOB might be disabled in the kernel via the CONFIG_AF_UNIX_OOB
- * switch, so this function can be used for probing for its availability.
- */
-static bool has_af_unix_oob(void)
-{
-	bool available = false;
-	int sp[2];
-
-	if (socketpair(AF_UNIX, SOCK_STREAM, 0, sp) == 0) {
-		available = (send(sp[0], ".", 1, MSG_OOB) == 1);
-		close(sp[0]);
-		close(sp[1]);
-	}
-
-	return available;
-}
-
 /* clang-format off */
 FIXTURE(fown) {};
 /* clang-format on */
@@ -473,8 +455,8 @@ FIXTURE_TEARDOWN(fown)
 }
 
 /*
- * Sending an out of bound message will trigger the SIGURG signal
- * through file_send_sigiotask.
+ * Sending a message to a socket with O_ASYNC will trigger
+ * the SIGURG signal through file_send_sigiotask.
  */
 TEST_F(fown, sigurg_socket)
 {
@@ -485,9 +467,6 @@ TEST_F(fown, sigurg_socket)
 	int pipe_parent[2], pipe_child[2];
 	pid_t child;
 
-	if (!has_af_unix_oob())
-		SKIP(return, "CONFIG_AF_UNIX_OOB / MSG_OOB not available");
-
 	memset(&server_address, 0, sizeof(server_address));
 	set_unix_address(&server_address, 0);
 
@@ -521,14 +500,14 @@ TEST_F(fown, sigurg_socket)
 		 */
 		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
 		/* May signal itself. */
-		ASSERT_EQ(1, send(client_socket, ".", 1, MSG_OOB));
-		EXPECT_EQ(0, close(client_socket));
+		ASSERT_EQ(1, send(client_socket, ".", 1, 0));
 		ASSERT_EQ(1, write(pipe_child[1], ".", 1));
 		EXPECT_EQ(0, close(pipe_child[1]));
 
 		/* Waits for the message to be received. */
 		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
 		EXPECT_EQ(0, close(pipe_parent[0]));
+		EXPECT_EQ(0, close(client_socket));
 
 		if (variant->sandbox_setown == SANDBOX_BEFORE_SETOWN) {
 			ASSERT_EQ(0, signal_received);
@@ -560,20 +539,22 @@ TEST_F(fown, sigurg_socket)
 		create_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);
 
 	/*
-	 * Sets the child to receive SIGURG for MSG_OOB.  This uncommon use is
+	 * Sets the child to receive SIGURG.  This uncommon use is
 	 * a valid attack scenario which also simplifies this test.
 	 */
 	ASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETSIG, SIGURG));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETFL, O_ASYNC));
 
 	if (variant->sandbox_setown == SANDBOX_AFTER_SETOWN)
 		create_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);
 
 	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
 
-	/* Waits for the child to send MSG_OOB. */
+	/* Waits for the child to send data. */
 	ASSERT_EQ(1, read(pipe_child[0], &buffer_parent, 1));
 	EXPECT_EQ(0, close(pipe_child[0]));
-	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, MSG_OOB));
+	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, 0));
 	EXPECT_EQ(0, close(recv_socket));
 	EXPECT_EQ(0, close(server_socket));
 	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
@@ -1085,11 +1066,15 @@ TEST_F(trace_fown, deny_scope_fown)
 		 */
 		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
 		/* Triggers the asynchronous SIGURG to this file owner. */
-		ASSERT_EQ(1, send(client_socket, ".", 1, MSG_OOB));
-		EXPECT_EQ(0, close(client_socket));
+		ASSERT_EQ(1, send(client_socket, ".", 1, 0));
 		ASSERT_EQ(1, write(pipe_child[1], ".", 1));
 		EXPECT_EQ(0, close(pipe_child[1]));
 
+		/* Waits for the message to be received. */
+		ASSERT_EQ(1, read(pipe_parent[0], &buffer_child, 1));
+		EXPECT_EQ(0, close(pipe_parent[0]));
+		EXPECT_EQ(0, close(client_socket));
+
 		_exit(0);
 		return;
 	}
@@ -1114,19 +1099,23 @@ TEST_F(trace_fown, deny_scope_fown)
 		create_scoped_domain(_metadata, LANDLOCK_SCOPE_SIGNAL);
 
 	/*
-	 * Sets the child to receive SIGURG for MSG_OOB.  This uncommon use is a
+	 * Sets the child to receive SIGURG.  This uncommon use is a
 	 * valid attack scenario which also simplifies this test.
 	 */
 	ASSERT_EQ(0, fcntl(recv_socket, F_SETOWN, child));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETSIG, SIGURG));
+	ASSERT_EQ(0, fcntl(recv_socket, F_SETFL, O_ASYNC));
 
 	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
 
-	/* Waits for the child to send MSG_OOB. */
+	/* Waits for the child to send data. */
 	ASSERT_EQ(1, read(pipe_child[0], &buffer_parent, 1));
 	EXPECT_EQ(0, close(pipe_child[0]));
-	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, MSG_OOB));
+	ASSERT_EQ(1, recv(recv_socket, &buffer_parent, 1, 0));
 	EXPECT_EQ(0, close(recv_socket));
 	EXPECT_EQ(0, close(server_socket));
+	ASSERT_EQ(1, write(pipe_parent[1], ".", 1));
+	EXPECT_EQ(0, close(pipe_parent[1]));
 
 	ASSERT_EQ(child, waitpid(child, &status, 0));
 	ASSERT_TRUE(WIFEXITED(status));
diff --git a/tools/testing/selftests/net/af_unix/.gitignore b/tools/testing/selftests/net/af_unix/.gitignore
index 954f0958dd0342..b926e7f9625fe0 100644
--- a/tools/testing/selftests/net/af_unix/.gitignore
+++ b/tools/testing/selftests/net/af_unix/.gitignore
@@ -1,5 +1,4 @@
 diag_uid
-msg_oob
 scm_inq
 scm_pidfd
 scm_rights
diff --git a/tools/testing/selftests/net/af_unix/Makefile b/tools/testing/selftests/net/af_unix/Makefile
index 45b841758f1bfb..fb2e09f0f44bb6 100644
--- a/tools/testing/selftests/net/af_unix/Makefile
+++ b/tools/testing/selftests/net/af_unix/Makefile
@@ -7,7 +7,6 @@ CFLAGS += $(KHDR_INCLUDES) -Wall $(call cc-option,-Wflex-array-member-not-at-end
 
 TEST_GEN_PROGS := \
 	diag_uid \
-	msg_oob \
 	scm_inq \
 	scm_pidfd \
 	scm_rights \
diff --git a/tools/testing/selftests/net/af_unix/config b/tools/testing/selftests/net/af_unix/config
index 46450fea840736..549c33203c4111 100644
--- a/tools/testing/selftests/net/af_unix/config
+++ b/tools/testing/selftests/net/af_unix/config
@@ -1,4 +1,3 @@
-CONFIG_AF_UNIX_OOB=y
 CONFIG_BPF=y
 CONFIG_BPF_EVENTS=y
 CONFIG_BPF_JIT=y
diff --git a/tools/testing/selftests/net/af_unix/msg_oob.c b/tools/testing/selftests/net/af_unix/msg_oob.c
deleted file mode 100644
index f051d79f7a8ef6..00000000000000
--- a/tools/testing/selftests/net/af_unix/msg_oob.c
+++ /dev/null
@@ -1,958 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/* Copyright Amazon.com Inc. or its affiliates. */
-
-#include <fcntl.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <netinet/in.h>
-#include <sys/epoll.h>
-#include <sys/ioctl.h>
-#include <sys/signalfd.h>
-#include <sys/socket.h>
-
-#include "kselftest_harness.h"
-
-#define BUF_SZ	32
-
-FIXTURE(msg_oob)
-{
-	int fd[4];		/* 0: AF_UNIX sender
-				 * 1: AF_UNIX receiver
-				 * 2: TCP sender
-				 * 3: TCP receiver
-				 */
-	int signal_fd;
-	int epoll_fd[2];	/* 0: AF_UNIX receiver
-				 * 1: TCP receiver
-				 */
-	bool tcp_compliant;
-};
-
-FIXTURE_VARIANT(msg_oob)
-{
-	bool peek;
-};
-
-FIXTURE_VARIANT_ADD(msg_oob, no_peek)
-{
-	.peek = false,
-};
-
-FIXTURE_VARIANT_ADD(msg_oob, peek)
-{
-	.peek = true
-};
-
-static void create_unix_socketpair(struct __test_metadata *_metadata,
-				   FIXTURE_DATA(msg_oob) *self)
-{
-	int ret;
-
-	ret = socketpair(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0, self->fd);
-	ASSERT_EQ(ret, 0);
-}
-
-static void create_tcp_socketpair(struct __test_metadata *_metadata,
-				  FIXTURE_DATA(msg_oob) *self)
-{
-	struct sockaddr_in addr;
-	socklen_t addrlen;
-	int listen_fd;
-	int ret;
-
-	listen_fd = socket(AF_INET, SOCK_STREAM, 0);
-	ASSERT_GE(listen_fd, 0);
-
-	ret = listen(listen_fd, -1);
-	ASSERT_EQ(ret, 0);
-
-	addrlen = sizeof(addr);
-	ret = getsockname(listen_fd, (struct sockaddr *)&addr, &addrlen);
-	ASSERT_EQ(ret, 0);
-
-	self->fd[2] = socket(AF_INET, SOCK_STREAM, 0);
-	ASSERT_GE(self->fd[2], 0);
-
-	ret = connect(self->fd[2], (struct sockaddr *)&addr, addrlen);
-	ASSERT_EQ(ret, 0);
-
-	self->fd[3] = accept(listen_fd, (struct sockaddr *)&addr, &addrlen);
-	ASSERT_GE(self->fd[3], 0);
-
-	ret = fcntl(self->fd[3], F_SETFL, O_NONBLOCK);
-	ASSERT_EQ(ret, 0);
-}
-
-static void setup_sigurg(struct __test_metadata *_metadata,
-			 FIXTURE_DATA(msg_oob) *self)
-{
-	struct signalfd_siginfo siginfo;
-	int pid = getpid();
-	sigset_t mask;
-	int i, ret;
-
-	for (i = 0; i < 2; i++) {
-		ret = ioctl(self->fd[i * 2 + 1], FIOSETOWN, &pid);
-		ASSERT_EQ(ret, 0);
-	}
-
-	ret = sigemptyset(&mask);
-	ASSERT_EQ(ret, 0);
-
-	ret = sigaddset(&mask, SIGURG);
-	ASSERT_EQ(ret, 0);
-
-	ret = sigprocmask(SIG_BLOCK, &mask, NULL);
-	ASSERT_EQ(ret, 0);
-
-	self->signal_fd = signalfd(-1, &mask, SFD_NONBLOCK);
-	ASSERT_GE(self->signal_fd, 0);
-
-	ret = read(self->signal_fd, &siginfo, sizeof(siginfo));
-	ASSERT_EQ(ret, -1);
-}
-
-static void setup_epollpri(struct __test_metadata *_metadata,
-			   FIXTURE_DATA(msg_oob) *self)
-{
-	struct epoll_event event = {
-		.events = EPOLLPRI,
-	};
-	int i;
-
-	for (i = 0; i < 2; i++) {
-		int ret;
-
-		self->epoll_fd[i] = epoll_create1(0);
-		ASSERT_GE(self->epoll_fd[i], 0);
-
-		ret = epoll_ctl(self->epoll_fd[i], EPOLL_CTL_ADD, self->fd[i * 2 + 1], &event);
-		ASSERT_EQ(ret, 0);
-	}
-}
-
-static void close_sockets(FIXTURE_DATA(msg_oob) *self)
-{
-	int i;
-
-	for (i = 0; i < 4; i++)
-		close(self->fd[i]);
-}
-
-FIXTURE_SETUP(msg_oob)
-{
-	create_unix_socketpair(_metadata, self);
-	create_tcp_socketpair(_metadata, self);
-
-	setup_sigurg(_metadata, self);
-	setup_epollpri(_metadata, self);
-
-	self->tcp_compliant = true;
-}
-
-FIXTURE_TEARDOWN(msg_oob)
-{
-	close_sockets(self);
-}
-
-static void __epollpair(struct __test_metadata *_metadata,
-			FIXTURE_DATA(msg_oob) *self,
-			bool oob_remaining)
-{
-	struct epoll_event event[2] = {};
-	int i, ret[2];
-
-	for (i = 0; i < 2; i++)
-		ret[i] = epoll_wait(self->epoll_fd[i], &event[i], 1, 0);
-
-	ASSERT_EQ(ret[0], oob_remaining);
-
-	if (self->tcp_compliant)
-		ASSERT_EQ(ret[0], ret[1]);
-
-	if (oob_remaining) {
-		ASSERT_EQ(event[0].events, EPOLLPRI);
-
-		if (self->tcp_compliant)
-			ASSERT_EQ(event[0].events, event[1].events);
-	}
-}
-
-static void __sendpair(struct __test_metadata *_metadata,
-		       FIXTURE_DATA(msg_oob) *self,
-		       const void *buf, size_t len, int flags)
-{
-	int i, ret[2];
-
-	for (i = 0; i < 2; i++) {
-		struct signalfd_siginfo siginfo = {};
-		int bytes;
-
-		ret[i] = send(self->fd[i * 2], buf, len, flags);
-
-		bytes = read(self->signal_fd, &siginfo, sizeof(siginfo));
-
-		if (flags & MSG_OOB) {
-			ASSERT_EQ(bytes, sizeof(siginfo));
-			ASSERT_EQ(siginfo.ssi_signo, SIGURG);
-
-			bytes = read(self->signal_fd, &siginfo, sizeof(siginfo));
-		}
-
-		ASSERT_EQ(bytes, -1);
-	}
-
-	ASSERT_EQ(ret[0], len);
-	ASSERT_EQ(ret[0], ret[1]);
-}
-
-static void __recvpair(struct __test_metadata *_metadata,
-		       FIXTURE_DATA(msg_oob) *self,
-		       const char *expected_buf, int expected_len,
-		       int buf_len, int flags, bool is_sender)
-{
-	int i, ret[2], recv_errno[2], expected_errno = 0;
-	char recv_buf[2][BUF_SZ] = {};
-	bool printed = false;
-
-	ASSERT_GE(BUF_SZ, buf_len);
-
-	errno = 0;
-
-	for (i = 0; i < 2; i++) {
-		int index = is_sender ? i * 2 : i * 2 + 1;
-
-		ret[i] = recv(self->fd[index], recv_buf[i], buf_len, flags);
-		recv_errno[i] = errno;
-	}
-
-	if (expected_len < 0) {
-		expected_errno = -expected_len;
-		expected_len = -1;
-	}
-
-	if (ret[0] != expected_len || recv_errno[0] != expected_errno) {
-		TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-		TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf);
-
-		ASSERT_EQ(ret[0], expected_len);
-		ASSERT_EQ(recv_errno[0], expected_errno);
-	}
-
-	if (ret[0] != ret[1] || recv_errno[0] != recv_errno[1]) {
-		TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-		TH_LOG("TCP     :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]);
-
-		printed = true;
-
-		if (self->tcp_compliant) {
-			ASSERT_EQ(ret[0], ret[1]);
-			ASSERT_EQ(recv_errno[0], recv_errno[1]);
-		}
-	}
-
-	if (expected_len >= 0) {
-		int cmp;
-
-		cmp = strncmp(expected_buf, recv_buf[0], expected_len);
-		if (cmp) {
-			TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-			TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf);
-
-			ASSERT_EQ(cmp, 0);
-		}
-
-		cmp = strncmp(recv_buf[0], recv_buf[1], expected_len);
-		if (cmp) {
-			if (!printed) {
-				TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]);
-				TH_LOG("TCP     :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]);
-			}
-
-			if (self->tcp_compliant)
-				ASSERT_EQ(cmp, 0);
-		}
-	}
-}
-
-static void __setinlinepair(struct __test_metadata *_metadata,
-			    FIXTURE_DATA(msg_oob) *self)
-{
-	int i, oob_inline = 1;
-
-	for (i = 0; i < 2; i++) {
-		int ret;
-
-		ret = setsockopt(self->fd[i * 2 + 1], SOL_SOCKET, SO_OOBINLINE,
-				 &oob_inline, sizeof(oob_inline));
-		ASSERT_EQ(ret, 0);
-	}
-}
-
-static void __setblockingpair(struct __test_metadata *_metadata,
-			      FIXTURE_DATA(msg_oob) *self)
-{
-	int i;
-
-	for (i = 0; i < 2; i++) {
-		int ret, old_flags, flags;
-
-		old_flags = fcntl(self->fd[i * 2 + 1], F_GETFL, 0);
-		ASSERT_NE(-1, old_flags);
-
-		ret = fcntl(self->fd[i * 2 + 1], F_SETFL, old_flags & ~O_NONBLOCK);
-		ASSERT_EQ(0, ret);
-
-		flags = fcntl(self->fd[i * 2 + 1], F_GETFL, 0);
-		ASSERT_EQ(old_flags & ~O_NONBLOCK, flags);
-	}
-}
-
-static void __siocatmarkpair(struct __test_metadata *_metadata,
-			     FIXTURE_DATA(msg_oob) *self,
-			     bool oob_head)
-{
-	int answ[2] = {};
-	int i;
-
-	for (i = 0; i < 2; i++) {
-		int ret;
-
-		ret = ioctl(self->fd[i * 2 + 1], SIOCATMARK, &answ[i]);
-		ASSERT_EQ(ret, 0);
-	}
-
-	ASSERT_EQ(answ[0], oob_head);
-
-	if (self->tcp_compliant)
-		ASSERT_EQ(answ[0], answ[1]);
-}
-
-static void __resetpair(struct __test_metadata *_metadata,
-			FIXTURE_DATA(msg_oob) *self,
-			const FIXTURE_VARIANT(msg_oob) *variant,
-			bool reset)
-{
-	int i;
-
-	for (i = 0; i < 2; i++)
-		close(self->fd[i * 2 + 1]);
-
-	__recvpair(_metadata, self, "", reset ? -ECONNRESET : 0, 1,
-		   variant->peek ? MSG_PEEK : 0, true);
-}
-
-#define sendpair(buf, len, flags)					\
-	__sendpair(_metadata, self, buf, len, flags)
-
-#define recvpair(expected_buf, expected_len, buf_len, flags)		\
-	do {								\
-		if (variant->peek)					\
-			__recvpair(_metadata, self,			\
-				   expected_buf, expected_len,		\
-				   buf_len, (flags) | MSG_PEEK, false);	\
-		__recvpair(_metadata, self,				\
-			   expected_buf, expected_len,			\
-			   buf_len, flags, false);			\
-	} while (0)
-
-#define epollpair(oob_remaining)					\
-	__epollpair(_metadata, self, oob_remaining)
-
-#define siocatmarkpair(oob_head)					\
-	__siocatmarkpair(_metadata, self, oob_head)
-
-#define setinlinepair()							\
-	__setinlinepair(_metadata, self)
-
-#define setblockingpair()						\
-	__setblockingpair(_metadata, self)
-
-#define resetpair(reset)						\
-	__resetpair(_metadata, self, variant, reset)
-
-#define tcp_incompliant							\
-	for (self->tcp_compliant = false;				\
-	     self->tcp_compliant == false;				\
-	     self->tcp_compliant = true)
-
-TEST_F(msg_oob, non_oob)
-{
-	sendpair("x", 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, non_oob_no_reset)
-{
-	sendpair("x", 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("x", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, oob_reset)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, oob_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("", -EAGAIN, 1, 0);		/* Drop OOB. */
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob_ahead)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 4, 0);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, oob_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 5, 0);		/* Break at OOB even with enough buffer. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	recvpair("", -EAGAIN, 1, 0);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob_ahead_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 9, 0);		/* Break at OOB even after it's recv()ed. */
-	epollpair(false);
-	siocatmarkpair(true);
-
-	recvpair("world", 5, 5, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, oob_break_drop)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 10, 0);		/* Break at OOB even with enough buffer. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("world", 5, 10, 0);		/* Drop OOB and recv() the next skb. */
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("wor", 3, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("ld", 2, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hellowo", 7, 10, 0);		/* Break at OOB but not at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("r", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	recvpair("ld", 2, 2, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);		/* TCP drops "x" at this moment. */
-	epollpair(true);
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-
-		recvpair("x", 1, 1, 0);		/* TCP drops "y" by passing through it. */
-		epollpair(true);
-		siocatmarkpair(true);
-
-		recvpair("y", 1, 1, MSG_OOB);	/* TCP returns -EINVAL. */
-		epollpair(false);
-		siocatmarkpair(true);
-	}
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_drop_2)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);		/* TCP drops "x" at this moment. */
-	epollpair(true);
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-	}
-
-	recvpair("y", 1, 1, MSG_OOB);
-	epollpair(false);
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-
-		recvpair("x", 1, 1, 0);		/* TCP returns -EAGAIN. */
-		epollpair(false);
-		siocatmarkpair(true);
-	}
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("", -EAGAIN, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, ex_oob_ex_oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("y", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, ex_oob_ex_oob_oob)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("y", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	sendpair("z", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-}
-
-TEST_F(msg_oob, ex_oob_ahead_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("wor", 3, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("r", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	sendpair("ld", 2, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	tcp_incompliant {
-		recvpair("hellowol", 8, 10, 0);	/* TCP recv()s "helloworl", why "r" ?? */
-	}
-
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("d", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		resetpair(false);		/* TCP sets -ECONNRESET for ex-OOB. */
-	}
-}
-
-TEST_F(msg_oob, ex_oob_siocatmark)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 4, 0);		/* Intentionally stop at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(false);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, inline_oob)
-{
-	setinlinepair();
-
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("x", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_oob_break)
-{
-	setinlinepair();
-
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("", -EINVAL, 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 5, 0);		/* Break at OOB but not at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("o", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_oob_ahead_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("world", 5, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	setinlinepair();
-
-	recvpair("hell", 4, 9, 0);		/* Break at OOB even with enough buffer. */
-	epollpair(false);
-	siocatmarkpair(true);
-
-	tcp_incompliant {
-		recvpair("world", 5, 6, 0);	/* TCP recv()s "oworld", ... "o" ??? */
-	}
-
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_break)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("wor", 3, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	sendpair("ld", 2, 0);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	setinlinepair();
-
-	recvpair("hellowo", 7, 10, 0);		/* Break at OOB but not at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("rld", 3, 3, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_no_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	setinlinepair();
-
-	sendpair("y", 1, MSG_OOB);		/* TCP does NOT drops "x" at this moment. */
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("x", 1, 1, 0);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	recvpair("y", 1, 1, 0);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_drop)
-{
-	sendpair("x", 1, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(true);
-
-	sendpair("y", 1, MSG_OOB);		/* TCP drops "x" at this moment. */
-	epollpair(true);
-
-	setinlinepair();
-
-	tcp_incompliant {
-		siocatmarkpair(false);
-
-		recvpair("x", 1, 1, 0);		/* TCP recv()s "y". */
-		epollpair(true);
-		siocatmarkpair(true);
-
-		recvpair("y", 1, 1, 0);		/* TCP returns -EAGAIN. */
-		epollpair(false);
-		siocatmarkpair(false);
-	}
-
-	resetpair(false);
-}
-
-TEST_F(msg_oob, inline_ex_oob_siocatmark)
-{
-	sendpair("hello", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("o", 1, 1, MSG_OOB);
-	epollpair(false);
-	siocatmarkpair(false);
-
-	setinlinepair();
-
-	sendpair("world", 5, MSG_OOB);
-	epollpair(true);
-	siocatmarkpair(false);
-
-	recvpair("hell", 4, 4, 0);		/* Intentionally stop at ex-OOB. */
-	epollpair(true);
-	siocatmarkpair(false);
-
-	resetpair(true);
-}
-
-TEST_F(msg_oob, zero_buf_oob)
-{
-	sendpair("a", 1, MSG_OOB);
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_oob_blocking)
-{
-	sendpair("a", 1, MSG_OOB);
-	setblockingpair();
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_non_oob_oob)
-{
-	sendpair("ab", 2, MSG_OOB);
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_non_oob_oob_blocking)
-{
-	sendpair("ab", 2, MSG_OOB);
-	setblockingpair();
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_ex_oob_oob)
-{
-	sendpair("a", 1, MSG_OOB);
-	recvpair("a", 1, 1, MSG_OOB);
-
-	sendpair("b", 1, MSG_OOB);
-	recvpair("", 0, 0, 0);
-}
-
-TEST_F(msg_oob, zero_buf_ex_oob_oob_blocking)
-{
-	sendpair("a", 1, MSG_OOB);
-	recvpair("a", 1, 1, MSG_OOB);
-
-	sendpair("b", 1, MSG_OOB);
-	setblockingpair();
-	recvpair("", 0, 0, 0);
-}
-
-TEST_HARNESS_MAIN
diff --git a/tools/testing/selftests/net/af_unix/scm_rights.c b/tools/testing/selftests/net/af_unix/scm_rights.c
index c165f250220a4a..40459fb21b733b 100644
--- a/tools/testing/selftests/net/af_unix/scm_rights.c
+++ b/tools/testing/selftests/net/af_unix/scm_rights.c
@@ -21,7 +21,6 @@ FIXTURE_VARIANT(scm_rights)
 {
 	char name[32];
 	int type;
-	int flags;
 	bool test_listener;
 	bool disabled;
 };
@@ -30,7 +29,6 @@ FIXTURE_VARIANT_ADD(scm_rights, dgram)
 {
 	.name = "UNIX ",
 	.type = SOCK_DGRAM,
-	.flags = 0,
 	.test_listener = false,
 	.disabled = false,
 };
@@ -39,7 +37,6 @@ FIXTURE_VARIANT_ADD(scm_rights, dgram_disabled)
 {
 	.name = "UNIX ",
 	.type = SOCK_DGRAM,
-	.flags = 0,
 	.test_listener = false,
 	.disabled = true,
 };
@@ -48,7 +45,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
 	.test_listener = false,
 	.disabled = false,
 };
@@ -57,25 +53,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_disabled)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
-	.test_listener = false,
-	.disabled = true,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_oob)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
-	.test_listener = false,
-	.disabled = false,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_oob_disabled)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
 	.test_listener = false,
 	.disabled = true,
 };
@@ -84,7 +61,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_listener)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
 	.test_listener = true,
 	.disabled = false,
 };
@@ -93,25 +69,6 @@ FIXTURE_VARIANT_ADD(scm_rights, stream_listener_disabled)
 {
 	.name = "UNIX-STREAM ",
 	.type = SOCK_STREAM,
-	.flags = 0,
-	.test_listener = true,
-	.disabled = true,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_listener_oob)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
-	.test_listener = true,
-	.disabled = false,
-};
-
-FIXTURE_VARIANT_ADD(scm_rights, stream_listener_oob_disabled)
-{
-	.name = "UNIX-STREAM ",
-	.type = SOCK_STREAM,
-	.flags = MSG_OOB,
 	.test_listener = true,
 	.disabled = true,
 };
@@ -297,7 +254,7 @@ void __send_fd(struct __test_metadata *_metadata,
 	cmsg->cmsg_len = CMSG_LEN(sizeof(fds));
 	memcpy(CMSG_DATA(cmsg), fds, sizeof(fds));
 
-	ret = sendmsg(self->fd[receiver * 2 + 1], &msg, variant->flags);
+	ret = sendmsg(self->fd[receiver * 2 + 1], &msg, 0);
 
 	if (variant->disabled) {
 		ASSERT_EQ(-1, ret);

29/3 2026/11/19 10:07 llm kmsan-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 21802
							output: 215
							thoughts: 1248
						

Thoughts:
**KMSAN Fuzzing Session Evaluation: AF_UNIX MSG_OOB Removal**

Okay, let's break this down. The question is, does this patch series warrant a dedicated KMSAN fuzzing session? I'm looking at a pretty straightforward removal: the complete eradication of AF_UNIX out-of-band message support. This means we're saying goodbye to MSG_OOB, the associated SIOCATMARK handling, and even EPOLLPRI related to OOB within AF_UNIX. The code itself shows the removal of conditionals, function calls like `queue_oob` and `manage_oob`, and the `oob_skb` field from `struct unix_sock`.  The net effect? A simple -EOPNOTSUPP error return when MSG_OOB is attempted.

My primary concern is uninitialized memory: could this introduce new risks, or expose existing ones? After a careful review of the code diffs, I'm confident the answer is no.  This is *pure* code removal. It's not introducing any new allocations, new data structures, nor is it making any changes to data initialization paths.  The patch specifically removes the handling of MSG_OOB, not changing the layout of existing structures and not copying anything into userspace that may be uninitialized. SIOCATMARK is also gone. There are no added variables. The `oob_skb` pointer removal doesn't appear in places where it would cause any uninitialized memory.

I'm checking carefully for any subtle areas where removing something like `oob_skb` or `manage_oob` *could* leave something uninitialized. Checking `unix_release_sock`, `unix_stream_sendmsg`, `unix_stream_read_generic`, and `unix_stream_read_skb`, this doesn't appear to be the case. It appears to purely be a removal of code.

Given the KMSAN rules and the nature of the patch, it seems quite clear: this doesn't introduce or expose any uninitialized memory usage or kernel-to-user memory info-leak risks. KASAN would still catch any of the standard memory corruption bugs like out-of-bounds access, use-after-free or null pointer dereferences. KMSAN's purpose is to find reads of uninitialized memory, but this patch doesn't introduce any new structures, variables, or conditional branches on uninitialized data.

Therefore, no KMSAN fuzzing is needed in this case. Time to move on and let's call the `set-results` tool.



30/3 2026/11/19 10:08 tool set-results
0m Args:
{
  "KMSANReasoning": "The patch series completely removes out-of-band (MSG_OOB) data support for AF_UNIX sockets, including the deletion of helper functions (queue_oob, unix_stream_recv_urg, manage_oob), the SIOCATMARK ioctl handling, the oob_skb pointer from struct unix_sock, and related selftests.\n\nThis change is almost exclusively code removal and simplification. It does not introduce any new memory allocations, variables, struct fields, or code paths copying kernel data to user space (in fact, it removes a put_user invocation for SIOCATMARK). MSG_OOB requests on AF_UNIX streams now immediately fail with -EOPNOTSUPP. There are no risks of reading uninitialized memory, branching on uninitialized data, or leaking uninitialized memory to user space. Therefore, a dedicated KMSAN fuzzing session is not warranted.",
  "NeedsKMSAN": false
}

Results:
{
  "KMSANReasoning": "The patch series completely removes out-of-band (MSG_OOB) data support for AF_UNIX sockets, including the deletion of helper functions (queue_oob, unix_stream_recv_urg, manage_oob), the SIOCATMARK ioctl handling, the oob_skb pointer from struct unix_sock, and related selftests.\n\nThis change is almost exclusively code removal and simplification. It does not introduce any new memory allocations, variables, struct fields, or code paths copying kernel data to user space (in fact, it removes a put_user invocation for SIOCATMARK). MSG_OOB requests on AF_UNIX streams now immediately fail with -EOPNOTSUPP. There are no risks of reading uninitialized memory, branching on uninitialized data, or leaking uninitialized memory to user space. Therefore, a dedicated KMSAN fuzzing session is not warranted.",
  "NeedsKMSAN": false
}

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)