commit | 09952e3e7826119ddd4357c453d54bcc7ef25156 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Thu Mar 19 20:16:56 2020 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Mar 20 08:48:36 2020 -0600 |
tree | 19e373248dd2c3db726505ff186de50f2d99b6cd | |
parent | 4022e7af86be2dd62975dedb6b7ea551d108695e [diff] |
io_uring: make sure accept honor rlimit nofile Just like commit 4022e7af86be, this fixes the fact that IORING_OP_ACCEPT ends up using get_unused_fd_flags(), which checks current->signal->rlim[] for limits. Add an extra argument to __sys_accept4_file() that allows us to pass in the proper nofile limit, and grab it at request prep time. Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jens Axboe <axboe@kernel.dk>