Re: [PATCH v2] ima: fix races when deleting measurement list entries
From: Roberto Sassu
Date: Mon Nov 09 2026 - 08:25:34 EST
On Mon, 2026-11-09 at 21:00 +0800, Weibin Liu wrote:
> On Mon, 2026-11-09 at 13:49 +0100, Roberto Sassu wrote:
> > Is it still true with the new semaphore?
>
> No. That paragraph describes the unpatched code. The patch serializes
> writers with ima_measurements_rwsem and protects the lookup and cut
> with ima_extend_list_mutex.
Sorry, the comment was not in the right place. Is it still necessary
to take ima_extend_list_mutex to determine the cut position, since now
writers are serialized with the semaphore?
Roberto