Re: [PATCH] 9pfs: Fully restart unreclaim loop (CVE-2021-20181)

2021-01-14 Thread Stefano Stabellini
On Thu, 14 Jan 2021, Greg Kurz wrote: > Depending on the client activity, the server can be asked to open a huge > number of file descriptors and eventually hit RLIMIT_NOFILE. This is > currently mitigated using a reclaim logic : the server closes the file > descriptors of idle fids, based on the

[PATCH] 9pfs: Fully restart unreclaim loop (CVE-2021-20181)

2021-01-14 Thread Greg Kurz
Depending on the client activity, the server can be asked to open a huge number of file descriptors and eventually hit RLIMIT_NOFILE. This is currently mitigated using a reclaim logic : the server closes the file descriptors of idle fids, based on the assumption that it will be able to re-open