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

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