commit | bcedd497b3b4a0be56f3adf7c7542720eced0792 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <[email protected]> | Wed Dec 06 13:26:47 2023 +0000 |
committer | Greg Kroah-Hartman <[email protected]> | Wed Dec 13 18:36:46 2023 +0100 |
tree | 2826c2b72b3b33f3965f981597292097e5466ea6 | |
parent | c5a09d1631841a0c336bef99c0eb35d49b252eb2 [diff] |
io_uring/af_unix: disable sending io_uring over sockets commit 705318a99a138c29a512a72c3e0043b3cd7f55f4 upstream. 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: <[email protected]> Fixes: 0091bfc81741b ("io_uring/af_unix: defer registered files gc to io_uring release") Reported-and-suggested-by: Jann Horn <[email protected]> Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/c716c88321939156909cfa1bd8b0faaf1c804103.1701868795.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>