amd64, COMPAT_IA32 & syscall diverts

Julian Elischer julian at elischer.org
Wed Sep 17 15:36:01 UTC 2008


Andrew N. Below wrote:
> Hi all.
> 
> We have loadable kernel module with
> several syscall intercepting functions
> (e.g., sysent[SYS___sysctl].sy_call).
> Earlier, this module was built and used
> on i386 platform, now we have to run it
> on amd64. For some reasons we have to
> enable COMPAT_IA32 option in kernel.
> 
> Our syscall wrapper sucessfully receiving
> syscalls from amd64 binaries, but we have
> nothing from old i386 binaries.
> 
> Seems like these calls are made bypassing
> our kernel module.

x86 binaries use a separate syscall table, so you need to patch
both tables.

> 
> Is there any way to handle them?
> 
> OS is freebsd 6.3-stable.
> 
> Thanks, 
> --
> Andrew
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"



More information about the freebsd-hackers mailing list