]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pstore: Add proper unregister lock checking
authorKees Cook <keescook@chromium.org>
Tue, 5 May 2020 02:33:54 +0000 (19:33 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 12 May 2020 16:15:11 +0000 (09:15 -0700)
commit6248a0666c8a408dcc5bd952536274d5bd0f02cb
tree3514e03a0eb5b3cd72c85f303965ee63716365ec
parentdb23491c77207ef6bec2b232238710de4755db6a
pstore: Add proper unregister lock checking

The pstore backend lock wasn't being used during pstore_unregister().
Add sanity check and locking.

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