bad syscall <0x15b> on x86_64

Richard Weinberger richard.weinberger at gmail.com
Wed Jan 30 09:29:39 CET 2019


On Wed, Jan 30, 2019 at 8:34 AM Jan Kiszka <jan.kiszka at 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.

-- 
Thanks,
//richard



More information about the Xenomai mailing list