Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296853 - [hardened-dev] sys-kernel/hardened-sources-2.6.32: perf_event_open not implemented
Summary: [hardened-dev] sys-kernel/hardened-sources-2.6.32: perf_event_open not implem...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-14 09:34 UTC by Dennis Schridde
Modified: 2010-09-18 00:40 UTC (History)
2 users (show)

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


Attachments
hardened kernel config ia64 (hardened-kernel-config,36.74 KB, text/plain)
2010-06-04 10:46 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2009-12-14 09:34:38 UTC
<stdin>:1519:2: warning: #warning syscall perf_event_open not implemented

Reproducible: Always




Portage 2.2_rc59 (hardened/linux/ia64/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r5, 2.6.31-hardened-r6 ia64)
=================================================================                                             
System uname: Linux-2.6.31-hardened-r6-ia64-31-with-gentoo-2.0.1                                              
Timestamp of tree: Mon, 14 Dec 2009 08:45:02 +0000                                                            
app-shells/bash:     4.0_p28                                                                                  
dev-lang/python:     2.6.4, 3.1.1-r1                                                                          
dev-python/pycrypto: 2.0.1-r8                                                                                 
dev-util/cmake:      2.6.4-r3                                                                                 
sys-apps/baselayout: 2.0.1                                                                                    
sys-apps/openrc:     0.5.3                                                                                    
sys-apps/sandbox:    2.2                                                                                      
sys-devel/autoconf:  2.63-r1                                                                                  
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2                                                               
sys-devel/binutils:  2.20                                                                                     
sys-devel/gcc-config: 1.4.1                                                                                   
sys-devel/libtool:   2.2.6b                                                                                   
virtual/os-headers:  2.6.27-r2                                                                                
ACCEPT_KEYWORDS="ia64"                                                                                        
ACCEPT_LICENSE="* -@EULA"                                                                                     
CBUILD="ia64-unknown-linux-gnu"                                                                               
CFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="      --include='/sci-libs/' --include='/sci-libs/gsl/' --exclude='/sci-libs/*/'      --include='/x11-libs/'          --include='/x11-libs/qt*/'              --include='/x11-libs/cairo/' --include='/x11-libs/pango/' --include='/x11-libs/pixman/' --exclude='/x11-libs/*/'    --include='/x11-misc/' --include='/x11-misc/util-macros/' --exclude='/x11-misc/*/'      --exclude='/games*/' --exclude='/gnome*/' --exclude='/gnustep*/' --exclude='/gpe*/' --exclude='/kde*/' --exclude='/lxde*/' --exclude='/rox*/' --exclude='/sci*/' --exclude='/x11*/' --exclude='/xfce*/'"
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="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/hardened-development /var/cache/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
[...]
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS_FLAGS
Comment 1 Dennis Schridde 2009-12-20 15:06:54 UTC
A similar issue is also present in 2.6.31-r8:
<stdin>:1519:2: warning: #warning syscall perf_counter_open not implemented       
Comment 2 Magnus Granberg gentoo-dev 2010-01-30 19:29:41 UTC
is that still present in 2.6.32-r3?
Comment 3 Dennis Schridde 2010-01-31 14:34:07 UTC
Compiling sys-kernel/hardened-sources-2.6.32-r3:
  CALL    scripts/checksyscalls.sh
<stdin>:1519:2: warning: #warning syscall perf_event_open not implemented
Comment 4 Dennis Schridde 2010-05-17 15:10:46 UTC
Compiling sys-kernel/hardened-sources-2.6.32-r3:
  CALL    scripts/checksyscalls.sh
<stdin>:1519:2: warning: #warning syscall perf_event_open not implemented
Comment 5 Dennis Schridde 2010-05-17 15:11:14 UTC
Sorry, wrong kernel version... Correct is:

Compiling sys-kernel/hardened-sources-2.6.32-r6:
  CALL    scripts/checksyscalls.sh
<stdin>:1519:2: warning: #warning syscall perf_event_open not implemented
Comment 6 Anthony Basile gentoo-dev 2010-06-03 01:36:40 UTC
This is an IA64 bug, and I'm not sure its hardened related. Can you try with the latest hardened-sources-2.6.32-r8 and with vanilla 2.6.32.14 and let us know.  I don't have access to IA64 hardware.
Comment 7 Dennis Schridde 2010-06-03 08:51:50 UTC
  CALL    scripts/checksyscalls.sh
<stdin>:1519:2: warning: #warning syscall perf_event_open not implemented

That's using hardened-sources-2.6.32-r8.
Comment 8 Anthony Basile gentoo-dev 2010-06-03 10:51:18 UTC
Can you compare to a vanilla kernel.  I'd like to narrow it down to whether its a general kernel problem, or hardened specific.
Comment 9 Dennis Schridde 2010-06-03 18:25:13 UTC
Do you have a tip, how to import my hardened kernel config into vanilla? "cp ..." + "make oldconfig" results in "Restart config...", and I have to configure everything from scratch, which is (a) time consuming, (b) not very comparable.
Comment 10 Anthony Basile gentoo-dev 2010-06-03 21:08:06 UTC
Follow these steps:

1. make mrproper
2. copy in your config file to .config
3. make silentoldconfig
4. make prepare

The last line of prepare runs

  CALL    scripts/checksyscalls.sh

which should trigger your bug.  This will only take a minute.  Unfortunately, I don't have an IA64
Comment 11 Dennis Schridde 2010-06-04 05:26:25 UTC
Step 3 also results in "Restart config...". I do not know how it figures out that the config might be from an incompatible kernel, but apparently it is very strict about that...
Comment 12 Xake 2010-06-04 08:04:13 UTC
(In reply to comment #11)
> Step 3 also results in "Restart config...". I do not know how it figures out
> that the config might be from an incompatible kernel, but apparently it is very
> strict about that...
> 

I have never hit something like that, and I usually while trying out different patched kernels copy my config around and use oldconfig and have never encountered that problem. Maybe it is time for you to either post your config here (even if we do not have a IA64 machine it is good for reference or it maybe is even possible to reproduce in an emulator), or for you to try out with a clean kernel configuration.
Comment 13 Dennis Schridde 2010-06-04 10:46:54 UTC
Created attachment 234101 [details]
hardened kernel config ia64
Comment 14 Anthony Basile gentoo-dev 2010-06-07 22:40:55 UTC
devurandom: thanks for the shell on an ia64 box.  This is not a hardened issues.  linux-2.6.32-gentoo-r7 exhibits the same warning, as does vanilla 2.6.32.8 (both are the same kernel patchlevel).

The hardened kernel does build, but I haven't been able to test whether or not it boots.  This is only a warning message about a relatively new system call used in measuring performance.  I don't think its critical.

Comment 15 Anthony Basile gentoo-dev 2010-09-18 00:40:13 UTC
I'm closing this one since its about a feature which is not implemented and not a bug to be fixed.