[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200320022216.20993-1-axboe@kernel.dk>
Date: Thu, 19 Mar 2020 20:22:14 -0600
From: Jens Axboe <axboe@...nel.dk>
To: io-uring@...r.kernel.org
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: [PATCHSET] Fix io_uring async rlimit(RLIMIT_NOFILE)
If we handle openat/openat2/accept in an async manner, then we need
to ensure that the max open file limit is honored. All of these end
up boiling down to the check in get_unused_fd_flags(), which does
rlimit(RLIMIT_NOFILE), which uses the current->signal->rlim[] limits.
Instead of fiddling with the task ->signal pointer, just allow us to
pass in the correct value as set from the original task at request
prep time.
--
Jens Axboe
Powered by blists - more mailing lists