mirror of
https://github.com/torvalds/linux.git
synced 2026-10-24 16:55:02 +02: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:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| audit.c | ||
| audit.h | ||
| digest.c | ||
| digest.h | ||
| eval.c | ||
| eval.h | ||
| fs.c | ||
| fs.h | ||
| hooks.c | ||
| hooks.h | ||
| ipe.c | ||
| ipe.h | ||
| Kconfig | ||
| Makefile | ||
| policy_fs.c | ||
| policy_parser.c | ||
| policy_parser.h | ||
| policy_tests.c | ||
| policy.c | ||
| policy.h | ||