kernel/net/unix/scm.c
.. .. @@ -8,6 +8,7 @@ 8 8 #include <net/af_unix.h> 9 9 #include <net/scm.h> 10 10 #include <linux/init.h> 11 +#include <linux/io_uring.h>11 12 12 13 #include "scm.h" 13 14 .. .. @@ -33,6 +34,9 @@ 33 34 /* PF_UNIX ? */ 34 35 if (s && sock->ops && sock->ops->family == PF_UNIX) 35 36 u_sock = s; 37 + } else {38 + /* Could be an io_uring instance */39 + u_sock = io_uring_get_socket(filp);36 40 } 37 41 return u_sock; 38 42 }