Re: [dm-devel] [PATCH] dm: verity-loadpin: Add NULL pointer check for 'bdev' parameter

2023-06-28 Thread Kees Cook
On Tue, 27 Jun 2023 20:28:01 +, Matthias Kaehlcke wrote: > 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

[dm-devel] [PATCH] dm: verity-loadpin: Add NULL pointer check for 'bdev' parameter

2023-06-27 Thread Matthias Kaehlcke
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