Re: [PATCH 6/7] livepatch: Remove module_disable_ro() usage
From: Josh Poimboeuf
Date: Thu Apr 16 2020 - 08:10:36 EST
On Thu, Apr 16, 2020 at 11:28:25AM +0200, Miroslav Benes wrote:
> If I remember correctly, text_mutex must be held whenever text is modified
> to prevent race due to the modification. It is not only about permission
> changes even though it was how it manifested itself in our case.
Yeah, that's what confused me. We went years without using text_mutex
and then only started using it because of a race with the permissions
changes.
--
Josh