Re: [PATCH] module: print module name on refcount error

From: Michal Hocko
Date: Mon Jul 03 2023 - 09:47:28 EST


On Fri 30-06-23 16:05:33, Luis Chamberlain wrote:
[...]
> What prevents code from racing the free with a random module_put()
> called by some other piece of code?

Wouldn't be ref count a garbage already? How can you race when freeing
if module_put fail?
--
Michal Hocko
SUSE Labs