Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851531 - net-misc/ntpsec[seccomp] with sys-libs/glibc[nscd] needs a patch
Summary: net-misc/ntpsec[seccomp] with sys-libs/glibc[nscd] needs a patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: https://gitlab.com/NTPsec/ntpsec/-/co...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-06-12 11:46 UTC by Maciej S. Szmigiero
Modified: 2022-06-12 11:59 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2022-06-12 11:46:12 UTC
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}.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-12 11:50:50 UTC
Thanks.
Comment 2 Larry the Git Cow gentoo-dev 2022-06-12 11:59:29 UTC
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(+)