]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: Add locking around superblock changes
authorKees Cook <keescook@chromium.org>
Tue, 5 May 2020 02:43:41 +0000 (19:43 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 30 May 2020 17:33:46 +0000 (10:33 -0700)
commit2a6b099a9cc574c123bae7f0872aeebe1c68863d
tree4459a9c30b757756971ffcf26e68f2ccdee6c722
parenta0412576a077228215d6b9d43ddcbec1f333115b
pstore: Add locking around superblock changes

Nothing was protecting changes to the pstorefs superblock. Add locking
and refactor away is_pstore_mounted(), instead using a helper to add a
way to safely lock the pstorefs root inode during filesystem changes.

Link: https://lore.kernel.org/lkml/20200506152114.50375-9-keescook@chromium.org/
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/inode.c
fs/pstore/internal.h
fs/pstore/platform.c