Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365915 - [>=sys-kernel/hardened-sources-2.6.38-r1] Invalid alignment/Bus error occurred
Summary: [>=sys-kernel/hardened-sources-2.6.38-r1] Invalid alignment/Bus error occurred
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL: http://forums.grsecurity.net/viewtopi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 10:13 UTC by taaroa
Modified: 2011-05-13 12:49 UTC (History)
3 users (show)

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


Attachments
strace linux32 chroot /mnt/gentoo32 /bin/bash (linux32trace,8.26 KB, text/plain)
2011-05-05 08:31 UTC, taaroa
Details
/etc/init.d/gentoo32 (gentoo32,2.60 KB, text/plain)
2011-05-05 08:39 UTC, taaroa
Details
kernel config for hardened for hardened-2.6.38-r1 (config-kernel-jkl-x86_64-2.6.38-hardened-r1,76.19 KB, text/plain)
2011-05-05 08:53 UTC, taaroa
Details
diff -Nau /usr/src/linux-2.6.38-hardened-r1/.config /usr/src/linux-2.6.38-hardened-r4/.config (diff,1.15 KB, text/plain)
2011-05-05 08:56 UTC, taaroa
Details
diff -Nau /usr/src/linux-2.6.38-hardened/.config /usr/src/linux-2.6.38-hardened-r1/.config (diff3,1.17 KB, text/plain)
2011-05-05 14:33 UTC, taaroa
Details
gdb --args strace linux32 chroot /mnt/gentoo32 /bin/bash (gdb3.txt,11.10 KB, text/plain)
2011-05-09 13:20 UTC, taaroa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description taaroa 2011-05-04 10:13:05 UTC
32Bit Chroot Guide for Gentoo/AMD64
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=2

# linux32 chroot /mnt/gentoo32 /bin/zsh
zsh: bus error  linux32 chroot /mnt/gentoo32 /bin/zsh

# tail -1 /var/log/grsec.log
Apr 29 19:48:11 localhost kernel: [27323.842138] grsec: Invalid alignment/Bus error occurred at 00000000e485d010 in /mnt/gentoo32/bin/zsh[zsh:26494] uid/euid:0/0 gid/egid:0/0, parent /bin/zsh[zsh:5486] uid/euid:0/0 gid/egid:0/0


Reproducible: Always

Steps to Reproduce:
1. see url
2.
3.



Portage 2.2.0_alpha30 (hardened/linux/amd64/no-multilib, gcc-4.6.0, libc-0-r0, 2.6.38-hardened-r4-grsec x86_64)
=================================================================
System uname: Linux-2.6.38-hardened-r4-grsec-x86_64-AMD_Phenom-tm-_II_X4_925_Processor-with-gentoo-2.0.2
Timestamp of tree: Tue, 03 May 2011 15:45:01 +0000
ccache version 3.1.4 [disabled]
app-shells/bash:     4.2_p8-r1
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.3.5, 4.4.5, 4.5.2, 4.6.0
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.38
sys-libs/glibc:      2.13-r2
virtual/os-headers:  0
Repositories:

gentoo
    location: /usr/portage
    sync: rsync://portage.org.ua/gentoo-portage
    priority: -1000

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 0

taaroa
    location: /var/lib/layman/taaroa
    masters: gentoo
    priority: 1

Installed sets: @gd, @qt
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="intel8x0 hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="3G"
CFLAGS="-march=native -O2 -pipe -msse4a -mfpmath=sse -g0 -Wno-all"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="7"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CUSTOM_PROFILE="yes"
CVS_RSH="ssh"
CXXFLAGS="-march=native -O2 -pipe -msse4a -mfpmath=sse -g0 -Wno-all"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-SMXWQoaogp,guid=81cfbd2b264cea156638815d00004c06"
DEFAULT_ABI="amd64"
DESKTOP_AUTOSTART_ID="1073495a84a7746460130449701186928100000064000003"
DESKTOP_SESSION="openbox-gnome"
DISPLAY=":0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --ask-enter-invalid --backtrack=40 --binpkg-respect-use=y --complete-graph --jobs=3 --keep-going --quiet-build --tree --use-ebuild-visibility=y --unordered-display --verbose --with-bdeps=y"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks fakeroot fixlafiles fixpackages metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox severe sfperms strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync"
FETCHCOMMAND="/usr/bin/wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec sftp -P \${port} \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
FFLAGS=""
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="openbox-gnome"
GDM_LANG="ru_RU.UTF-8"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="http://kspu/gentoo-distfiles/ http://portage.org.ua/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.opteamax.de/gentoo/distfiles/"
GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
GNOME_KEYRING_CONTROL="/tmp/.private/ra/keyring-oUnMLW"
GNOME_KEYRING_PID="6391"
GPG_AGENT_INFO="/tmp/.private/ra/keyring-oUnMLW/gpg:0:1"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
GSETTINGS_BACKEND="gconf"
HG="/usr/bin/hg"
HOME="/home/ra"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/info"
INPUT_DEVICES="evdev"
I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS="1"
KERNEL="linux"
LANG="en_US.UTF-8"
LANGUAGE="ru_RU.UTF-8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_ALL="C"
LC_COLLATE="C"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--warn-once -Wl,--hash-style=gnu"
LDFLAGS_x86="-m elf_i386"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="ru"
LOCAL_LAYMAN="/usr/local/portage/layman"
LOGNAME="ra"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-s -j5 -l5"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/man"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
NGINX_MODULES_HTTP="access addition auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map memcached perl proxy random_index referer rewrite scgi split_clients ssi secure_link stub_status sub upstream_ip_hash userid uwsgi"
NGINX_MODULES_MAIL="imap"
OLDPWD="/home/ra"
OPENGL_PROFILE="xorg-x11"
ORBIT_SOCKETDIR="/tmp/.private/ra/orbit-ra"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.0:/usr/games/bin"
PHP_TARGETS="php5-3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc sparc64-freebsd ppc-openbsd x86-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ECLASS_WARNING_ENABLE="1"
PORTAGE_ELOG_CLASSES="warn error info log qa"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="echo save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p ${PID}"
PORTAGE_NICENESS="10"
PORTAGE_PATCHDIR="/etc/portage/patches"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_QUIET="1"
PORTAGE_RSYNC_EXTRA_OPTS="-6"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="22"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/taaroa"
PORT_LOGDIR="/var/lib/portage/logs"
PRELINK_PATH_MASK="/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/ra/tmp"
PYTHONDONTWRITEBYTECODE="1"
QEMU_SOFTMMU_TARGETS="arm i386 mips mips64 mips64el mipsel x86_64"
QEMU_TARGETS="i386 x86_64 arm mips mipsel"
QEMU_USER_TARGETS="arm i386 mips mipsel x86_64"
RESUMECOMMAND="/usr/bin/wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port=22 ; exec rsync --rsh=\"ssh -p\${port}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.0"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SESSION_MANAGER="local/taaroa:@/tmp/.ICE-unix/6400,unix/taaroa:/tmp/.ICE-unix/6400"
SHELL="/bin/zsh"
SHLVL="1"
SSH_AGENT_PID="5184"
SSH_AUTH_SOCK="/tmp/.private/ra/keyring-oUnMLW/ssh"
STAGE1_USE="hardened nptl nptlonly pic"
SYMLINK_LIB="yes"
SYNC="rsync://portage.org.ua/gentoo-portage"
SYSFONT="ter-u20n"
TERM="xterm"
TMP="/tmp/.private/ra"
TMPDIR="/tmp/.private/ra"
USE="3dnow 3dnowext X acl alsa amd64 berkdb bzip2 caps cleartype cli cracklib crypt cxx directfb dlv dri drm fbcon fbdev gallium gdbm gmp gpm hardened iconv idn ipv6 justify lzma mmx mmxext modules mudflap ncurses nls nouveau nptl nptlonly nsec3 opengl openmp pam pcre perl pppd readline session smp sse sse2 sse3 sse4 ssl sysfs tcpd threads truetype udev unicode urandom xattr xorg zlib zsh-completion" ALSA_CARDS="intel8x0 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map memcached perl proxy random_index referer rewrite scgi split_clients ssi secure_link stub_status sub upstream_ip_hash userid uwsgi" NGINX_MODULES_MAIL="imap" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 mips mips64 mips64el mipsel x86_64" QEMU_USER_TARGETS="arm i386 mips mipsel x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="account chaos condition delude dhcpmac fuzzy geoip gradm iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock psd quota2 rawnat steal tarpit tee" 
USER="ra"
USERLAND="GNU"
USERNAME="ra"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DRACUT_MODULES DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nouveau"
WINDOWPATH="7:7"
XAUTHORITY="/home/ra/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
XDG_MENU_PREFIX="gnome-"
XDG_SESSION_COOKIE="dbd4edbd3e8770a5684225a14ad6ba32-1304497011.678821-1966461670"
XTABLES_ADDONS="account chaos condition delude dhcpmac fuzzy geoip gradm iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock psd quota2 rawnat steal tarpit tee"
_="/usr/bin/emerge"
Comment 1 taaroa 2011-05-05 08:31:11 UTC
Created attachment 272157 [details]
strace linux32 chroot /mnt/gentoo32 /bin/bash
Comment 2 taaroa 2011-05-05 08:39:59 UTC
Created attachment 272159 [details]
/etc/init.d/gentoo32
Comment 3 taaroa 2011-05-05 08:53:34 UTC
Created attachment 272161 [details]
kernel config for hardened for hardened-2.6.38-r1
Comment 4 taaroa 2011-05-05 08:56:49 UTC
Created attachment 272163 [details]
diff -Nau /usr/src/linux-2.6.38-hardened-r1/.config /usr/src/linux-2.6.38-hardened-r4/.config
Comment 5 Xake 2011-05-05 09:05:51 UTC
This may be related to bug #365871 as both seems to be about touching 32-bit from 64-bit?
Comment 6 taaroa 2011-05-05 14:33:20 UTC
Created attachment 272199 [details]
diff -Nau /usr/src/linux-2.6.38-hardened/.config /usr/src/linux-2.6.38-hardened-r1/.config

I recompiled my kernel with the previous .config. the result is the same.
Comment 7 Xake 2011-05-05 14:43:30 UTC
(In reply to comment #6)
> I recompiled my kernel with the previous .config. the result is the same.

Could you try with hardened-sources-2.6.38?
In the other bug I mentioned the problem surfaced between 2.6.38 and 2.6.38-r1, and blueness experienced the same with 2.6.38-r4 even with all grsec-options turned off IIRC.
Comment 8 taaroa 2011-05-05 15:04:01 UTC
@Xake
[=sys-kernel/hardened-sources-2.6.38] is ok.

# linux32 chroot /mnt/gentoo32 uname -a
Linux taaroa 2.6.38-hardened #2 SMP Fri Apr 29 02:06:45 KRAST 2011 i686 GNU/Linux
Comment 9 7v5w7go9ub0o 2011-05-06 20:42:08 UTC
I could not get r1 or r2 to cleanly compile; though hardened-sources-2.6.38 compiled and works fine.

After running "make oldconfig" with the 2.6.38 .config file, I ran "make" and received continuous warning messages (IIRC the message contained an "asm" note, and stated that some sort of comparison would not work) - for almost every line of the .config.

If I find some time I'll download another copy, run "make", and get the precise message.
Comment 10 taaroa 2011-05-09 13:20:21 UTC
Created attachment 272615 [details]
gdb --args strace linux32 chroot /mnt/gentoo32 /bin/bash
Comment 11 PaX Team 2011-05-11 18:54:40 UTC
i fixed the 32 bit userland breakage, the next grsec patch will have the fix.
Comment 12 Anthony Basile gentoo-dev 2011-05-12 19:47:08 UTC
Please test the latest which I just added to the tree: hardened-sources-2.6.38-r4
-r1 and -r2 will be removed from the tree in a minute.
Comment 13 taaroa 2011-05-13 02:27:40 UTC
(In reply to comment #12)
> Please test the latest which I just added to the tree:
> hardened-sources-2.6.38-r4
> -r1 and -r2 will be removed from the tree in a minute.

grsecurity-2.2.2-2.6.38.6-201105111839.patch is ok.
Comment 14 Anthony Basile gentoo-dev 2011-05-13 12:49:39 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Please test the latest which I just added to the tree:
> > hardened-sources-2.6.38-r4
> > -r1 and -r2 will be removed from the tree in a minute.
> 
> grsecurity-2.2.2-2.6.38.6-201105111839.patch is ok.

That's in the tree with hardened-sources-2.6.38-r4.  Closing this one.