[Git][NTPsec/ntpsec][master] ntpd/ntp_sandbox.c: allow readv() for glibc nscd getaddrinfo() provider
Hal Murray (@hal.murray)
gitlab at mg.gitlab.com
Sun Jun 12 06:40:23 UTC 2022
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
a49d53b7 by Maciej S. Szmigiero at 2022-06-11T15:16:15+02:00
ntpd/ntp_sandbox.c: allow readv() for glibc nscd getaddrinfo() provider
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
Signed-off-by: Maciej S. Szmigiero <mail at maciej.szmigiero.name>
- - - - -
1 changed file:
- ntpd/ntp_sandbox.c
Changes:
=====================================
ntpd/ntp_sandbox.c
=====================================
@@ -357,6 +357,7 @@ int scmp_sc[] = {
SCMP_SYS(poll),
SCMP_SYS(pselect6),
SCMP_SYS(read),
+ SCMP_SYS(readv), /* nscd getaddrinfo() provider */
SCMP_SYS(recvfrom), /* Comment this out for testing.
* It will die on the first reply.
* (Or maybe sooner if a request arrives.)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/a49d53b7fe1dafecc09dbe1e1d2743e4d517620c
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/a49d53b7fe1dafecc09dbe1e1d2743e4d517620c
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20220612/daa6235b/attachment.htm>
More information about the vc
mailing list