From: David Miller <[email protected]>
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: [PATCH 2/2] io_uring: make sure accept honor rlimit nofile
Date: Thu, 19 Mar 2020 21:43:29 -0700 (PDT) [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
From: Jens Axboe <[email protected]>
Date: Thu, 19 Mar 2020 20:22:16 -0600
> Just like commit 21ec2da35ce3, 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.
>
> Signed-off-by: Jens Axboe <[email protected]>
Acked-by: David S. Miller <[email protected]>
next prev parent reply other threads:[~2020-03-20 4:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 2:22 [PATCHSET] Fix io_uring async rlimit(RLIMIT_NOFILE) Jens Axboe
2020-03-20 2:22 ` [PATCH 1/2] io_uring: make sure openat/openat2 honor rlimit nofile Jens Axboe
2020-03-20 4:43 ` David Miller
2020-03-20 2:22 ` [PATCH 2/2] io_uring: make sure accept " Jens Axboe
2020-03-20 4:43 ` David Miller [this message]
2020-03-20 14:48 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200319.214329.1659736613337215790.davem@davemloft.net \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox