Commit Graph

1088 Commits

Author SHA1 Message Date
Aaron Frinzell eb27e705db Update interrupts_cmd.py CLI 2021-03-25 10:13:35 -07:00
Erik Bjorge c5b15cdada Adding display of register when in verbose mode.
Verbose mode should allow for initial verification of register settings
instead of blindly trusting the test.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2021-03-09 19:20:50 -08:00
Erik Bjorge 1607ee8b42 Fixed parameter processing in I/O command
The I/O command reversed the usage of metavar and the actual parameter.
Also cleaned up the command name and made parameter processing more
consistent with other commands.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2021-03-09 19:19:16 -08:00
johnloucaides 6cb2cd8a5c Update README.md 2021-03-09 19:18:27 -08:00
Sae86 47c5da496d Updating to 1.5.10
Signed-off-by: Sae86 <sae.batllori@intel.com>
1.5.10
2021-02-24 16:17:42 -08:00
Aaron Frinzell 9e2b168223 spi_fdopss check for FDOPSS 2021-02-24 16:14:15 -08:00
brentholtsclaw 1ff5f2ef0c Add lock and lockedby to configuration
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2021-02-24 14:49:08 -08:00
net-wayfarer ff4a27367b Fix Makefile to work with DKMS
drivers/linux/Makefile:
* Replaced KERNEL_SRC_DIR variable with KSRC.
* Added KSRC variable which should enable successful DKMS compilation,
  as opposed to bailing out with "Unable to find the Linux source tree."

This patch has been tested on Black Arch.
2021-02-24 14:47:36 -08:00
Assaf Carlsbad ff8df8b752 Define MSR_SMM_FEATURE_CONTROL only for platforms the support it. 2021-02-24 10:19:40 -08:00
Assaf Carlsbad 8ca35ffbfb Add GPL license. 2021-02-24 10:19:40 -08:00
Assaf Carlsbad 0af175c88b Return ModuleResult.FAILED instead of ModuleResult.ERROR. 2021-02-24 10:19:40 -08:00
Assaf Carlsbad 99a23778bc Introduce a new module that checks that SMM_Code_Chk_En is configured properly. 2021-02-24 10:19:40 -08:00
Assaf Carlsbad 38ee79658a Add the definition for MSR_SMM_FEATURE_CONTROL. 2021-02-24 10:19:40 -08:00
Shawn C 9a2536c611 Fix two memory leak bugs
These are caught by PaX AUTOSLAB plugin.

Signed-off-by: Shawn C <citypw@hardenedlinux.org>
2021-02-17 15:44:19 -08:00
Shawn C 84f33831ea Workaround for function pointer complaints
* Some function pointers misuse caught by PaX RAP. These workaround fix would be useful
to the vanilla kernel since the recent TigerLake support Intel CET which might have
the same complaints if the implementation can achieve the current level as PaX RAP.

* Static call is a hack to make the function pointer writable. Please keep in mind that
this hack is only for the firmware audit reason. Be cautions if you intend to do the similar
things in production.

Thanks to Spender and PaX team points out the way to fix.

Signed-off-by: Shawn C <citypw@hardenedlinux.org>
2021-02-17 15:32:24 -08:00
Shawn C 9a1cead82c Fix #1086: Linux kernel v5.10 removed the old good syscalls get_fs/set_fs
in name of security reasons. The current workaround is get the kallsyms_lookup_name()
via kprobe if the kernel >= v5.10.

Signed-off-by: Shawn C <citypw@hardenedlinux.org>
2021-02-17 15:32:24 -08:00
Aaron Frinzell 043817b8f1 Minor typos in smm_ptr.py 2021-02-17 15:31:35 -08:00
gibarrasch 2c0c4c9fd1 Using CONFIG_EFI instead of user defined HAS_EFI (#1036)
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2021-02-17 15:31:12 -08:00
Sae86 79661752c4 Changing helper calls to HAL calls
- debugenabled: helper -> cpu
    - hypercall: helper -> mem

Signed-off-by: Sae86 <sae.batllori@intel.com>
2021-02-05 12:28:33 -08:00
Nathaniel Mitchell f27ad9dbf8 Updating to 1.5.9
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
1.5.9
2021-01-27 15:13:32 -08:00
Nathaniel Mitchell 30ee829b3f Fixed error in uefi shell for spectre v2 test
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2021-01-27 08:16:45 -08:00
Shawn C f2f1ab2d4f Expand the conditional compilation based on d02624b to support more PaX/GRsec kernel
Signed-off-by: Shawn C <citypw@hardenedlinux.org>
2021-01-27 08:16:28 -08:00
Sae86 262bc6f50a Updating manual to 1.5.8
Signed-off-by: Sae86 <sae.batllori@intel.com>
2021-01-26 16:19:03 -08:00
Aaron Frinzell ef825166df Minor typo in hal\interrupts.py 2021-01-26 16:14:09 -08:00
Aaron Frinzell 1331e86c39 Add very verbose command-line option 2021-01-26 16:13:22 -08:00
Aaron Frinzell e912c3473e Fix spd.py decode fn 2021-01-26 16:12:36 -08:00
Aaron Frinzell 8551e14b39 Update spidesc_cmd.py CLI 2021-01-26 16:11:45 -08:00
Aaron Frinzell 14b47b87fc Update spd_cmd.py CLI 2021-01-26 16:11:06 -08:00
Sae86 c7259cfac0 Signed-off-by: Sae86 <sae.batllori@intel.com>
Modifying copyright date.

Hal msg bus - removed non working link
Hal spd - changed simmtester links to functioning ones
Cfg sfdp - added docstring
utilcmd mem_cmd - removed random lonely colon
Modules-Common-cpu-cpuinfo and iauntrusted - added temp docstrings
Tools-vmm-hv and xen folders -> imports needed more detail
Modules Me mfg mode - fixed error caused by asterisk in links
2021-01-26 16:10:34 -08:00
Aaron Frinzell bd16a16d96 Update reg_cmd.py CLI 2021-01-26 16:08:15 -08:00
Aaron Frinzell 0caa5709cf Update msgbus_cmd.py CLI 2021-01-26 16:06:14 -08:00
Aaron Frinzell 19922c2b03 Update vmm_cmd.py CLI 2021-01-26 16:05:52 -08:00
Aaron Frinzell a241fdde9a Update mmcfg_cmd.py CLI 2021-01-26 16:05:11 -08:00
Nathaniel Mitchell 2210002bab Fixed build error on latest Ubuntu
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2021-01-26 16:04:06 -08:00
Nathaniel Mitchell d4e6e9fa01 Added log message to print actual DIDs if using -p or --pch
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2021-01-26 16:03:26 -08:00
Aaron Frinzell 6fa4e06f6a Update authors file 2021-01-21 11:25:58 -08:00
Aaron Frinzell ea16df16f7 Move bios_smi.py control 2021-01-21 11:24:30 -08:00
Shawn C d746954e64 Add the support for access the kernel symbols by reading /proc/kallsyms directly
since kallsyms_lookup_name() and kallsyms_on_each_symbol() are no longer exported:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0bd476e6c67190b5eb7b6e105c8db8ff61103281

Signed-off-by: Shawn C <citypw@hardenedlinux.org>
2020-12-17 11:08:20 -08:00
Nathaniel Mitchell 94468b30ea Updating to 1.5.8
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
1.5.8
2020-12-17 10:46:04 -08:00
Aaron Frinzell 702bb6a9b7 LGTM except 2020-12-15 15:29:25 -08:00
Aaron Frinzell af5d51bb3d Update vmem_cmd.py CLI 2020-12-15 15:29:25 -08:00
Aaron Frinzell d747d545fc Align efihelper.py va2pa 2020-12-15 15:29:12 -08:00
Aaron Frinzell 047235888c Update ucode_cmd.py CLI 2020-12-15 15:28:59 -08:00
Aaron Frinzell 8fc0e629a2 Update tmp_util.py CLI 2020-12-15 15:28:46 -08:00
Aaron Frinzell 7ec4faa0a3 me_mfg_mode.py self.res update 2020-12-15 15:28:34 -08:00
Aaron Frinzell a6a5df9b2a UEFI HAL module variable and description updates 2020-12-15 15:28:19 -08:00
Tim Gates 9a2195d376 docs: fix simple typo, incompatibe -> incompatible
There is a small typo in chipsec/modules/tools/vmm/hv/hypercallfuzz.py, chipsec/modules/tools/vmm/hv/synth_dev.py, chipsec/modules/tools/vmm/hv/synth_kbd.py, chipsec/modules/tools/vmm/hv/vmbusfuzz.py.

Should read `incompatible` rather than `incompatibe`.
2020-12-15 15:28:00 -08:00
Federico Perez 1b36101c17 Make the setup not skip the decompression tools when running with --skip_driver 2020-12-15 15:27:27 -08:00
brentholtsclaw 6cd7a3427e Add legacy support to unittest functions in test_generic
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-11-19 16:06:02 -08:00
Nathaniel Mitchell ddf3f3e767 Updating to 1.5.7
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
1.5.7
2020-11-19 14:21:08 -08:00