mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
pstore: Avoid potential infinite loop
If a backend does not correctly iterate through its records, pstore will get stuck loading entries. Detect this with a large record count, and announce if we ever hit the limit. This will let future backend reading bugs less annoying to debug. Additionally adjust the error about pstore_mkfile() failing. Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
f6525b96dd
commit
656de42e83
1 changed files with 6 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue