Re: [PATCH] fs: WARN when f_count resurrection is attempted

2024-05-06 Thread Peter Zijlstra
On Fri, May 03, 2024 at 01:16:25PM -0700, Kees Cook wrote: > It should never happen that get_file() is called on a file with > f_count equal to zero. If this happens, a use-after-free condition > has happened[1], and we need to attempt a best-effort reporting of > the situation to help find the

Re: [PATCH] fs: WARN when f_count resurrection is attempted

2024-05-04 Thread Christian Brauner
On Fri, 03 May 2024 13:16:25 -0700, Kees Cook wrote: > It should never happen that get_file() is called on a file with > f_count equal to zero. If this happens, a use-after-free condition > has happened[1], and we need to attempt a best-effort reporting of > the situation to help find the root

[PATCH] fs: WARN when f_count resurrection is attempted

2024-05-03 Thread Kees Cook
It should never happen that get_file() is called on a file with f_count equal to zero. If this happens, a use-after-free condition has happened[1], and we need to attempt a best-effort reporting of the situation to help find the root cause more easily. Additionally, this serves as a data