[PATCH 5/5] fs: Convert struct file::f_count to refcount_long_t

Al Viro viro at zeniv.linux.org.uk
Fri May 3 00:14:45 UTC 2024


On Thu, May 02, 2024 at 05:10:18PM -0700, Kees Cook wrote:

> But anyway, there needs to be a general "oops I hit 0"-aware form of
> get_file(), and it seems like it should just be get_file() itself...

... which brings back the question of what's the sane damage mitigation
for that.  Adding arseloads of never-exercised failure exits is generally
a bad idea - it's asking for bitrot and making the thing harder to review
in future.


More information about the dri-devel mailing list