84 Commits

Author SHA1 Message Date
Erik Bjorge 2731308367 Updating to release 1.3.2 2017-08-10 10:49:31 -07:00
Erik Bjorge 9003444150 Switched to MMIO for P2SB register access.
Under some versions of Linux the memory access method fails.  Should use
MMIO anyway.
2017-08-07 16:00:10 -07:00
Nick Mooney 49348dc0db Add mmap support to kernel module 2017-07-24 13:26:08 -07:00
Takaaki Fukai 3f8d612b56 Fix the range check in bios_wp.py 2017-07-24 09:26:56 -07:00
Thiebaud Weksteen 5624c1b23f Add FREG definitions for SKL and KBL 2017-07-21 10:25:45 -07:00
c7zero 16af0c7dfd More operation in chipsec_util reg command (#238)
* More operation in chipsec_util reg command

Added write, read_field, write_field, get_control, set_control
operations

* reg read util command updated

Returned back "chipsec_util reg read" syntax and added tests.

* Commented out test_reg_get_control

Need to implement get_MMIO_BAR_base_address or read_pci_reg for SPIBAR
in mock_helper.py
2017-07-20 13:05:51 -07:00
Erik Bjorge b630416b38 Updating to post release version number. 2017-06-09 18:01:43 -07:00
Erik Bjorge a822099700 Release version 1.3.1 2017-06-09 17:03:40 -07:00
BrentHoltsclaw 279370cb9b Added fix for issue #233 2017-06-09 11:56:14 -07:00
BrentHoltsclaw 33b97c67f1 Added fix for issue #204 2017-06-09 11:08:05 -07:00
Erik Bjorge ece76e3d0b Fixed chipsec_util decode types (#232) 2017-06-08 18:42:55 -07:00
Erik Bjorge a1a338b1be Updated code used to load configuration files. (#220)
Configuration files loaded in following order.
1. Common
2. Platform
3. Other

Also enforced a consistent (alphabetical) load order.
2017-06-08 14:04:28 -07:00
Erik Bjorge 8910c3acb9 Fixed detection of successful SMBUS transactions. (#213) 2017-05-31 09:36:40 -07:00
Erik Bjorge b1fe88f05b Fixed print_register when using mm_msgbus registers. 2017-05-16 09:55:48 -07:00
Erik Bjorge e05dd208e3 Updated BUC register definition to use sideband access. (#219)
For 100/200 series PCH the BUC is accessed via sideband and not RCBA.
2017-05-09 22:56:33 -07:00
Thiébaud Weksteen 9240e1aa58 Add register util command (#217) 2017-05-09 22:55:32 -07:00
Erik Bjorge 6a1735ab94 Adding public processor information. 2017-05-09 12:11:11 -07:00
Erik Bjorge 15bdde362d Added MMIO MSGBUS specific interface. (#210)
Added a selectable MMIO based MSGBUS interface that can be selected by
tests or the configuration register type.
2017-05-08 22:22:01 -07:00
Thiébaud Weksteen bdea49936a Remove unused __version__ (#215) 2017-05-08 22:17:35 -07:00
Aaron Frinzell ebe8458dec read_register() cpu_thread support (#211)
Complete cpu_thread support in read_register()
2017-05-01 00:59:09 -07:00
Erik Bjorge c753453679 Updated code to append additional version information. (#209)
If any additional version information is available for a custom release
it will be appended to the end of version string.
2017-05-01 00:56:34 -07:00
abazhaniuk 81310df94d fix ascii symbols in uefi decode command (#205) 2017-04-22 10:56:53 -10:00
andrew-furtak f826cb0e78 PFS support and parsing fixes. (#196) 2017-04-21 06:34:41 -10:00
Thiébaud Weksteen 3fdf95e572 Remove unused read_chunk (#201) 2017-04-20 16:03:33 +10:00
Erik Bjorge 45dc8d63de Fixing RC access for 100 and 200 series chipsets. (#202)
The RC register is no longer accessed using the RCBA.  It is now
accessed using the sideband message bus.
2017-04-19 18:43:27 -10:00
Erik Bjorge c275c0f502 Add MMIO register access for P2SB. 2017-04-19 09:55:26 -07:00
abazhaniuk 8679a9ad06 fix bugs during decompression (#192) 2017-04-16 10:30:57 -10:00
Erik Bjorge c2dae77a5f Fixed missing shutil import. (#190)
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2017-03-28 12:09:58 -10:00
c7zero ab710a052a Removed Ntfs detection by ui_string
Removed Ntfs.efi detection by name (ui_string) to eliminate false
positives on firmware which has Ntfs.efi DXE driver.

Also, rkloader's and ntfs's GUIDs were swapped. Fixed.
2017-03-23 15:44:34 -07:00
c7zero 5c5ae294eb Updated version and manual 2017-03-20 18:08:42 -07:00
c7zero 5102229c6a Workaround for module errors on macOS (#184)
- added is_macos()
- calling is_macos in modules which require functionality not yet
implemented by osx helper such as MSR, port IO and EFI variables
- added EFI_supported always returning False in osx helper to skip
modules requiring EFI runtime API
2017-03-18 10:39:18 -07:00
c7zero 0ad817d479 Fix --no_driver option on macOS (#181) 2017-03-17 01:04:25 -07:00
Erik Bjorge 504c2515c5 Fixed exception when running tools.smm.smm_ptr in UEFI Shell. (#182)
Exception was caused by efi.allocphysmem returning a tuple but the
helper code was expecting a numeric value.  Updated UEFI helper code to
select the correct value in the tuple.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2017-03-16 11:42:16 -07:00
andrew-furtak 8e29097fad Igd fix (#180)
* IGD hal component added. igddma utility command added.

* Documentation added. Fixed file io for igd

* Deffered graphics device identification. Added check to igd cmd module for enabled device.

* Device 2 device id register renamed. Device id read with pci replaced with read_register

* Fixed typo

* Fixed read/write across page boundaries

* Fixed read/write across page boundaries. Offset refactoring
2017-03-16 04:00:39 -07:00
johnloucaides 70abd3ad54 add decompress functionality to osx environment (#179) 2017-03-15 17:18:18 -07:00
johnloucaides 17f9c0cf53 handle mmio writes of size != 4 (#178) 2017-03-15 13:50:13 -07:00
Andrew Furtak 3d82def442 Typo fixed 2017-03-14 12:14:11 -07:00
c7zero f3832b45b0 New tools.smm.rogue_mmio_bar module (#168)
Experimental module to help finding vulnerabilities described in "BARing
the System: New vulnerabilities in Coreboot & UEFI based systems" talk
at RECon Brussels 2017

(http://www.intelsecurity.com/advanced-threat-research/content/data/REConBrussels2017_BARing_the_system.pdf)
2017-03-12 22:48:37 -07:00
citypw 4070fcd6af Added Xeon E3-1230 v5 processor device ID (#165)
* Added Xeon E3-1230 v5 processor device ID

Signed-off-by: citypw <citypw@gmail.com>

* Update the longname: Xeon Processor E3 v5 (Skylake CPU / Sunrise Point PCH)
2017-03-12 22:48:09 -07:00
c7zero ca6c741d0d Fixed unimplemented map_io_space in OSX helper (#167) 2017-03-11 14:33:11 -08:00
c7zero 2fbb7a4eeb Simple EFI firmware white-listing module (#164)
tools.uefi.whitelist is a simple module for EFI firmware that allows modifications done to the firmware executables

The module can generate a list of EFI executables from (U)EFI firmware file or extracted from flash ROM, and then later check firmware image in flash ROM or file against this list of [expected/whitelisted] executables
2017-03-08 21:03:41 -08:00
CHIPSEC 21dc4bbd81 Merge pull request #155 from andrew-furtak/rwe
ReadWrite Everything helper added.
2017-03-08 18:24:49 -08:00
CHIPSEC ad50429b44 Fixed logger bug 2017-03-07 16:40:11 -08:00
c7zero 2aa81afde8 SPI flash descriptor parsing improved (#157)
* Improved parsing of Flash Descriptor

Descriptor format is platform dependent so need to use XML to parse it

* cleanup

* Fixed spi info
2017-03-02 02:09:58 -08:00
johnloucaides 9a3c5a6053 add native functions to access port io & msr on linux (#160)
* add native functions to access port io and msr

* remove debug prints and try modprobe msr when not available

* fixed bug in native_read_io_port

* add attempt to load msr kernel module if not present and update error string
2017-03-02 02:06:12 -08:00
c7zero b3bf192d51 Added SMI count util command (#159)
chipsec_util smi count command returs SMI event count on all logical
processors
2017-03-02 02:05:46 -08:00
abazhaniuk 107de65ce3 fix issues in decompression functionality (#161) 2017-03-02 02:05:21 -08:00
CHIPSEC e5cd522467 Added tools.uefi.uefivar_fuzz to test UEFI Variable firmware interface 2017-02-27 14:28:28 -08:00
c7zero a0943e297a Fixed tools.vmm.pcie_overlap_fuzz 2017-02-25 01:33:53 -08:00
andrew-furtak e1835bb7c9 IGD hal component added. igddma utility command added. (#156)
* IGD hal component added. igddma utility command added.

* Documentation added. Fixed file io for igd

* Deffered graphics device identification. Added check to igd cmd module for enabled device.

* Device 2 device id register renamed. Device id read with pci replaced with read_register
2017-02-24 18:04:08 -08:00