Crash with FreeBSD 6.1 STABLE of today
max at love2party.net
Mon Jun 26 14:36:00 UTC 2006
On Monday 26 June 2006 15:32, Gavin Atkinson wrote:
> On Mon, 2006-06-26 at 15:15 +0200, Martin Blapp wrote:
> > A remote stress testing of a tty session over serial cable
> > with a patched kernel worked fine.
> > How to proceed now ? The patch also applies to CURRENT
> > as there where no big changes since the repo has been
> > branched.
> > Should I commit it to CURRENT ?
> > > http://mx.imp.ch/patch-tty.t_pgrp.diff
> I'm still not convinced that the proctree lock is the correct lock to
> use - maybe a new lock for the tty subsystem? Also, some of the locking
> in the patch appears to be unnecessary. I can't help feeling that this
> patch is the heavy-handed solution to the problem, and given how
> heavyweight locks can be, maybe it's not a good solution.
> Is the problem actually understood? Do we know what's racing with what?
I found kern_proc.c:461 to be a likely candidate for a race.
> Given there only ever seems to be a single backtrace involved, as far as
> I can tell, it's ttymodem racing with tty_close - can those two
> functions alone be locked?
When locking something you have to lock every access to do it right. It makes
no sense to lock just paths that exhibit the race. Indeed a new lock for tty
would make sense, but be warned that you will have to use this lock in a
dozen places that are now rightfully protected with the proctree lock. So
instead of one locking operation you now have to do two. The only benefit
you get is reduced lock contention.
I am against pushing in the heavy handed patch as well, but I rather have the
heavy handed version in than a nasty race.
> Alas, I can't recreate the problem on-demand so can't really find a
> better solution.
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060626/cbf6dc9e/attachment.pgp
More information about the freebsd-stable