<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/arm64/gcs, branch linux-rolling-lts</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-09-17T15:32:02Z</updated>
<entry>
<title>kselftest/arm64/gcs/basic-gcs: Respect parent directory CFLAGS</title>
<updated>2025-09-17T15:32:02Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-09-16T16:51:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5b7bdc4402b12bdad747cce305ecbc9737aed7ba'/>
<id>urn:sha1:5b7bdc4402b12bdad747cce305ecbc9737aed7ba</id>
<content type='text'>
basic-gcs has it's own make rule to handle the special compiler
invocation to build against nolibc. This rule does not respect the
$(CFLAGS) passed by the Makefile from the parent directory.
However these $(CFLAGS) set up the include path to include the UAPI
headers from the current kernel.
Due to this the asm/hwcap.h header is used from the toolchain instead of
the UAPI and the definition of HWCAP_GCS is not found.

Restructure the rule for basic-gcs to respect the $(CFLAGS).
Also drop those options which are already provided by $(CFLAGS).

Reported-by: Naresh Kamboju &lt;naresh.kamboju@linaro.org&gt;
Closes: https://lore.kernel.org/lkml/CA+G9fYv77X+kKz2YT6xw7=9UrrotTbQ6fgNac7oohOg8BgGvtw@mail.gmail.com/
Fixes: a985fe638344 ("kselftest/arm64/gcs: Use nolibc's getauxval()")
Tested-by: Linux Kernel Functional Testing &lt;lkft@linaro.org&gt;
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Will Deacon &lt;will@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/arm64: Fix grammatical error in string literals</title>
<updated>2025-09-08T15:17:13Z</updated>
<author>
<name>Nikola Z. Ivanov</name>
</author>
<published>2025-08-26T21:49:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14a41628c470f4aa069075cdcf6ec0138b6cf1da'/>
<id>urn:sha1:14a41628c470f4aa069075cdcf6ec0138b6cf1da</id>
<content type='text'>
Fix grammatical error in &lt;past tense verb&gt; + &lt;infinitive&gt;
construct related to memory allocation checks.
In essence change "Failed to allocated" to "Failed to allocate".

Signed-off-by: Nikola Z. Ivanov &lt;zlatistiv@gmail.com&gt;
Reviewed-by: Mark Brown &lt;broonie@kernel.org&gt;
Reviewed-by: Bagas Sanjaya &lt;bagasdotme@gmail.com&gt;
Signed-off-by: Will Deacon &lt;will@kernel.org&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64: Remove extra blank line</title>
<updated>2025-09-08T15:01:21Z</updated>
<author>
<name>Vivek Yadav</name>
</author>
<published>2025-08-24T06:14:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3198780eaf37c071052edac109d99bff77e6ce5c'/>
<id>urn:sha1:3198780eaf37c071052edac109d99bff77e6ce5c</id>
<content type='text'>
Remove an unnecessary blank line to improve code style consistency.

```
[command]
        ./scripts/checkpatch.pl --strict -f &lt;path/to/file&gt;

[output]
        CHECK: Please don't use multiple blank lines
	CHECK: Blank lines aren't necessary before a close brace '}'
```

Signed-off-by: Vivek Yadav &lt;vivekyadav1207731111@gmail.com&gt;
Signed-off-by: Will Deacon &lt;will@kernel.org&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64/gcs: Use nolibc's getauxval()</title>
<updated>2025-09-08T14:54:39Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-08-21T15:13:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a985fe638344492727528e52416211dda1c391d5'/>
<id>urn:sha1:a985fe638344492727528e52416211dda1c391d5</id>
<content type='text'>
Nolibc now does have getauxval(), use it.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Will Deacon &lt;will@kernel.org&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64/gcs: Correctly check return value when disabling GCS</title>
<updated>2025-09-08T14:54:39Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2025-08-21T15:13:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=740cdafd0d998903c1faeee921028a8a78698be5'/>
<id>urn:sha1:740cdafd0d998903c1faeee921028a8a78698be5</id>
<content type='text'>
The return value was not assigned to 'ret', so the check afterwards
does not do anything.

Fixes: 3d37d4307e0f ("kselftest/arm64: Add very basic GCS test program")
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Will Deacon &lt;will@kernel.org&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64: Add a test for vfork() with GCS</title>
<updated>2025-07-04T11:26:14Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2025-07-03T16:00:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1536aa0fb1e09cb50f401ec4852c60f38173d751'/>
<id>urn:sha1:1536aa0fb1e09cb50f401ec4852c60f38173d751</id>
<content type='text'>
Ensure that we've got at least some coverage of the special cases around
vfork() by adding a test case in basic-gcs doing the same thing as the
plain fork() one - vfork(), do a few checks and then return to the parent.

Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Reviewed-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
Link: https://lore.kernel.org/r/20250703-arm64-gcs-vfork-exit-v3-3-1e9a9d2ddbbe@kernel.org
Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64: Fix missing printf() argument in gcs/gcs-stress.c</title>
<updated>2024-11-12T14:39:30Z</updated>
<author>
<name>Catalin Marinas</name>
</author>
<published>2024-11-12T14:35:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=016d659e62ad9ddda1b6899468d0d0798ed71a4d'/>
<id>urn:sha1:016d659e62ad9ddda1b6899468d0d0798ed71a4d</id>
<content type='text'>
Compiling the child_cleanup() function results in:

gcs-stress.c: In function ‘child_cleanup’:
gcs-stress.c:266:75: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
  266 |                                 ksft_print_msg("%s: Exited due to signal %d\n",
      |                                                                          ~^
      |                                                                           |
      |                                                                           int

Add the missing child-&gt;exit_signal argument.

Fixes: 05e6cfff58c4 ("kselftest/arm64: Add a GCS stress test")
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64: Ensure stable names for GCS stress test results</title>
<updated>2024-10-16T14:54:19Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2024-10-11T14:36:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b9be78258511e67767e4aa51f587cf22feb5065'/>
<id>urn:sha1:9b9be78258511e67767e4aa51f587cf22feb5065</id>
<content type='text'>
The GCS stress test program currently uses the PID of the threads it
creates in the test names it reports, resulting in unstable test names
between runs. Fix this by using a thread number instead.

Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Link: https://lore.kernel.org/r/20241011-arm64-gcs-stress-stable-name-v1-1-4950f226218e@kernel.org
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64: Validate that GCS push and write permissions work</title>
<updated>2024-10-16T13:59:50Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2024-10-05T00:17:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48f8d9cef766f8ed4bbccc0d759710262d34f40b'/>
<id>urn:sha1:48f8d9cef766f8ed4bbccc0d759710262d34f40b</id>
<content type='text'>
Add trivial assembly programs which give themselves the appropriate
permissions and then execute GCSPUSHM and GCSSTR, they will report errors
by generating signals on the non-permitted instructions. Not using libc
minimises the interaction with any policy set for the system but we skip on
failure to get the permissions in case the system is locked down to make
them inaccessible.

Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Link: https://lore.kernel.org/r/20241005-arm64-gcs-test-flags-v1-1-03cb9786c5cd@kernel.org
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
<entry>
<title>kselftest/arm64: Add a GCS stress test</title>
<updated>2024-10-04T11:04:45Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2024-10-01T22:59:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=05e6cfff58c481bfe0ada24ebe1c205e2817dacd'/>
<id>urn:sha1:05e6cfff58c481bfe0ada24ebe1c205e2817dacd</id>
<content type='text'>
Add a stress test which runs one more process than we have CPUs spinning
through a very recursive function with frequent syscalls immediately prior
to return and signals being injected every 100ms. The goal is to flag up
any scheduling related issues, for example failure to ensure that barriers
are inserted when moving a GCS using task to another CPU. The test runs for
a configurable amount of time, defaulting to 10 seconds.

Reviewed-by: Thiago Jung Bauermann &lt;thiago.bauermann@linaro.org&gt;
Tested-by: Thiago Jung Bauermann &lt;thiago.bauermann@linaro.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Link: https://lore.kernel.org/r/20241001-arm64-gcs-v13-38-222b78d87eee@kernel.org
Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
</content>
</entry>
</feed>
