Re: [PATCH] kernfs: Convert from atomic_t to refcount_t on kernfs_node->count
From: Greg Kroah-Hartman
Date: Wed Jul 21 2021 - 11:36:25 EST
On Mon, Jul 19, 2021 at 04:33:21PM +0800, Xiyu Yang wrote:
> refcount_t type and corresponding API can protect refcounters from
> accidental underflow and overflow and further use-after-free situations.
But this really is a count, not a refcount.
So are you _sure_ this should be changed?
What did you to do to test this?