]> Git Repo - linux.git/commitdiff
pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES
authorJohn Stultz <[email protected]>
Wed, 21 Dec 2022 05:18:55 +0000 (05:18 +0000)
committerKees Cook <[email protected]>
Fri, 23 Dec 2022 18:33:27 +0000 (10:33 -0800)
In commit 76d62f24db07 ("pstore: Switch pmsg_lock to an rt_mutex
to avoid priority inversion") I changed a lock to an rt_mutex.

However, its possible that CONFIG_RT_MUTEXES is not enabled,
which then results in a build failure, as the 0day bot detected:
  https://lore.kernel.org/linux-mm/202212211244[email protected]/

Thus this patch changes CONFIG_PSTORE_PMSG to select
CONFIG_RT_MUTEXES, which ensures the build will not fail.

Cc: Wei Wang <[email protected]>
Cc: Midas Chien<[email protected]>
Cc: Connor O'Brien <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Anton Vorontsov <[email protected]>
Cc: Colin Cross <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: kernel test robot <[email protected]>
Cc: [email protected]
Fixes: 76d62f24db07 ("pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
fs/pstore/Kconfig

index 8adabde685f132f2375114bef345e27db85a9265..c49d554cc9ae9f80aa07a19ae8c4a83b19135b6b 100644 (file)
@@ -126,6 +126,7 @@ config PSTORE_CONSOLE
 config PSTORE_PMSG
        bool "Log user space messages"
        depends on PSTORE
+       select RT_MUTEXES
        help
          When the option is enabled, pstore will export a character
          interface /dev/pmsg0 to log user space messages. On reboot
This page took 0.060836 seconds and 4 git commands to generate.