[Bug 242319] New: synaptics input driver not working anymore with -fstack-protector
https://bugzilla.novell.com/show_bug.cgi?id=242319 Summary: synaptics input driver not working anymore with -fstack- protector Product: openSUSE 10.3 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: dmueller@novell.com QAContact: sndirsch@novell.com apparently it is not linked against libssp/glibc, because during loading I get unresolved symbols against __stack_chk_failed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |dmueller@novell.com ------- Comment #1 from sndirsch@novell.com 2007-02-05 13:03 MST ------- Hmm ... is there any documentation available for this new flag? BTW, maybe you can also help with Bug #242127? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 dmueller@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenther@novell.com, matz@novell.com Status|NEEDINFO |NEW Info Provider|dmueller@novell.com | ------- Comment #2 from dmueller@novell.com 2007-02-05 13:39 MST ------- I don't know of good documentation. basically the only solution afaik currently is to build the modules either linking against -lc or without stack-protector (${RPM_OPT_FLAGS/-fstack-protector//}) upstream gcc produces a libssp where you can link against and which contains the needed symbols, however on suse afaik this was patched out and has been added to glibc instead. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #3 from dmueller@novell.com 2007-02-05 13:40 MST ------- strangely though I can use the "mouse" driver just fine, only the synaptics one isn't working. I guess the mouse driver only works by accident because it doesn't contain an "interesting" stack based buffer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mhopf@novell.com, eich@novell.com Status|NEW |ASSIGNED ------- Comment #4 from sndirsch@novell.com 2007-02-05 15:00 MST ------- Thanks. I wonder who many Xserver modules are affected by this. Most of the video and input drivers aren't tested at all. Probably it's the best to use "-fstack-protector" for all video and input drivers. Maybe also for the Xserver and the other Xserver modules as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Critical -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #5 from sndirsch@novell.com 2007-02-05 15:01 MST ------- --- I wonder who ... +++ I wonder how ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #6 from sndirsch@novell.com 2007-02-05 22:21 MST ------- Dirk, could you test new xorg-x11-driver-input package in /work/built/mbuild/shannon-sndirsch-38/i386/ It's built with -fno-stack-protector. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #7 from dmueller@novell.com 2007-02-06 00:10 MST ------- the synaptics drivre comes from x11-input-synaptics. without -fstack-protector it works fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #8 from rguenther@novell.com 2007-02-06 02:02 MST ------- Note that we easily can build a libssp, but you will need to explicitly link against it as we want to use the glibc provided routines where possible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #9 from sndirsch@novell.com 2007-02-06 02:32 MST ------- (In reply to comment #7)
the synaptics drivre comes from x11-input-synaptics. without -fstack-protector it works fine. Ouch! Thanks for testing.
(In reply to comment #8)
Note that we easily can build a libssp, but you will need to explicitly link against it as we want to use the glibc provided routines where possible. So everything needs to be compiled explicitely with "-lc" right now?
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #10 from rguenther@novell.com 2007-02-06 03:01 MST ------- No, -lc is automatically added by the gcc driver. Only if you use -nostdlib or invoke ld manually you need to. Or if you link to some other libc without ssp support. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #11 from sndirsch@novell.com 2007-02-06 03:35 MST ------- ld is not used during build, but "-nostdlib" is - for whatever reasons. gcc -m32 -o /var/tmp/xorg-x11-driver-video-7.2-build/usr/lib/xorg/modules/drivers/mga_hal_drv.so -shared -nostdlib .libs/mga_halmod.o .libs/clientlx.o HALlib/mgaHALlib.a -Wl,-Bstatic -lgcc -Wl,-Bdynamic -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #12 from sndirsch@novell.com 2007-02-06 03:39 MST ------- Argh. Wrong bug report. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #13 from sndirsch@novell.com 2007-02-06 03:42 MST ------- ld is not used during build, but "-nostdlib" is - for whatever reasons. gcc -m32 -o synaptics_drv.so -shared -nostdlib ps2comm.o synaptics.o eventcomm.o psmcomm.o alpscomm.o -Wl,-Bstatic -lgcc -Wl,-Bdynamic gcc -m32 -o gunze_drv.so -shared -nostdlib xf86Gunze.o -Wl,-Bstatic -lgcc -Wl,-Bdynamic -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #14 from sndirsch@novell.com 2007-02-06 05:03 MST ------- I think removing "-nostdlib" *and* "-lgcc" should do the trick. Dirk, could you please give it a try? /work/built/mbuild/shannon-sndirsch-41/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #15 from dmueller@novell.com 2007-02-06 05:23 MST ------- works fine as well -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 ------- Comment #16 from sndirsch@novell.com 2007-02-06 06:52 MST ------- (In reply to comment #4)
Thanks. I wonder who many Xserver modules are affected by this. Most of the video and input drivers aren't tested at all. Probably it's the best to use "-fstack-protector" for all video and input drivers. Maybe also for the Xserver and the other Xserver modules as well. Fortunately other Xserver modules than synaptics/gunze/mga_hal are not affected, i.e. are *not* linked with "-nostdlib -lgcc". So there's no need to use "-fstack-protector" by default for building.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #17 from sndirsch@novell.com 2007-02-06 08:03 MST ------- fixed for Factory/STABLE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242319 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |seife@novell.com ------- Comment #18 from sndirsch@novell.com 2007-02-07 17:32 MST ------- *** Bug 243242 has been marked as a duplicate of this bug. *** -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com