Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 129944

Summary: ntpd locks x86 system, running hardened-sources 2.6.16-r2
Product: Gentoo Linux Reporter: some one <tmp>
Component: [OLD] Core systemAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED DUPLICATE    
Severity: critical    
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description some one 2006-04-14 07:14:52 UTC
DESCRIPTION
Upon upgrading hardened-sources from 2.6.14-r6 to 2.6.16-r2 system became unstable while using ntpd. Few researches showed ntpd with kernel fails to run, taking 100% of system CPU with 'ps ax' command can't be performed. 

STRACE NTPD

command 'strace -fF nptd'

mmap2(NULL, 60426, PROT_READ, MAP_PRIVATE, 8, 0) = 0x4eaae000
close(8)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 8
read(8, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\33"..., 512) = 512
fstat64(8, {st_mode=S_IFREG|0755, st_size=35452, ...}) = 0
mmap2(NULL, 37352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 8, 0
-- ntpd hangs here, taking more and more CPU

EMERGE --INFO

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-HARD i686)
=================================================================
System uname: 2.6.16-HARD i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.12.0_pre17
dev-lang/python:     2.3.4, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fomit-frame-pointer -pipe -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium2 -funroll-loops -fomit-frame-pointer -pipe -ffast-math -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.KOI8-R"
LC_ALL="ru_RU.KOI8-R"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts automount bash-completion bashlogger berkdb bitmap-fonts boundschecking bzip2 cli crypt ctype curl dba dri eds emboss esd expat extensions fastbuild flash force-cgi-redirect fortran ftp gd gdbm gif gnutls gstreamer hardened idea idn imap iproute2 ipv6 isdnlog jack java jpeg ldap libg++ libwww mad mbox memlimit mmx mouse moznocompose moznoirc mp3 mpm-worker multiuser mysql ncurses nethack nls nptl nptlonly ogg pam pcre perl png posix pppd python quotas readline samba session sftplogging simplexml slang sndfile soap sockets spell spl sqlite ssl tcltk tcpd threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode urandom vorbis winbind xinerama xinetd xml xml2 xsl zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 petre rodan (RETIRED) gentoo-dev 2006-04-15 01:03:44 UTC

*** This bug has been marked as a duplicate of 128870 ***