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
..
2013-11-06 16:31:27 -06:00
2013-11-06 16:31:27 -06:00
2013-10-30 13:37:38 -05:00
2014-01-25 23:58:21 -05:00
2014-01-25 23:58:21 -05:00
2013-10-23 14:11:30 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-11-06 12:42:52 -06:00
2013-10-23 14:11:30 -05:00
2014-01-30 11:19:05 -08:00
2013-09-04 09:23:46 -04:00
2013-10-30 13:47:22 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 14:21:40 -05:00
2013-12-18 16:08:04 -06:00
2014-01-10 12:38:41 -06:00
2013-10-23 14:21:40 -05:00
2013-12-18 16:07:09 -06:00
2013-10-30 13:59:56 -05:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2014-01-10 12:39:38 -06:00
2013-10-21 16:57:03 -05:00
2014-01-09 16:03:18 -06:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-12-18 10:36:58 -06:00
2013-10-23 16:28:49 -05:00
2014-01-30 11:19:05 -08:00
2014-01-24 11:55:42 -06:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:37:38 -05:00
2013-10-30 13:59:56 -05:00
2013-10-30 13:48:41 -05:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:57:14 -05:00
2013-10-30 13:49:18 -05:00
2013-12-17 09:15:12 -06:00
2013-10-30 13:47:22 -05:00
2013-12-18 15:52:36 -06:00
2013-12-11 14:59:20 -06:00
2013-10-30 13:49:18 -05:00
2013-10-30 13:49:18 -05:00
2013-12-10 10:00:33 -06:00
2013-10-30 13:59:56 -05:00
2013-12-13 11:34:08 +11:00
2013-12-13 11:34:08 +11:00
2013-12-18 16:04:18 -06:00
2013-10-23 14:11:30 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-12-13 11:34:02 +11:00
2014-02-09 15:18:09 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 16:28:49 -05:00
2013-10-08 14:28:09 -05:00
2013-12-10 10:04:27 -06:00
2013-10-30 13:59:56 -05:00
2013-10-23 16:28:49 -05:00
2013-12-13 15:51:49 +11:00
2013-12-13 15:51:48 +11:00
2013-10-23 16:28:49 -05:00
2013-09-12 16:13:41 -07:00
2013-12-13 11:34:02 +11:00
2013-10-23 16:28:49 -05:00
2013-10-23 14:11:30 -05:00
2014-01-09 16:03:18 -06:00
2013-10-23 16:28:49 -05:00
2013-12-13 11:34:05 +11:00
2013-12-13 11:34:05 +11:00
2014-01-09 16:03:18 -06:00
2013-12-18 15:48:44 -06:00
2013-12-10 09:59:37 -06:00
2014-01-24 11:55:42 -06:00
2013-10-23 16:28:49 -05:00
2013-10-01 15:42:34 -05:00
2014-01-28 08:38:04 -08:00
2014-01-25 23:58:21 -05:00
2013-12-13 15:51:48 +11:00
2013-12-13 11:34:02 +11:00
2013-10-23 14:11:30 -05:00
2013-10-23 16:17:44 -05:00
2013-12-18 10:36:58 -06:00
2013-10-23 16:28:49 -05:00
2013-11-06 12:41:51 -06:00
2013-12-13 11:34:02 +11:00
2013-10-23 16:17:44 -05:00
2013-11-18 09:29:36 -06:00
2013-11-18 09:29:36 -06:00
2013-10-23 16:28:49 -05:00
2013-12-06 14:06:15 -06:00
2013-12-18 16:06:38 -06:00
2013-12-06 14:16:33 -06:00
2013-10-23 14:28:35 -05:00
2013-10-23 14:28:35 -05:00
2013-10-23 16:28:49 -05:00
2013-10-23 17:16:32 -05:00
2013-10-23 17:16:32 -05:00
2013-10-30 13:59:56 -05:00
2013-10-30 16:38:29 -05:00
2013-10-23 14:11:30 -05:00
2013-10-23 14:11:30 -05:00
2013-11-14 17:16:35 +09:00
2013-10-23 16:17:44 -05:00
2013-10-23 16:28:49 -05:00
2013-10-08 14:53:02 -05:00
2013-10-23 16:28:49 -05:00
2013-11-06 12:42:52 -06:00
2013-11-06 12:41:51 -06:00
2013-12-17 09:28:43 -06:00
2013-12-04 14:26:57 -06:00
2013-10-23 16:17:44 -05:00
2013-11-18 09:42:08 -06:00
2013-10-23 16:17:44 -05:00
2013-12-13 15:51:48 +11:00
2013-12-13 15:51:48 +11:00
2013-10-23 16:28:49 -05:00
2013-12-13 11:34:02 +11:00
2013-12-04 14:11:05 -06:00
2014-01-25 23:58:21 -05:00