Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338561 - www-client/midori-0.2.6 crash with pax enabled on hardened profile
Summary: www-client/midori-0.2.6 crash with pax enabled on hardened profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-24 14:19 UTC by Agostino Sarubbo
Modified: 2013-08-08 20:41 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge --info,3.48 KB, text/plain)
2010-09-24 14:21 UTC, Agostino Sarubbo
Details
strace midori (strmid,805.38 KB, text/plain)
2010-09-24 17:02 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2010-09-24 14:19:12 UTC
Midori doesn't work on hardened profile with pax enabled


ago@E2160 ~ $ midori 
error: line 5: bad flagvector
error: line 7: bad flagvector
error: line 9: bad flagvector
error: line 11: bad flagvector
error: line 13: bad flagvector
error: line 18: bad flagvector
error: line 23: bad flagvector
error: line 28: bad flagvector
Killed


Later:
E2160 ago # paxctl -m /usr/bin/midori

And midori works! 

Reproducible: Always
Comment 1 Agostino Sarubbo gentoo-dev 2010-09-24 14:21:44 UTC
Created attachment 248516 [details]
emerge --info
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-09-24 15:04:30 UTC
1. Try midori-9999, because we are about to bump midori into 0.2.8 and 9999 is closest to that right now. If the problem is still reproducible we move to 2.

2. hardened team: Should we "inherit pax-utils" and do pax-mark "${D}"/usr/bin/midori in src_install() of midori?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-09-24 15:04:53 UTC
err...

pax-mark -m "${D}"/usr/bin/midori
Comment 4 Agostino Sarubbo gentoo-dev 2010-09-24 17:02:57 UTC
Created attachment 248536 [details]
strace midori
Comment 5 Agostino Sarubbo gentoo-dev 2010-09-24 17:03:54 UTC
(In reply to comment #2)
> 1. Try midori-9999, because we are about to bump midori into 0.2.8 and 9999 is
> closest to that right now. If the problem is still reproducible we move to 2.
> 

I try with midori-9999, but the result at open is same.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-09-29 02:40:40 UTC
+*midori-0.2.8 (29 Sep 2010)
+
+  29 Sep 2010; Samuli Suominen <ssuominen@gentoo.org> +midori-0.2.8.ebuild,
+  midori-9999.ebuild:
+  Version bump with missing dev-lang/vala depend wrt #336643 by Agostino
+  Sarubbo and pax-mark -m for hardened wrt #338561 by René Neumann.
Comment 7 Agostino Sarubbo gentoo-dev 2010-09-29 07:50:20 UTC
for midori-9999 see bug 339078
Comment 8 Faustus 2010-11-04 19:13:57 UTC
Disabling executable memory protection in a browser is a pretty big deal, since it is usually the piece of software that is most exposed to external attacks.

I didn't find mmap calls in midori source, so it's probably a problem in webkit. I wonder is this is similar to this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=516057

incidentally, /usr/bin/jsc also segfaults on hardened Gentoo, so it could be that Midori tries to unconditionally initialize javascript support. I will file a separate bug about jsc failure.