Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823692 - net-misc/ntpsec-1.2.1[seccomp]: broken with glibc-2.34
Summary: net-misc/ntpsec-1.2.1[seccomp]: broken with glibc-2.34
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Anthony Basile
URL: https://gitlab.com/NTPsec/ntpsec/-/is...
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.34
  Show dependency tree
 
Reported: 2021-11-14 08:36 UTC by Klemen Mihevc
Modified: 2021-11-17 02:35 UTC (History)
1 user (show)

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


Attachments
strace (strace,147.27 KB, text/plain)
2021-11-14 08:47 UTC, Klemen Mihevc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klemen Mihevc 2021-11-14 08:36:21 UTC
ntpsec with seccomp enabled does not run with new glibc, no errors in the logs, but error usualy happens after every glibc update because of updated syscalls. If you dont use seccomp it works fine.

Reproducible: Always




mih ~ # emerge --info
Portage 3.0.28 (python 3.9.8-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.34-r1, 5.15.2-gentoo x86_64)
=================================================================
System uname: Linux-5.15.2-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X5670_@_2.93GHz-with-glibc2.34
KiB Mem:    12265660 total,  10086660 free
KiB Swap:   16777684 total,  16777684 free
Timestamp of repository gentoo: Sun, 14 Nov 2021 07:21:32 +0000
Head commit of repository gentoo: fd4de29ecddc3cfafee994154fe223765cbd45c5

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          3.9.8::gentoo
dev-util/cmake:           3.21.4::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.8::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: true

local
    location: /var/db/repos/local
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -pipe -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -pipe -O2 -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -pipe -O2 -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -pipe -O2 -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://mirror.yandex.ru/gentoo-distfiles/"
LANG="sl_SI.utf8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu"
LINGUAS="en sl"
MAKEOPTS="-j12 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl acpi amd64 apache2 apng berkdb bittorrent btrfs bzip2 caps cgi change-password cli client corefonts crypt curl dhcp dlz dovecot-sasl dri eap exif expat experimental extraengine fontconfig fortran ftp gd gdbm glib gmp gssapi gzip hardened http2 iconv icu idn intl iptables ipv6 ithreads jpeg kerberos lcms libglvnd libtirpc lm-sensors lz4 lzma lzo managesieve mp3 multilib mysql mysqli ncurses nls nping nptl openmp openssl pam pch pci pcntl pcre pcre16 pcre32 pdo perl png posix python rar readline rpc rtmp samba seccomp server session sieve slang smtp soap sockets socks5 spell spf split-usr sqlite ssh ssl suexec threads tiff tracepath truetype udev unicode urandom usb vhosts webui x264 x265 xattr xml xmlreader xmlrpc xmlwriter xslt xvid xz zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_dbd authn_socache authz_dbd cache_socache dbd http2 proxy proxy_html proxy_http proxy_http2 proxy_wstunnel xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en sl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="luajit" LUA_TARGETS="luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="geoip"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-14 08:37:56 UTC
Could you run strace on it when it fails?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-14 08:43:37 UTC
(In reply to Sam James from comment #1)
> Could you run strace on it when it fails?

Ah, it's clone3.
Comment 3 Klemen Mihevc 2021-11-14 08:47:00 UTC
Created attachment 750975 [details]
strace

for refrence... looks like it.
Comment 4 Larry the Git Cow gentoo-dev 2021-11-14 08:49:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96b3c7a5f76e2d6f66f307816f06cda43fad1a7b

commit 96b3c7a5f76e2d6f66f307816f06cda43fad1a7b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-14 08:47:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-14 08:48:52 +0000

    net-misc/ntpsec: allow clone3 for glibc-2.34 (seccomp filter fix)
    
    Closes: https://bugs.gentoo.org/823692
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/ntpsec-1.2.1-seccomp-glibc-2-3-4.patch      | 19 +++++++++++++++++++
 .../{ntpsec-1.2.1.ebuild => ntpsec-1.2.1-r1.ebuild}   |  1 +
 2 files changed, 20 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b5494d3110ca3afbb2f9981df68a9f477850134

commit 0b5494d3110ca3afbb2f9981df68a9f477850134
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-14 08:48:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-14 08:48:53 +0000

    net-misc/chrony: allow clone3 for glibc-2.34 (seccomp filter fix)
    
    Bug: https://bugs.gentoo.org/823692
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{chrony-4.1-r1.ebuild => chrony-4.1-r2.ebuild} |  1 +
 .../files/chrony-4.1-seccomp-glibc-2-3-4.patch     | 30 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2021-11-14 08:58:24 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceabbc49d8f1b693febd5a55b3247c4870831d8c

commit ceabbc49d8f1b693febd5a55b3247c4870831d8c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-14 08:57:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-14 08:58:17 +0000

    net-misc/ntpsec: add upstream bug reference
    
    Tried to open a PR but gitlab seems to have blocked me
    partway through opening it.
    
    Bug: https://bugs.gentoo.org/823692
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-glibc-2-3-4.patch | 1 +
 1 file changed, 1 insertion(+)
Comment 6 Larry the Git Cow gentoo-dev 2021-11-17 02:35:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2ecbd9e86bd990a6f0ffa8127c4146c7ae318b9

commit e2ecbd9e86bd990a6f0ffa8127c4146c7ae318b9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-17 02:34:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-17 02:34:55 +0000

    net-misc/ntpsec: add link to upstream MR for glibc-2.34 fix
    
    Bug: https://bugs.gentoo.org/823692
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/ntpsec/files/ntpsec-1.2.1-seccomp-glibc-2-3-4.patch | 1 +
 1 file changed, 1 insertion(+)