Re: Linux 2.1.125 doesn't dump core on SIGSEGV

David Woodhouse (David.Woodhouse@mvhi.com)
Tue, 20 Oct 1998 23:11:53 +0100


chris@cybernet.co.nz said:
> How does this look (still a race, but much harder to exploit):

As you say, there's still a race. It's better to leave a gaping hole which
obviously needs fixing than a subtle one, so Linus wouldn't accept it.

How about:

lock_vfs()
stat()
open()
unlock_vfs()

As I said, it's only useful in the core dump case, but that's the original
context of this discussion. We can worry about safe temp file creation later.

---- ---- ----
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/