Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139552 - media-video/spca5xx-20060501 includes hardened symbols in modules
Summary: media-video/spca5xx-20060501 includes hardened symbols in modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 07:20 UTC by Daniel Black (RETIRED)
Modified: 2006-07-16 16:00 UTC (History)
0 users

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


Attachments
spca-20060501-defines.patch (spca-20060501-defines.patch,523 bytes, patch)
2006-07-10 17:22 UTC, Daniel Black (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2006-07-07 07:20:37 UTC
Modules should not have __guard and __stack_smash_handler defined.

This is due to a missing __KERNEL__ defined when compiling (https://bugs.gentoo.org/show_bug.cgi?id=138579#c3)

  CC [M]  /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/drivers/usb/spcadecoder.o

  LD [M]  /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.o
  Building modules, stage 2.
  MODPOST
WARNING: "__guard" [/var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.ko] undefined!
WARNING: "__stack_smash_handler" [/var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.ko] undefined!
  CC      /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.mod.o
  LD [M]  /var/tmp/portage/spca5xx-20060501/work/spca5xx-20060501/spca5xx.ko
make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo'
>>> Source compiled.
>>> Test phase [not enabled]: media-video/spca5xx-20060501

>>> Install spca5xx-20060501 into /var/tmp/portage/spca5xx-20060501/image/ category media-video
 * Installing spca5xx module
>>> Completed installing spca5xx-20060501 into /var/tmp/portage/spca5xx-20060501/image/

man:
strip: i686-pc-linux-gnu-strip --strip-unneeded
>>> Merging media-video/spca5xx-20060501 to /
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/spca5xx-20060501/
>>> /usr/share/doc/spca5xx-20060501/CHANGELOG.gz
>>> /usr/share/doc/spca5xx-20060501/INSTALL.gz
>>> /usr/share/doc/spca5xx-20060501/README.gz
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.17-gentoo/
>>> /lib/modules/2.6.17-gentoo/usb/
>>> /lib/modules/2.6.17-gentoo/usb/video/
>>> /lib/modules/2.6.17-gentoo/usb/video/spca5xx.ko
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/doc/spca5xx-20060501/README.gz
--- !mtime obj /usr/share/doc/spca5xx-20060501/INSTALL.gz
--- !mtime obj /usr/share/doc/spca5xx-20060501/CHANGELOG.gz
--- cfgpro obj /lib/modules/2.6.17-gentoo-r1/usb/video/spca5xx.ko
--- cfgpro dir /lib/modules/2.6.17-gentoo-r1/usb/video
--- cfgpro dir /lib/modules/2.6.17-gentoo-r1/usb
--- cfgpro dir /lib/modules/2.6.17-gentoo-r1
--- !empty dir /usr/share/doc/spca5xx-20060501
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /lib/modules
--- !empty dir /lib
 * Removing media-video/spca5xx-20060501 from moduledb.
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 * Updating module dependencies for 2.6.17-gentoo ...
WARNING: //lib/modules/2.6.17-gentoo/usb/video/spca5xx.ko needs unknown symbol __stack_smash_handler
WARNING: //lib/modules/2.6.17-gentoo/usb/video/spca5xx.ko needs unknown symbol __guard                                                        [ ok ]
 * Adding module to moduledb.
>>> Regenerating /etc/ld.so.cache...
>>> media-video/spca5xx-20060501 merged.

emerge --info

Portage 2.1.1_pre2-r4 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686)
=================================================================
System uname: 2.6.17-gentoo i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"

Yes something looks weird here having a non-hardened profile and still having some hardened symbols around. I think I migrated off a hardened profile without doing a full rememerge.

I'll look at this later after some rest.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-07-10 17:22:04 UTC
Created attachment 91417 [details, diff]
spca-20060501-defines.patch
Comment 2 Daniel Black (RETIRED) gentoo-dev 2006-07-16 16:00:32 UTC
Committed change to spca5xx-20060501 with permission from Mike.