lm-sensors compiles kernel modules with CFLAGS from make.conf which in my case include -fstack-protector. This results in kernel-modules that contain references to undefined symbols, namely: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __stack_smash_handler /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __guard /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: insmod /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o failed /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __stack_smash_handler /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: unresolved symbol __guard /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: insmod /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o failed /lib/modules/2.4.20-xfs-r3/kernel/drivers/i2c/busses/dmi_scan.o: insmod i2c-piix4 failed Reproducible: Always Steps to Reproduce: 1. 2. 3.
technically you can (and many people do) compile their kernel with stack protector
well, besides what is technically possible, it doesn't work if only some modules are compiled with it. I'd expect a kernel module to use the flags defined in my kernel's Makefile.
``emerge info''; please?
Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.20-xfs-r3) ================================================================= System uname: 2.4.20-xfs-r3 i686 Celeron (Coppermine) Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -mcpu=pentium3 -mmmx -msse -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -mcpu=pentium3 -mmmx -msse -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox strict userpriv" GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo ftp://sunsite.cnlab-switch.ch/mirror/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa apm avi berkdb clamav crypt dga doc dvd encode esd foomaticdb gdbm gif gphoto2 gpm gtk gtk2 gtkhtml imap imlib ipv6 java jikes jpeg kerberos libg++ libwww lufsusermount mad mbox mldonkeypango motif mozcalendar mozilla mozxmlterm mpeg ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png python readline scanner sdl slang spell sse ssl tcltk tcpd tetex truetype x86 xface xfs xml2 xmms xv zlib"
Thanks - this has been fixed and -fstack-protector should now be filtered.