Playing around with syscall framework macros broke the syscall tracing
badly, see:
commit bb3fbc44e783 ("arm64/syscalls: Allow syscalls to return
capabilities")
and:
https://git.morello-project.org/morello/kernel/linux/-/issues/35
for the corresponding bug report.
This series in an attempt to remedy that.
The first patch does some rather controversial thing, but there is already a
precedent for that (as of ARCH_HAS_SYSCALL_MATCH_SYM_NAME), so one could say
it can be somehow exonerated.
The second one tries to get the SYSCALL_METADATA macro aligned with the
changes that caused the issue in the first place and, sadly, it is touching
other archs code, though the changes are minimal and safe.
Note: checkpatch will complain about few things but those are to be ignored.
Tracing selftests seem to be happy with the changes.
Also verified with some random syscall events.
Review branch:
https://git.morello-project.org/Bea/linux/-/commits/morello/ftrace_syscalls/
---
BR
B.
Beata Michalska (3):
tracing/syscalls: Reshape arch_syscall_addr
arm64:morello:tracing/syscalls: Get a grip on syscall tracing
tracing/signal: Use explicit conversion instead of vague downcast
Documentation/trace/ftrace-design.rst | 5 +++--
arch/arm64/include/asm/ftrace.h | 4 ++++
arch/arm64/include/asm/syscall_wrapper.h | 9 ++++++---
arch/arm64/kernel/syscall.c | 12 ++++++++++++
arch/mips/include/asm/ftrace.h | 4 ++++
arch/s390/include/asm/syscall_wrapper.h | 6 +++---
arch/x86/include/asm/syscall_wrapper.h | 2 +-
include/linux/syscalls.h | 24 +++++++++++++++---------
include/trace/events/signal.h | 4 ++--
kernel/trace/trace_syscalls.c | 4 +++-
10 files changed, 53 insertions(+), 21 deletions(-)
--
2.25.1
Hi,
This series adapts semctl/msgctl for compat64. This depends on Teo's
work on shmctl.
These patches can also be found on this location [1].
Changes in v2:
* Addressed few minor comments from Kevin.
Thanks,
Amit
[1]: https://git.morello-project.org/amitdaniel/linux.git review/semctl_msgctl_v2
Amit Daniel Kachhap (3):
ipc/sem: Adapt semctl syscall for compat64
ipc/msg: Adapt msgctl syscall for compat64
arm64: compat: Fix structs compat_semid64_ds/compat_msqid64_ds
arch/arm64/include/asm/compat.h | 11 +++++++++++
ipc/msg.c | 6 ++++++
ipc/sem.c | 9 +++++++--
3 files changed, 24 insertions(+), 2 deletions(-)
--
2.17.1
This patch series fixes shmctl, shmat and structs they use for compat64.
Update the arm64/Kconfig as we only use ipc_parse_version in compat32.
You can also find the patches at https://git.morello-project.org/Teo-CD/linux/-/tree/review/teo/shm-compat
---
v1: Initial shmctl patch
v2: Split patch between generic and arm64, shmat fix and Kconfig update
v3: Small nits
Teo Couprie Diaz (4):
ipc/shm: Adapt shmctl for compat64
arm64: compat: Fix structs for compat64
arm64: compat: Only use legacy SHMLBA in compat32
arm64: Kconfig: ipc_parse_version depends on COMPAT32
arch/arm64/Kconfig | 2 +-
arch/arm64/include/asm/compat.h | 10 ++++++++++
arch/arm64/include/asm/shmparam.h | 2 ++
ipc/shm.c | 8 ++++++++
4 files changed, 21 insertions(+), 1 deletion(-)
--
2.25.1
Hi,
This series adapts semctl/msgctl for compat64. This depends on Teo's
work on shmctl.
These patches can also be found on this location [1].
Thanks,
Amit
[1]: https://git.morello-project.org/amitdaniel/linux.git review/semctl_msgctl_v1
Amit Daniel Kachhap (3):
ipc/sem: Adapt semctl syscall for compat64
ipc/msg: Adapt msgctl syscall for compat64
arm64: compat: Fix structs compat_semid64_ds/compat_msqid64_ds
arch/arm64/include/asm/compat.h | 11 +++++++++++
ipc/msg.c | 6 ++++++
ipc/sem.c | 9 +++++++--
3 files changed, 24 insertions(+), 2 deletions(-)
--
2.17.1