Files
kernel_arpi/include/linux
Al Viro d311d79de3 fix O_SYNC|O_APPEND syncing the wrong range on write()
It actually goes back to 2004 ([PATCH] Concurrent O_SYNC write support)
when sync_page_range() had been introduced; generic_file_write{,v}() correctly
synced
	pos_after_write - written .. pos_after_write - 1
but generic_file_aio_write() synced
	pos_before_write .. pos_before_write + written - 1
instead.  Which is not the same thing with O_APPEND, obviously.
A couple of years later correct variant had been killed off when
everything switched to use of generic_file_aio_write().

All users of generic_file_aio_write() are affected, and the same bug
has been copied into other instances of ->aio_write().

The fix is trivial; the only subtle point is that generic_write_sync()
ought to be inlined to avoid calculations useless for the majority of
calls.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2014-02-09 15:18:09 -05:00
..
2014-01-20 11:55:23 -08:00
2014-01-24 22:39:54 +01:00
2014-01-17 01:59:38 +01:00
2014-01-14 14:54:00 -05:00
2014-01-28 08:09:46 -07:00
2014-01-16 10:23:02 +10:30
2014-01-16 11:15:50 +01:00
2014-01-26 22:48:35 +01:00
2014-01-25 08:55:09 +01:00
2014-01-08 19:03:00 -02:00
2014-01-16 10:23:03 +10:30
2014-01-27 21:02:39 -08:00
2014-01-22 21:57:17 -08:00
2014-01-25 03:14:05 -05:00
2014-01-13 14:29:49 -08:00
2014-01-03 11:22:21 -08:00
2014-01-22 19:36:57 +01:00
2014-01-28 13:20:09 -08:00
2014-01-23 16:37:02 -08:00
2014-01-27 21:02:39 -08:00
2014-01-30 16:56:55 -08:00