Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files27
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- libstub/
- test/
- Kconfig
- Makefile
- apple-properties.c
- arm-init.c
- arm-runtime.c
- capsule-loader.c
- capsule.c
- cper-arm.c
- cper-x86.c
- cper.c
- dev-path-parser.c
- efi-bgrt.c
- efi-pstore.c
- efi.c
- efibc.c
- efivars.c
- esrt.c
- fake_mem.c
- memattr.c
- memmap.c
- reboot.c
- runtime-map.c
- runtime-wrappers.c
- tpm.c
- vars.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/firmware/efi/tpm.c
C · 989 bytes/*
* Copyright (C) 2017 Google, Inc.
* Thiebaud Weksteen <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/efi.h>
#include <linux/init.h>
#include <linux/memblock.h>
#include <asm/early_ioremap.h>
/*
* Reserve the memory associated with the TPM Event Log configuration table.
*/
int __init efi_tpm_eventlog_init(void)
{
struct linux_efi_tpm_eventlog *log_tbl;
unsigned int tbl_size;
if (efi.tpm_log == EFI_INVALID_TABLE_ADDR)
return 0;
log_tbl = early_memremap(efi.tpm_log, sizeof(*log_tbl));
if (!log_tbl) {
pr_err("Failed to map TPM Event Log table @ 0x%lx\n",
efi.tpm_log);
efi.tpm_log = EFI_INVALID_TABLE_ADDR;
return -ENOMEM;
}
tbl_size = sizeof(*log_tbl) + log_tbl->size;
memblock_reserve(efi.tpm_log, tbl_size);
early_memunmap(log_tbl, sizeof(*log_tbl));
return 0;
}