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

Bug 146284

Summary: Kernel deadlock triggered by sandbox
Product: Gentoo/Alt Reporter: Alex Unleashed <unledev+b.g.o>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
URL: http://unleashed.amule.org/soc/2006/09/04/deadlock-dies/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch against 6.1-RELEASE fixing the deadlock (but racing at unmount time)

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.