Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on start due to seccomp #1

Open
gbraad opened this issue Oct 2, 2024 · 4 comments
Open

Crashes on start due to seccomp #1

gbraad opened this issue Oct 2, 2024 · 4 comments

Comments

@gbraad
Copy link

gbraad commented Oct 2, 2024

When pressing [start], the application immediately crashes. adb logcat shows:

10-02 13:41:09.622 18968 18968 F DEBUG   : Build fingerprint: 'samsung/crownqltezh/crownqltechn:10/QP1A.190711.020/N9600ZHU9FVG2:user/release-keys'
10-02 13:41:09.622 18968 18968 F DEBUG   : Revision: '11'
10-02 13:41:09.622 18968 18968 F DEBUG   : ABI: 'arm64'
10-02 13:41:09.623 18968 18968 F DEBUG   : Timestamp: 2024-10-02 13:41:09+0800
10-02 13:41:09.623 18968 18968 F DEBUG   : pid: 18934, tid: 18960, name: rufa.tailscaled  >>> io.github.asutorufa.tailscaled <<<
10-02 13:41:09.623 18968 18968 F DEBUG   : uid: 10898
10-02 13:41:09.623 18968 18968 F DEBUG   : signal 31 (SIGSYS), code 1 (SYS_SECCOMP), fault addr --------
10-02 13:41:09.623 18968 18968 F DEBUG   : Cause: seccomp prevented call to disallowed arm64 system call 434
10-02 13:41:09.623 18968 18968 F DEBUG   :     x0  00000000000049f6  x1  0000000000000000  x2  0000000000000000  x3  0000000000000000
10-02 13:41:09.623 18968 18968 F DEBUG   :     x4  0000000000000000  x5  0000000000000000  x6  0000000000000000  x7  0000000000000004
10-02 13:41:09.623 18968 18968 F DEBUG   :     x8  00000000000001b2  x9  0000000000000004  x10 0000000000000000  x11 0000000000000000
10-02 13:41:09.624 18968 18968 F DEBUG   :     x12 0000000000000000  x13 0000000000000008  x14 0000000000000004  x15 0000000000000005
10-02 13:41:09.624 18968 18968 F DEBUG   :     x16 00000040000963a0  x17 0000004000096740  x18 00000072fcdae000  x19 0000007399b85c30
10-02 13:41:09.624 18968 18968 F DEBUG   :     x20 0000004000096920  x21 0000004000096db8  x22 000000739b006060  x23 000000739b005dd8
10-02 13:41:09.624 18968 18968 F DEBUG   :     x24 000000739b005d50  x25 000000739b005d50  x26 0000007399dace28  x27 0000000000000003
10-02 13:41:09.624 18968 18968 F DEBUG   :     x28 0000004000184a80  x29 00000040000965c8
10-02 13:41:09.624 18968 18968 F DEBUG   :     sp  00000040000965d0  lr  0000007399b9c36c  pc  0000007399b8b350
10-02 13:41:09.625 18968 18968 F DEBUG   :
10-02 13:41:09.625 18968 18968 F DEBUG   : backtrace:
10-02 13:41:09.625 18968 18968 F DEBUG   :       #00 pc 0000000000186350  /data/app/io.github.asutorufa.tailscaled-XbWesEvrvKzvFRRjhROVMA==/lib/arm64/libgojni.so

What stands out is: seccomp prevented call to disallowed arm64 system call 434
This is a Samsung Note 9 with Enforcing

@gbraad gbraad changed the title Crashes on startup Crashes on start due to seccomp Oct 2, 2024
@Asutorufa
Copy link
Owner

I have no idea about this error, I have Samsung tab s9 with oneui 6.1, it's no problem for me.

@gbraad
Copy link
Author

gbraad commented Oct 2, 2024

On my Tab S6 it starts. The Note 9 is still on Android 10. I might spend some time to get more information and/or solution.

@Asutorufa
Copy link
Owner

Asutorufa commented Oct 9, 2024

It seems seccomp not allowed syscall pidfd_open.

https://www.chromium.org/chromium-os/developer-library/reference/linux-constants/syscalls/#aarch64_434

which is issue of golang, it already fixed at golang/go@a3a05ed, we should build it with latest golang.

@Asutorufa
Copy link
Owner

Asutorufa commented Oct 9, 2024

The fixd maybe released with next go version(1.23.3), currect can try build with go dev branch.

https://github.com/golang/go/commits/release-branch.go1.23/

The issue introduced at golang/go@750738b. Older go version(before go 1.23.0) seems no problem.
see: tailscale/tailscale#13452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants