summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-12-19 12:30:43 -0700
committerSasha Levin <sashal@kernel.org>2024-03-26 18:17:49 -0400
commitf3ee556f307e8310b37458f97a3b38f5ea965e2e (patch)
tree30e6785c11dc9913c99acdc8a8314a22b7e50754 /net/core
parentdb324cbb752d8d7d615d107db4264448d4c42c45 (diff)
downloadlinux-stable-f3ee556f307e8310b37458f97a3b38f5ea965e2e.tar.gz
linux-stable-f3ee556f307e8310b37458f97a3b38f5ea965e2e.tar.bz2
linux-stable-f3ee556f307e8310b37458f97a3b38f5ea965e2e.zip
io_uring/unix: drop usage of io_uring socket
Commit a4104821ad651d8a0b374f0b2474c345bbb42f82 upstream. Since we no longer allow sending io_uring fds over SCM_RIGHTS, move to using io_is_uring_fops() to detect whether this is a io_uring fd or not. With that done, kill off io_uring_get_socket() as nobody calls it anymore. This is in preparation to yanking out the rest of the core related to unix gc with io_uring. Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/scm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/scm.c b/net/core/scm.c
index 7dc47c17d863..737917c7ac62 100644
--- a/net/core/scm.c
+++ b/net/core/scm.c
@@ -105,7 +105,7 @@ static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp)
if (fd < 0 || !(file = fget_raw(fd)))
return -EBADF;
/* don't allow io_uring files */
- if (io_uring_get_socket(file)) {
+ if (io_is_uring_fops(file)) {
fput(file);
return -EINVAL;
}