scripts icon indicating copy to clipboard operation
scripts copied to clipboard

sys-kernel/coreos-modules: arm64: Enable CONFIG_FTRACE_SYSCALLS

Open arilou opened this issue 11 months ago • 6 comments

This config enables the syscall tracepoints which are mainly used by different security and observability tools.

Related to: https://github.com/flatcar/Flatcar/issues/1617

arilou avatar Jan 22 '25 07:01 arilou

Thanks! Done

arilou avatar Jan 22 '25 08:01 arilou

@arilou image is available for download here: https://github.com/flatcar/scripts/actions/runs/12904571853/artifacts/2467235852 - can you give a try to see if it works as expected?

Failures in the CI are not related to this change (it happens when the test run from a fork).

tormath1 avatar Jan 22 '25 12:01 tormath1

@arilou image is available for download here: https://github.com/flatcar/scripts/actions/runs/12904571853/artifacts/2467235852 - can you give a try to see if it works as expected?

Failures in the CI are not related to this change (it happens when the test run from a fork).

LGTM but I will let you confirm:

core@localhost ~ $ zcat /proc/config.gz | grep CONFIG_FTRACE_SYSCALLS
CONFIG_FTRACE_SYSCALLS=y
core@localhost ~ $ uname -a
Linux localhost 6.6.71-flatcar #1 SMP PREEMPT Wed Jan 22 10:11:29 -00 2025 aarch64 GNU/Linux
core@localhost ~ $ sudo ls -l /sys/kernel/tracing/events/syscalls/ | head
total 0
-rw-r-----. 1 root root 0 Jan 22 13:28 enable
-rw-r-----. 1 root root 0 Jan 22 13:28 filter
drwxr-xr-x. 1 root root 0 Jan 22 13:28 sys_enter_accept
drwxr-xr-x. 1 root root 0 Jan 22 13:28 sys_enter_accept4
drwxr-xr-x. 1 root root 0 Jan 22 13:28 sys_enter_acct
drwxr-xr-x. 1 root root 0 Jan 22 13:28 sys_enter_add_key
drwxr-xr-x. 1 root root 0 Jan 22 13:28 sys_enter_adjtimex
drwxr-xr-x. 1 root root 0 Jan 22 13:28 sys_enter_arm64_personality
drwxr-xr-x. 1 root root 0 Jan 22 13:28 sys_enter_bind

tormath1 avatar Jan 22 '25 13:01 tormath1

Looks good! Thanks you

arilou avatar Jan 22 '25 13:01 arilou

(FYI, I'm holding this PR until the current release is done to avoid any confusion)

tormath1 avatar Jan 24 '25 08:01 tormath1

Hello @arilou,

I am sorry it's on me, I totally dropped the ball on this. Any chance to rebase this PR on current main branch? This will have a small conflict because Kernel has been upgraded from 6.6 to 6.12, as it is a two line changes, I would suggested to simply restart from scratch instead of rebasing with git.

I am so sorry again. :pray:

tormath1 avatar Jun 27 '25 08:06 tormath1

Done

arilou avatar Jun 29 '25 05:06 arilou

Done

Thanks, it looks like the 6.12 changes have not been pushed? I only see the changelog entry: https://github.com/flatcar/scripts/pull/2600/files

tormath1 avatar Jun 30 '25 08:06 tormath1

My bad sorry, fixed

arilou avatar Jun 30 '25 08:06 arilou

Thanks a lot @arilou this will be available in next Alpha and Beta releases.

Cherry-picked to:

  • flatcar-4372
  • flatcar-4344

tormath1 avatar Jul 01 '25 07:07 tormath1