hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

seccomp: call to banned syscall on ARM (big endian) #47

Closed dangowrt closed 9 years ago

dangowrt commented 9 years ago

Attempted banned syscall number [1073741864] see doc/Seccomp.md for more information

Disallowed Syscall

Core exited with status [0], signal [6]

dangowrt commented 9 years ago

So that's 0x40000028 What a coincidence:

define ArchInfo_AUDIT_ARCH_ARM 0x40000028

dangowrt commented 9 years ago

could be related to https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=580c57f1076872ebc2427f898b927944ce170f2d

dangowrt commented 9 years ago

False alert, issue still present also on Kernel 4.0. I accidentally re-tested with newer kernels on MIPS32 which works fine. ARM with seccomp enabled (and probably also other targets, see #9 ) still fails with the same banned syscall error.

dangowrt commented 9 years ago

Added missing gettimeofday syscall in https://github.com/hyperboria/cjdns/commit/dc63fc73f8cd7eae38279297a5247e25978e1b76

Fixed reporting banned syscall numbers in https://github.com/hyperboria/cjdns/commit/b8e4baa63b5d7f14daae1f6d454a26be2982c61e