Skip to content
Commit 656de42e authored by Kees Cook's avatar Kees Cook
Browse files

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: default avatarKees Cook <keescook@chromium.org>
parent f6525b96
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment