linux/drivers/md/dm-verity-target.c
Mikulas Patocka 74f01c2ca8 dm-verity: fix prefetch-vs-suspend race
commit 2de510fccb upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-20 10:15:53 +02:00

1799 lines
45 KiB