On 30.01.19 09:29, Richard Weinberger wrote:
On Wed, Jan 30, 2019 at 8:34 AM Jan Kiszka <jan.kis...@siemens.com> wrote:

On 29.01.19 23:14, Richard Weinberger via Xenomai wrote:
Hi!

When running a ia32 application on x86_64 I get bad syscall errors.
This happens with ipipe-core-4.14.89-x86-2.patch and xenomai 3.0.8.

The problem seems to be that both ipipe_handle_syscall() and
handle_head_syscall()
check for syscall-nr being >= NR_syscalls.
On ia32 the syscall table is larger and therefore the check is wrong.

Hmm, the kernel's tracer also only checks for NR_syscalls. Strange.

Well, the kernel tracer is in this matter a little lazy and sets
ARCH_TRACE_IGNORE_COMPAT_SYSCALLS
for x86.


Oh, wow...

Well, we can't be that lazy.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Reply via email to