Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146284 - Kernel deadlock triggered by sandbox
Summary: Kernel deadlock triggered by sandbox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High major (vote)
Assignee: Gentoo/BSD Team
URL: http://unleashed.amule.org/soc/2006/0...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 09:36 UTC by Alex Unleashed
Modified: 2006-09-04 11:48 UTC (History)
0 users

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


Attachments
Patch against 6.1-RELEASE fixing the deadlock (but racing at unmount time) (kernel-fix-devfs-deadlock.patch,4.49 KB, patch)
2006-09-04 09:37 UTC, Alex Unleashed
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Unleashed 2006-09-04 09:36:09 UTC
Gentoo's sandbox triggers at random points a deadlock in FreeBSD 6.1-RELEASE and 6-STABLE in devfs code resulting in the system being unable to touch the filesystem. There is a patch as a result of my bug report to upstream fixing this deadlock which will be applied to both -CURRENT and 6-STABLE.

If we want people to enable sandbox under FreeBSD we should be patching freebsd-sources with this patch until 6.2 gets released. Note that the author of the patch, Konstantin Belousov, says "this trades the deadlock for a race at unmount time", which is however much better than the current state of things.

Dirty details:
http://www.freebsd.org/cgi/query-pr.cgi?pr=102335
http://marc.theaimsgroup.com/?l=freebsd-hackers&m=115592944408531&w=2
http://unleashed.amule.org/soc/2006/07/15/deadlock-driving-me-mad/
http://unleashed.amule.org/soc/2006/09/04/deadlock-dies/

Patch against 6.1-RELEASE to follow as attachment. In the FreeBSD link you can find a patch against -CURRENT.
Comment 1 Alex Unleashed 2006-09-04 09:37:09 UTC
Created attachment 95973 [details, diff]
Patch against 6.1-RELEASE fixing the deadlock (but racing at unmount time)
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-04 11:48:54 UTC
Added in 6.1-r4.