Commit Graph

2487 Commits

Author SHA1 Message Date
Tamas K Lengyel 0f55fedd47 linuxhelper: assign default value if None is being passed in
linuxhelper's kern_set_EFI_variable only sets default value for attr if no
value has been passed in. In some call-chains (uefi var-write) however None
is being passed in, resulting in the following error from:

struct.error: required argument is not an integer

Make attr optional input and override if value is None with default value.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
2026-01-29 11:59:38 -08:00
Nathaniel Mitchell 93c2a23d7c Enable MMIO BAR Address cacheing (resolves unit test failure)
Original commit for chipsec v1: 60ab31da9d

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:38 -08:00
Tamas K Lengyel 1c30511638 Make uefi variable modification test more configurable
Currently the common.uefi.access_uefispec -a modify test modifications to variables
with the default variable attribute of nv | bs | rs (0x7). In this patch we make
this behavior more configurable.

By default the -a modify option will attempt to modify only the content of the variable,
but will not attempt to change the existing attributes of the variable. We have observed
cases where the test used this way uncovered more issues on variables where different
attributes were used and we did not attempt changing the attribute.

By specifying an optional attribute with -a modify,<attribute> the user can now test
variable modification with any attribute instead of just the currently hard-coded one.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
2026-01-29 11:59:38 -08:00
Tamas K Lengyel 913c383b1a Convert str to byte object in linuxhelper's kern_set_EFI_variable (#2536)
* Convert str to byte object in linuxhelper's kern_set_EFI_variable

This is required to be able to successfuly run the common.uefi.access_uefispec -a modify
test from under Linux and resolve the following error:

ERROR: Exception occurred during chipsec.modules.common.uefi.access_uefispec.run(): 'argument for 's' must be a bytes object'

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>

* Use recommended best practice isinstance for type checking

Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>

---------

Signed-off-by: Tamas K Lengyel <tamas.lengyel@oracle.com>
Co-authored-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] a0f909977f Bump ubuntu from 7a39814 to cd1dba6 in /chipsec_tools/log_parser
Bumps ubuntu from `7a39814` to `cd1dba6`.

---
updated-dependencies:
- dependency-name: ubuntu
  dependency-version: latest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] a826d0c2ae Bump actions/setup-python from 6.1.0 to 6.2.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/83679a892e2d95755f2dac6acb0bfd1e9ac5d548...a309ff8b426b58ec0e2a45f0f869d46889d02405)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] fa68f8cb55 Bump github/codeql-action from 4.31.7 to 4.31.10
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.31.7 to 4.31.10.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cf1bb45a277cb3c205638b2cd5c984db1c46a412...cdefb33c0f6224e58673d9004f47f7cb3e328b89)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.31.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] 7c28dcbe56 Bump actions/upload-artifact from 5.0.0 to 6.0.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/330a01c490aca151604b8cf639adc76d48f6c5d4...b7c566a772e6b6bfb58ed0dc250532a479d7789f)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] 7c0c874f17 Bump step-security/harden-runner from 2.13.3 to 2.14.0
Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.3 to 2.14.0.
- [Release notes](https://github.com/step-security/harden-runner/releases)
- [Commits](https://github.com/step-security/harden-runner/compare/df199fb7be9f65074067a9eb93f12bb4c5547cf2...20cf305ff2072d973412fa9b1e3a4f227bda3c76)

---
updated-dependencies:
- dependency-name: step-security/harden-runner
  dependency-version: 2.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
Dan Scott 56d404571d Bump alpine linux support to current versions
Signed-off-by: Dan Scott <dan.scott@intel.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] e282f0fc9d Bump actions/checkout from 4.2.2 to 6.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 6.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/11bd71901bbe5b1630ceea73d27597364c9af683...8e8c483db84b4bee98b60c0593521ed34d9990e8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] 43e3de24e8 Bump actions/dependency-review-action from 4.8.1 to 4.8.2
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4.8.1 to 4.8.2.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](https://github.com/actions/dependency-review-action/compare/40c09b7dc99638e5ddb0bfd91c1673effc064d8a...3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-version: 4.8.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
dependabot[bot] 4f6895b1ad Bump ossf/scorecard-action from 2.4.2 to 2.4.3
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.4.2 to 2.4.3.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](https://github.com/ossf/scorecard-action/compare/05b42c624433fc40578a4040d5cf5e36ddca8cde...4eaacf0543bb3f2c246792bd56e8cdeffafb205a)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-version: 2.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 11:59:38 -08:00
Nathaniel Mitchell d8524c35ff Fix potential CI issues. source: zizmor
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:38 -08:00
Sara Batllori 6c148dee62 Update AUTHORS file
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2026-01-29 11:59:38 -08:00
William Leara e3b8d0d31c remove unused imports from hypercall.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 855ef7ce4a remove unused imports from testcase.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara e6a67f3be0 remove unused imports from ec.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 9bb36abfd9 remove unused imports from igd_cmd.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara fa8319628f remove unused imports from vmbus.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara b401595419 remove unused imports from cs.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 97028a35ff remove unused imports from test_tpm_eventlog.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara cc5ffca6e1 remove unused imports from test_ubuntu.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara 9862660a95 remove unused imports from hypercall.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara c9b3f00344 remove unused imports from linuxhelper.py
These imports are not used within this module.  Also, fix tabs -> spaces.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
William Leara cfb8980612 remove unused imports from smm_ptr.py
These imports are not used within this module.

Signed-off-by: William Leara <william.leara@dell.com>
2026-01-29 11:59:38 -08:00
Nathaniel Mitchell 98fc5c3b35 Minor module updates
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:59:24 -08:00
Nathaniel Mitchell 356c25da94 Add extract_registers.py script and readme
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:29:55 -08:00
Nathaniel Mitchell e0acb2787c Move tools.vmm.common to library.intel.vmm_common
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-01-29 11:28:53 -08:00
Dan Scott 73d1ebc446 Fix HAL call casing in mmcfg
Signed-off-by: Dan Scott <dan.scott@intel.com>
2026-01-28 10:15:36 -08:00
ChipSec 4a328da95d Update to 2.0.0-rc5 (#2634)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2.0.0-rc5
2025-12-15 10:46:15 -08:00
brentholtsclaw 3dfc3c27b0 Minor bug fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-12-09 13:50:59 -08:00
Nathaniel Mitchell 914219e313 dev/chipsec2: Update dalhelper with correct cpuid calls
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 13:50:28 -08:00
Nathaniel Mitchell 1259e568de Change all HAL objects in cs.hals to be lowercase
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 13:49:37 -08:00
Nathaniel Mitchell ec92093eb8 Fix getting items from the platform tree where they don't match case
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 10:17:53 -08:00
Nathaniel Mitchell ee551aa168 Populate lists for -p and --pch
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 10:17:11 -08:00
Nathaniel Mitchell e2e060d390 Update chipsec so XML names are not case sensitive
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-10-30 14:08:03 -07:00
ChipSec 4f139a4586 Update to 2.0.0-rc4 (#2589)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2.0.0-rc4
2025-10-01 11:58:22 -07:00
Nathaniel Mitchell 0427a1d178 Add filter_with_fields function to ObjList
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-10-01 10:06:52 -07:00
Nathaniel Mitchell da378b443a Update field names to be all caps
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-30 14:48:43 -07:00
Nathaniel Mitchell 6a45198b32 Add 'has_all_fields' function to parent register class and store vid in pci device
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-30 13:45:25 -07:00
Nathaniel Mitchell 5f3c7e541d Fix issue where the same control was added to CONTRLS dict multiple times
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-22 09:51:50 -07:00
ChipSec 0b37c55b9f Update to 2.0.0-rc3 (#2572)
Signed-off-by: Chipsec <chipsec@intel.com>
Co-authored-by: Chipsec <chipsec@intel.com>
2025-09-02 23:41:02 -07:00
Chipsec 52f30d8139 Add better error handling to create_manual.py
Signed-off-by: Chipsec <chipsec@intel.com>
2025-09-02 23:17:43 -07:00
Nathaniel Mitchell 932317c2c5 Update txt xml
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-02 15:45:38 -07:00
Nathaniel Mitchell 874e550090 Undo intel/cpu changes.
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-02 10:20:38 -07:00
Nathaniel Mitchell 37829d0122 Clean up based on comments
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-02 10:20:38 -07:00
brentholtsclaw 92cfae82fb dev/chipsec2 fixes
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-09-02 10:20:38 -07:00
Nathaniel Mitchell c50165a2a4 Add 'is_enabled' to regs and 'filter_enabled' to objlist
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-09-01 22:45:59 -07:00
Nathaniel Mitchell 98284878f6 Remove 'Final' typing from compression.py
typing.Final was added in python 3.8. To maintain compatability with
UEFI shell python v3.6.8, this needs to be removed.
For chipsec 1 version of PR: https://github.com/chipsec/chipsec/pull/2550

Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-08-28 12:00:17 -07:00