diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2025-03-28 16:17:45 +0100 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-03-28 18:26:11 +0100 |
commit | 2de510fccbca3d1906b55f4be5f1de83fa2424ef (patch) | |
tree | eb3664374e2f4cfe25cedf87a2ac33c5fe359a5d /lib/crypto/mpi/mpiutil.c | |
parent | 8bde1033f9cfc1c08628255cc434c6cf39c9d9ba (diff) | |
download | linux-2de510fccbca3d1906b55f4be5f1de83fa2424ef.tar.gz linux-2de510fccbca3d1906b55f4be5f1de83fa2424ef.tar.bz2 linux-2de510fccbca3d1906b55f4be5f1de83fa2424ef.zip |
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
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions