Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Sync to Linux 6.11 syscall definitions #435

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

xen0n
Copy link
Contributor

@xen0n xen0n commented Aug 20, 2024

The arch-syscall-validate script updates will need to be backported to v2.5.x later, for continuing to sync aarch64 and riscv64 that got refactored to source the syscall definitions from a syscall.tbl instead of asm-generic/unistd.h.

Apart from de-duplication of logic, this refactor is also going to help
syncing to the Linux 6.11+ definitions, where all architectures are
converted to source their syscall definitions from syscall.tbl files.

The change is tested on Linux 6.2 sources to not affect the generated
syscalls.csv apart from timestamp changes.

Signed-off-by: WANG Xuerui <git@xen0n.name>
The aarch64, loongarch64 and riscv64 architectures have their syscall
table sources changed to scripts/syscall.tbl, from the original
inclusion of asm-generic/unistd.h. Make the script recognize the new
format for these architectures.

Signed-off-by: WANG Xuerui <git@xen0n.name>
@coveralls
Copy link

coveralls commented Aug 20, 2024

Coverage Status

coverage: 89.454%. remained the same
when pulling f4afd16 on xen0n:linux-6.11-syscalls
into c92d618 on seccomp:main.

@xen0n xen0n changed the title Sync to Linux 6.11 syscall definitions RFE: Sync to Linux 6.11 syscall definitions Aug 20, 2024
Due to the addition of fstat & newfstatat to the LoongArch syscall ABI,
test 38 and 55 have to be updated for the changed syscall numbers.

Signed-off-by: WANG Xuerui <git@xen0n.name>
@xen0n
Copy link
Contributor Author

xen0n commented Aug 20, 2024

After the change, linux-headers >= 6.11 will be required for native LoongArch all builds, for definitions of new syscalls introduced in this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants