1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-07-26 07:07:16 +00:00
Commit Graph

17 Commits

Author SHA1 Message Date
James McGregor 03eedad2ad arm-gcs: add recipe for GDB with GCS support
The GCS support patches are based on GDB 15.
Copy the GDB 14.2 recipe from meta, upgrade to 15.1, and add the patches.

Signed-off-by: James McGregor <james.mcgregor2@arm.com>
2024-09-13 12:35:03 +01:00
James McGregor d2733037ad arm-gcs/linux-yocto: update to 6.11-rc3 and v12 of the GCS patches
Update the GCS patches to v12.
They've been rebased onto 6.11-rc3, so update to use that too.
GCS support now depends on !UPROBES, so add a config fragment to disable it.

Signed-off-by: James McGregor <james.mcgregor2@arm.com>
2024-09-02 15:46:08 +01:00
Ross Burton 27f7248eac arm-gcs: set compiler tune to 8.0
This matches the behaviour from mainstream distributions which don't tune
for 8.4.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-07 11:53:21 +01:00
James McGregor a9fde75f5f arm-gcs: add test for GCS CHKFEAT
Add a new recipes-test layer and GCS test.
The test checks that CHKFEAT reports GCS as enabled.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:37:55 +01:00
James McGregor fe553984a9 arm-gcs/glibc: fix prctl() argument definitions
The values prctl() expects for shadow stack operations have changed.
Update the glibc patch to match the values in the kernel.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:37:52 +01:00
Ross Burton d2c43f9aba arm-gcs/README: show how to run tests 2024-08-06 13:36:29 +01:00
Ross Burton 1aef83326a glibc: refresh GCS patch
No large changes, but incorporates the HWCAP2_GCS fix.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton 2c74be10d8 gcs.yml: fix a comment
Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton bb98b3c2dc kselftest: add kselftest recipe and integrate into testimage
Package up the kselftest from the kernel, and execute the arm64 GCS tests
inside CI.

At the moment some of the tests fail: gcs_write_fault and gcs_stress.
Mark the test as expected to fail until this is resolved.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton 0d3bc7947a linux-libc-headers: add 6.10 patched kernel headers
kselftest needs bleeding-edge kernel headers as it wants to use the new
symbols, so add a recipe.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton b368aecda5 glibc: fix HWCAP2_GCS definition
The bit index for HWCAP2_GCS changed, so update the glibc patch to
reflect the number used in the kernel.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton 062c2c9e10 CI: remove duplicated testimage options
Change gcs-test.yml so that it just enables automatic testimage and does
not duplicate options.

Also change debug-tweaks to the specific features that we want.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton a66b286e73 arm-gcs/linux-yocto: update to 6.10-rc3 and v9 of the GCS patches
Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton db69a338d9 Add CI for GCS
Add a basic job for testing the GCS patches that runs testimage with the
gcs test suite.

For speed, disable all the other jobs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton 1b294d0dbe Add some automated GCS testing 2024-08-06 13:36:29 +01:00
Ross Burton 3ba2ff271a arm-gcs: tighten layer dependencies
Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00
Ross Burton b1dd7d90f6 Add GCS prototype
Signed-off-by: Ross Burton <ross.burton@arm.com>
2024-08-06 13:36:29 +01:00