Re: Linux 2.1.125 doesn't dump core on SIGSEGV

David Woodhouse (David.Woodhouse@mvhi.com)
Tue, 20 Oct 1998 22:55:27 +0100


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/