diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2023-06-27 22:28:01 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2023-06-28 19:43:04 +0200 |
commit | 47f04616f2c9b2f4f0c9127e30ca515a078db591 (patch) | |
tree | 38d5c85b306d29dba0828d2d1ea1bce9c8169354 /lib | |
parent | netfilter: ipset: Replace strlcpy with strscpy (diff) | |
download | linux-47f04616f2c9b2f4f0c9127e30ca515a078db591.tar.xz linux-47f04616f2c9b2f4f0c9127e30ca515a078db591.zip |
dm: verity-loadpin: Add NULL pointer check for 'bdev' parameter
Add a NULL check for the 'bdev' parameter of
dm_verity_loadpin_is_bdev_trusted(). The function is called
by loadpin_check(), which passes the block device that
corresponds to the super block of the file system from which
a file is being loaded. Generally a super_block structure has
an associated block device, however that is not always the
case (e.g. tmpfs).
Cc: stable@vger.kernel.org # v6.0+
Fixes: b6c1c5745ccc ("dm: Add verity helpers for LoadPin")
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20230627202800.1.Id63f7f59536d20f1ab83e1abdc1fda1471c7d031@changeid
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions