| Summary: | net-misc/ntpsec[seccomp] with sys-libs/glibc[nscd] needs a patch | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Maciej S. Szmigiero <mail> |
| Component: | Current packages | Assignee: | Anthony Basile <blueness> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | sam |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://gitlab.com/NTPsec/ntpsec/-/commit/a49d53b7fe1d | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Thanks. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11ceb07fe0233dc7dd3c9596a6b256aa6c81acb9 commit 11ceb07fe0233dc7dd3c9596a6b256aa6c81acb9 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-12 11:59:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-12 11:59:14 +0000 net-misc/ntpsec: backport glibc[nsd] seccomp patch Closes: https://bugs.gentoo.org/851531 Signed-off-by: Sam James <sam@gentoo.org> .../ntpsec/files/ntpsec-1.2.1-seccomp-nsd.patch | 34 ++++ net-misc/ntpsec/ntpsec-1.2.1-r5.ebuild | 178 +++++++++++++++++++++ 2 files changed, 212 insertions(+) |
net-misc/ntpsec[seccomp] with sys-libs/glibc[nscd] needs to allow the readv() syscall when nscd provides getaddrinfo() support. Otherwise ntpd crashes from time to time with the following stack trace: #0 0x00007f5763bfac4d in readv () from /lib64/libc.so.6 #1 0x00007f5763c48b4c in __readvall () from /lib64/libc.so.6 #2 0x00007f5763c467ed in nscd_gethst_r () from /lib64/libc.so.6 #3 0x00007f5763c46c0d in __nscd_gethostbyname2_r () from /lib64/libc.so.6 #4 0x00007f5763c15a2a in gethostbyname2_r () from /lib64/libc.so.6 #5 0x00007f5763bed3ca in gaih_inet.constprop () from /lib64/libc.so.6 #6 0x00007f5763bee225 in getaddrinfo () from /lib64/libc.so.6 #7 0x000055fcf0ad6544 in open_TCP_socket () #8 0x000055fcf0ad79b4 in nts_probe () #9 0x000055fcf0ac37c4 in dns_lookup () #10 0x00007f5763b8205a in start_thread () from /lib64/libc.so.6 #11 0x00007f5763c05d1c in clone3 () from /lib64/libc.so.6 The (trivial) patch is available upstream at ${URL}.