Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705128 - net-misc/ntpsec-1.1.8 on ARM: SIGSYS/seccomp bad syscall - missing SCMP_SYS for newfstatat faccessat
Summary: net-misc/ntpsec-1.1.8 on ARM: SIGSYS/seccomp bad syscall - missing SCMP_SYS f...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords: PATCH
Depends on: 732234
Blocks: seccomp
  Show dependency tree
 
Reported: 2020-01-10 21:08 UTC by crabbed halo ablution
Modified: 2020-07-11 16:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
seccomp.patch (seccomp.patch,508 bytes, patch)
2020-01-10 21:09 UTC, crabbed halo ablution
Details | Diff
configure output (configure.log,9.16 KB, text/plain)
2020-01-10 21:10 UTC, crabbed halo ablution
Details
ntpsecstrace.txt (ntpsecstrace.txt,26.17 KB, text/plain)
2020-01-10 21:11 UTC, crabbed halo ablution
Details
seccomp-v2.patch (seccomp.patch,474 bytes, patch)
2020-01-12 13:03 UTC, crabbed halo ablution
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description crabbed halo ablution 2020-01-10 21:08:42 UTC
See upstream URL for more details.

Reproducible: Always
Comment 1 crabbed halo ablution 2020-01-10 21:09:45 UTC
Created attachment 602932 [details, diff]
seccomp.patch

Naive patch to fix the problem.
Comment 2 crabbed halo ablution 2020-01-10 21:10:21 UTC
Created attachment 602934 [details]
configure output
Comment 3 crabbed halo ablution 2020-01-10 21:11:13 UTC
Created attachment 602936 [details]
ntpsecstrace.txt

strace of ntpd startup with seccomp violation
Comment 4 crabbed halo ablution 2020-01-12 13:03:01 UTC
Created attachment 603094 [details, diff]
seccomp-v2.patch

Caught another trap (renameat). Also, narrowed it down to only being an issue on aarch64, so it's ifdef'ed neatly.
Comment 5 Anthony Basile gentoo-dev 2020-01-12 21:22:02 UTC
(In reply to crabbed halo ablution from comment #4)
> Created attachment 603094 [details, diff] [details, diff]
> seccomp-v2.patch
> 
> Caught another trap (renameat). Also, narrowed it down to only being an
> issue on aarch64, so it's ifdef'ed neatly.

I caught a few of these myself on amd64.  Let's wait till your patch lands upstream and then I'll backport or version bump so the fix gets in.
Comment 6 James Browning 2020-02-21 21:06:20 UTC
handled upstream in merge request [1] with patch [2]. Please test and report back upstream to close the issue.

[1] https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1090
[2] https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1090/diffs?commit_id=823bcf1abf8a57b12fc0a2ab3ac45ce86f24a65d
Comment 7 Steve Arnold gentoo-dev 2020-03-13 17:10:13 UTC
Upstream patch is in for testing (should be in the next release).
Comment 8 Steve Arnold gentoo-dev 2020-03-13 17:12:55 UTC
Also I'd probably prefer nuking the older ebuilds and stabilizing something reasonably current (1..1.8 looks decent with the patch).