Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 352038

Summary: Some hardened feature(s) cause segfaults for wine, disallowing some apps to run
Product: Gentoo Linux Reporter: Thomas Sachau <tommy>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED OBSOLETE    
Severity: normal CC: klondike
Priority: High    
Version: autobuilds   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kernel config

Description Thomas Sachau gentoo-dev 2011-01-18 15:21:37 UTC
When i try to start a game in wine ("Industriegigant 2"), i see many segfaults in dmesg and that game does not start. It does not even get to the point of cdrom detection, if i missed mounting the cd.

If i try the same with a none-hardened kernel, the game starts and runs ok.

But this seems to be specific to some apps, since another one ("Civilisation V" started via "Steam") does start and run fine with the same kernel.

Some lines from dmesg for the failing app:

grsec: Segmentation fault occurred at 0000000000380000 in /usr/bin/wine-preloader[winemenubuilder:2939] uid/euid:1000/1000 gid/egid:1000/1000, parent /usr/bin/wine-preloader[wineboot.exe:2938] uid/euid:1000/1000 gid/egid:1000/1000

grsec: Segmentation fault occurred at (nil) in /usr/bin/wine-preloader[ig2.exe:2933] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:2932] uid/euid:1000/1000 gid/egid:1000/1000

both lines are repeated many times. While it seems like the first does not occur any more after some time, the second occurs until i quit wine.

paxctl -v /usr/bin/wine-preloader:

- PaX flags: -p-s-m-x-e-r [/usr/bin/wine-preloader]

I will attach my kernel config, so it wont take that much space in this report.
Comment 1 Thomas Sachau gentoo-dev 2011-01-18 15:22:29 UTC
Created attachment 260192 [details]
kernel config
Comment 2 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2011-01-18 15:24:10 UTC
Can you paste the output of "winedbg executable" ?

Having a backtrace may help finding where the issue is, for now I already found one in cursor.c
Comment 3 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2011-01-18 20:23:07 UTC
Oddly enough winedebug won't be able to start the file :( (according to the reporter).

As I don't have the particular game I can't do much to help.

On a side note grsec is putting a lot of useless warning for first chance exceptions which shouldn't be logged as they are normal behaviour :/

Tommy, is this reproducible on a vanilla kernel?
Comment 4 Thomas Sachau gentoo-dev 2011-08-22 18:37:35 UTC
Quote from my initial report:

If i try the same with a none-hardened kernel, the game starts and runs ok.
Comment 5 Magnus Granberg gentoo-dev 2019-08-07 23:40:06 UTC
Hardened-sources no longer supported.