io_uring/af_unix: disable sending io_uring over sockets
File reference cycles have caused lots of problems for io_uring in the past, and it still doesn't work exactly right and races with unix_stream_read_generic(). The safest fix would be to completely disallow sending io_uring files via sockets via SCM_RIGHT, so there are no possible cycles invloving registered files and thus rendering SCM accounting on the io_uring side unnecessary. Cc: <stable@vger.kernel.org> Fixes: 0091bfc8 ("io_uring/af_unix: defer registered files gc to io_uring release") Reported-and-suggested-by:Jann Horn <jannh@google.com> Signed-off-by:
Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/c716c88321939156909cfa1bd8b0faaf1c804103.1701868795.git.asml.silence@gmail.com Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
-
mentioned in commit 923188d5
-
mentioned in commit 968ed079
-
mentioned in commit b8cb32c6
-
mentioned in commit 278a51d5
-
mentioned in commit 9c4dfb74
-
mentioned in commit b327b25a
-
mentioned in commit 6d56ee1f
-
mentioned in commit 269f4bfb
-
mentioned in commit e2ec2068
-
mentioned in commit 94df7c66
-
mentioned in commit f06a6fac
-
mentioned in commit d4db0764
-
mentioned in commit 7294b9ad
-
mentioned in commit f045ee6a
-
mentioned in commit 8c44e83e
-
mentioned in commit 3383181a
-
mentioned in commit 098fb94e
-
mentioned in commit 0d53bc13
-
mentioned in commit 3c1c6d95
-
mentioned in commit 909e52c0
-
mentioned in commit b6c781b8
-
mentioned in commit 50b92bba
-
mentioned in commit d3b5cba5
Please sign in to comment