I use syslog-ng as system logger. This kernel always logs messages with timestamp "[ 0.000000]" instead of actual time from the boot point. Reproducible: Always Steps to Reproduce: N/A Actual Results: See attachment Expected Results: It should print correct timestamp. Example from older kernel: See attachment circular ~ # uname -a Linux circular 2.6.24-hardened-r3-circular-prod.2 #1 SMP Sat Jul 19 00:45:19 CEST 2008 x86_64 Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz GenuineIntel GNU/Linux circular ~ # emerge --info Portage 2.1.4.4 (selinux/2007.0/amd64/hardened, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-hardened-r3-circular-prod.2 x86_64) ================================================================= System uname: 2.6.24-hardened-r3-circular-prod.2 x86_64 Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz Timestamp of tree: Fri, 18 Jul 2008 22:45:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13, 2.5.2-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=nocona -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages loadpolicy metadata-transfer parallel-fetch sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.gentoo.no/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip acl alsa amd64 apache2 berkdb bzip2 cli cracklib crypt cups distcc dri fortran ftp gcj gd gdbm gpm gs hardened iconv ipv6 isdnlog jpeg midi mmx mp3 mpeg mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pic pie png pppd python quotas readline reflection samba sasl selinux session sharedmem slang snmp spl sse sse2 ssl ssp ssse3 symlink tcpd threads tiff truetype unicode userlocales utf8 wmf xattr xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 160866 [details] Actual result Actual result
Created attachment 160868 [details] Expected result Expected result
Surely not all of these need to be CC'd? <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>kernel</herd> <herd>hardened</herd> <maintainer> <email>phreak@gentoo.org</email> <name>Christian Heim</name> </maintainer> <maintainer> <email>kerframil@gmail.com</email> <name>Kerin Millar</name> </maintainer> <maintainer> <email>bugs-gentoo-org-02@bumpin.org</email> <name>Gordon Malm</name> </maintainer> <longdescription> hardened-sources is based upon genpatches, and adds the grsecurity patch from http://www.grsecurity.net, which also includes PaX. </longdescription> </pkgmetadata>
This issue seems to be specific to your hardware or config CONFIG_PRINTK_TIME seems to work fine elsewhere. Please post your kernel config. Also, would it be possible for you to try with gentoo-sources-2.6.24-r8?
Greetings, my hardware configuration is: --- # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz stepping : 13 cpu MHz : 2200.029 cache size : 2048 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4402.52 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz stepping : 13 cpu MHz : 2200.029 cache size : 2048 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4400.07 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: --- # lspci 00:00.0 Host bridge: Intel Corporation DRAM Controller (rev 02) 00:01.0 PCI bridge: Intel Corporation PCI Express Root Port (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Integrated Graphics Controller (rev 02) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01) 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01) 00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01) 01:00.0 RAID bus controller: 3ware Inc 9650SE SATA-II RAID (rev 01) 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) 04:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) --- I am adding kernel configuration ( "# zcat /proc/config.gz" ) as an attachment with name of file of "2.6.24-hardened-r3.config". With best regards, VooDooMan
Created attachment 162507 [details] kernel .config file produced by: zcat /proc/config.gz >2.6.24-hardened-r3.config
Greetings to Gordon Malm (gengor), I am very sorry, but it is not possible for me to try gentoo-sources-2.6.24-r8 kernel, since this is mission-critical production server, and I prefer hardening features (PaX, GRsec, SElinux). Best, VooDooMan
Understandable regarding trying gentoo-sources. Did not know the role this machine plays in your operations, so it was worth asking. From what I can find this appears to be a regression in the mainline kernel and nothing to do with any of the hardened patchset (I never suspected it was related either). There are various patches floating around mainline git & LKML, but success at fixing the problem seems to be varied so I'm hesitant to backport them. I believe you should be able to work around the problem by enabling CONFIG_PM and CONFIG_ACPI in your kernel config. Enabling base ACPI support is a good idea on modern hardware anyway (even servers). Please let us know how it goes. Thank you.
Greetings Gordon, Here it is local time now 0703 hours. Notify of scheduled upgrade/reboot at approximatelly 1200 hours to the new kernel with your configuration changes suggestions have been sent to all users. I will get back here to report You whether it will work. Thank You very much, Marian. .
Greetings, I enabled power management per your suggestion, and now timestamps are printed correctly. Thank You very much, Marian .
Created attachment 162747 [details] kernel .config Greetings, If you are interested in kernel config that resolved an issue, there it is. Marian .
Greetings Gordon, Thank You for suggesting ACPI enabling. It resolved an issue with "/sbin/shutdown -h ..." and related "shutdown" things. This bug report IMO is only cosmetical bug, You are free to close it as fixed, however. Thank You very much, Marian. .
(In reply to comment #12) > Greetings Gordon, > > Thank You for suggesting ACPI enabling. It resolved an issue with > "/sbin/shutdown -h ..." and related "shutdown" things. > > This bug report IMO is only cosmetical bug, You are free to close it as fixed, > however. > > Thank You very much, > > Marian. > . > Glad to hear the positive results and thank you for reporting back. As for this bug, it is kernel@g.o's, not mine. So it is up to the Gentoo kernel team to decide what they want to do with it.