Skip to content

seccomp prevented call to disallowed arm/x86 system call 422 (Android 8-10, Go 1.26.0, arm/x86) #329

@dyhkwong

Description

@dyhkwong

Log from a user:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'MECOOL/KM6/KM6:10/QTT2.200903.001/V4.20201026:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2026-02-14 14:56:28+0300
pid: 18538, tid: 18565, name: hkwong.sagernet  >>> com.github.dyhkwong.sagernet <<<
uid: 11274
signal 31 (SIGSYS), code 1 (SYS_SECCOMP), fault addr --------
Cause: seccomp prevented call to disallowed arm system call 422
    r0  c35f4db0  r1  00000080  r2  00000000  r3  00000000
    r4  00000000  r5  00000000  r6  00000001  r7  000001a6
    r8  c35f4ce0  r9  0000000e  r10 c35f4018  r11 00000007
    ip  ec522260  sp  c10820cc  lr  c202b580  pc  c207bc6c
backtrace:
      #00 pc 00ff5c6c  /data/app/com.github.dyhkwong.sagernet---6LXwsv80YVA_RkRHl65A==/lib/arm/libgojni.so

Log from Android Emulator:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Android/sdk_phone_x86/generic_x86:10/QSR1.210820.001/7663313:userdebug/test-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2026-02-14 10:14:46-0500
pid: 3484, tid: 3516, name: hkwong.sagernet  >>> com.github.dyhkwong.sagernet <<<
uid: 10116
signal 31 (SIGSYS), code 1 (SYS_SECCOMP), fault addr --------
Cause: seccomp prevented call to disallowed x86 system call 422
    eax 000001a6  ebx bd18d610  ecx 00000080  edx 00000000
    edi 00000000  esi 00000000
    ebp 00000000  esp babbc028  eip bbc2889f

backtrace:
      #00 pc 0106889f  /data/app/com.github.dyhkwong.sagernet-mK8wnxRL56sCmmhjOKYo0g==/lib/x86/libgojni.so

0.17.15-beta.1, compiled with Go 1.26.0: crashes on startup
0.17.15-beta.1, compiled with Go 1.25.7 (7168663): works flawlessly

syscall 422 is futex_time64 on arm and x86.

golang/go@3cf1aaf

aosp-mirror/platform_bionic@ee7bc30

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3987

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions