6/2/2023 0 Comments Linux sha256 checksum> 2 files changed, 60 insertions(+), 1 deletion(-) > drivers/base/firmware_loader/Kconfig | 13 ++++++++ > * add new line between includes and function name (Cezary) > dependencies without introducing circular dependency (Greg) > * introduce CONFIG_ option to allow for CONFIG_CRYPTO and CONFIG_CRYPTO_SHA256 > * add DYNAMIC_DEBUG and FW_LOADER as dependencies before option can be > * update menuconfig prompt and help message (Russ) > to clearly identify the firmware files that are loaded by the system. + if (crypto_shash_digest(shash, fw->data, fw->size, sha256buf) Enable dynamic-debug logging of firmware filenames and SHA256 checksums + shash = kmalloc(sizeof(*shash) + crypto_shash_descsize(alg), GFP_KERNEL) + outbuf = kmalloc(SHA256_BLOCK_SIZE + 1, GFP_KERNEL) + sha256buf = kmalloc(SHA256_DIGEST_SIZE, GFP_KERNEL) +static void fw_log_firmware_info(const struct firmware *fw, const char *name, struct device *device) +++ -791,6 +791,50 static void fw_abort_batch_reqs(struct firmware *fw) + SHA256 checksums to the kernel log for each firmware file that isĭiff -git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c + Select this option to use dynamic debug to log firmware filenames and + bool "Log filenames and checksums for loaded firmware" You also want to be sure to enable this built-in if you are going toĮnable built-in firmware (CONFIG_EXTRA_FIRMWARE). This enables the firmware loading facility in the kernel. + select FW_LOADER_DEBUG if DYNAMIC_DEBUG Tristate "Firmware loading facility" if EXPERT * add new line between includes and function name (Cezary)ĭrivers/base/firmware_loader/Kconfig | 13 ++++++++ĭrivers/base/firmware_loader/main.c | 48 +++++++++++++++++++++++++++-Ģ files changed, 60 insertions(+), 1 deletion(-)ĭiff -git a/drivers/base/firmware_loader/Kconfig b/drivers/base/firmware_loader/Kconfig * introduce CONFIG_ option to allow for CONFIG_CRYPTO and CONFIG_CRYPTO_SHA256ĭependencies without introducing circular dependency (Greg) * add DYNAMIC_DEBUG and FW_LOADER as dependencies before option can be * update menuconfig prompt and help message (Russ) To clearly identify the firmware files that are loaded by the system. Wysocki, Amadeusz SławińskiĮnable dynamic-debug logging of firmware filenames and SHA256 checksums To: Russ Weight, Luis Chamberlain, Greg Kroah-Hartman, linux-kernelĬc: Cezary Rojewski, Rafael J. 14:15 ` Greg Kroah-Hartman 0 siblings, 2 replies 4+ messages in threadįrom: Amadeusz Sławiński 14:04 UTC ( / raw) Firmware_loader: Add debug message with checksum for FW file LKML Archive on help / color / mirror / Atom feed * firmware_loader: Add debug message with checksum for FW file 14:04 Amadeusz Sławiński
0 Comments
Leave a Reply. |