Re: sys_write() racy for multi-threaded append?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael K. Edwards <medwards.linux@...>
Cc: <7eggert@...>, Eric Dumazet <dada1@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Monday, March 12, 2007 - 2:48 pm

On Mon, 12 Mar 2007, Michael K. Edwards wrote:


<snip>


I got it wrong, and I didn't CC myself so I couldn't correct it in time.

If it was a security risk, it would exist right now, too, because of 
other access patterns.


CONFIG_WOMBAT

Waste memory, brain and time in order to grant an atomic write which is 
neither guaranteed by the standard nor expected by any sane programmer, 
just in case some idiot tries to write to one file from multiple 
processes.

Warning: Programs expecting this behaviour are buggy and non-portable.


If you asume that you won't have short writes, your programs may fail on
e.g. solaris. There may be reasons for linux to use the same semantics at 
some time in the future, you never know.

If you asume you *may* have short writes, you have no problem.


I think it may be well-hidden in menuconfig.


-EYOULOSTME
-- 
"Try to look unimportant; they may be low on ammo."
-Infantry Journal
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: sys_write() racy for multi-threaded append?, Bodo Eggert, (Mon Mar 12, 3:53 am)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Mon Mar 12, 12:26 pm)
Re: sys_write() racy for multi-threaded append?, Bodo Eggert, (Mon Mar 12, 2:48 pm)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Mon Mar 12, 8:46 pm)
Re: sys_write() racy for multi-threaded append?, Alan Cox, (Mon Mar 12, 10:24 pm)
Re: sys_write() racy for multi-threaded append?, David M. Lloyd, (Tue Mar 13, 10:00 am)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Tue Mar 13, 3:25 am)
Re: sys_write() racy for multi-threaded append?, Alan Cox, (Tue Mar 13, 9:15 am)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Wed Mar 14, 4:09 pm)
Re: sys_write() racy for multi-threaded append?, Frank Ch. Eigler, (Fri Mar 16, 12:43 pm)
Re: sys_write() racy for multi-threaded append?, Alan Cox, (Fri Mar 16, 1:25 pm)
Re: sys_write() racy for multi-threaded append?, David Miller, (Tue Mar 13, 3:42 am)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Tue Mar 13, 12:24 pm)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Tue Mar 13, 1:59 pm)
Re: sys_write() racy for multi-threaded append?, Christoph Hellwig, (Tue Mar 13, 3:09 pm)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Tue Mar 13, 7:40 pm)
Re: sys_write() racy for multi-threaded append?, Michael K. Edwards, (Tue Mar 13, 8:09 pm)