[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200416121008.i5vmafqcv4ab7van@treble>
Date: Thu, 16 Apr 2020 07:10:08 -0500
From: Josh Poimboeuf <jpoimboe@...hat.com>
To: Miroslav Benes <mbenes@...e.cz>
Cc: Jessica Yu <jeyu@...nel.org>, live-patching@...r.kernel.org,
linux-kernel@...r.kernel.org, Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH 6/7] livepatch: Remove module_disable_ro() usage
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
Powered by blists - more mailing lists