]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm-verity: fix prefetch-vs-suspend race
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 28 Mar 2025 15:17:45 +0000 (16:17 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 28 Mar 2025 17:26:11 +0000 (18:26 +0100)
commit2de510fccbca3d1906b55f4be5f1de83fa2424ef
treeeb3664374e2f4cfe25cedf87a2ac33c5fe359a5d
parent8bde1033f9cfc1c08628255cc434c6cf39c9d9ba
dm-verity: fix prefetch-vs-suspend race

There's a possible race condition in dm-verity - the prefetch work item
may race with suspend and it is possible that prefetch continues to run
while the device is suspended. Fix this by calling flush_workqueue and
dm_bufio_client_reset in the postsuspend hook.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-verity-target.c