lkml.org 
[lkml]   [1998]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Linux 2.1.125 doesn't dump core on SIGSEGV
Date
From

chris@cybernet.co.nz said:
> Because the VFS doesn't support this - and it still doesn't help in
> the hard link instance.

> I've yet to here why stat then a sanity check won't work.

In the coredump case, I'm not sure - but in general it's because there's a
race condition. Someone can put the 'evil' symlink in place between the stat()
and the open().

Even in the coredump case there's a race, but presumably there's a lock
somewhere that we can use to make it seem atomic.

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.063 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site