mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
ipe_bdev_setintegrity() frees the old root hash when dm-verity publishes
a new one on ->preresume, while policy evaluation can still be
dereferencing it.
Protect the root hash with RCU. The evaluation path already runs under
rcu_read_lock().
Fixes: e155858dd9 ("ipe: add support for dm-verity as a trust provider")
Cc: [email protected]
Assisted-by: LLM
[FW: remove model name according to latest guideline]
Signed-off-by: Fan Wu <[email protected]>