diff --git a/io_uring/net.c b/io_uring/net.c index e332b3a2ad3e..e0f27093b385 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -1734,7 +1734,7 @@ void io_socket_bpf_populate(struct io_uring_bpf_ctx *bctx, struct io_kiocb *req) struct io_socket *sock = io_kiocb_to_cmd(req, struct io_socket); bctx->socket.family = sock->domain; - bctx->socket.type = sock->type; + bctx->socket.type = sock->type & SOCK_TYPE_MASK; bctx->socket.protocol = sock->protocol; }