Jens Axboe
60fdceaa91
swap: fix swapfile read/write offset
...
commit caf6912f3f4af7232340d500a4a2008f81b93f14 upstream.
We're not factoring in the start of the file for where to write and
read the swapfile, which leads to very unfortunate side effects of
writing where we should not be...
Fixes: dd6bd0d9c7db ("swap: use bdev_read_page() / bdev_write_page()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cc: Anthony Iliopoulos <ailiop@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-07 12:20:49 +01:00
..
2021-01-27 11:47:53 +01:00
2020-05-14 07:58:30 +02:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2019-05-14 09:47:45 -07:00
2020-09-03 11:26:51 +02:00
2021-03-04 10:26:39 +01:00
2020-03-05 16:43:51 +01:00
2019-07-12 11:05:46 -07:00
2019-08-30 22:43:58 -07:00
2019-07-12 11:05:43 -07:00
2020-10-29 09:57:37 +01:00
2019-09-25 17:51:41 -07:00
2019-06-19 17:09:52 +02:00
2020-01-09 10:20:00 +01:00
2020-10-01 13:18:24 +02:00
2018-12-28 12:11:47 -08:00
2019-09-07 04:28:04 -03:00
2021-02-10 09:25:31 +01:00
2019-11-15 18:34:00 -08:00
2021-03-07 12:20:43 +01:00
2019-06-03 15:39:40 +02:00
2019-10-19 06:32:32 -04:00
2020-01-09 10:19:55 +01:00
2019-06-19 17:09:08 +02:00
2020-12-16 10:56:59 +01:00
2019-09-24 15:54:08 -07:00
2020-10-14 10:33:05 +02:00
2019-06-05 17:37:06 +02:00
2020-10-01 13:17:53 +02:00
2020-04-29 16:33:15 +02:00
2020-12-11 13:23:31 +01:00
2020-01-17 19:48:40 +01:00
2020-10-01 13:18:21 +02:00
2019-09-24 15:54:10 -07:00
2021-02-10 09:25:28 +01:00
2020-11-24 13:29:24 +01:00
2019-09-24 15:54:08 -07:00
2020-10-07 08:01:30 +02:00
2019-10-19 06:32:31 -04:00
2021-03-04 10:26:49 +01:00
2020-11-10 12:37:27 +01:00
2019-03-05 21:07:20 -08:00
2020-01-09 10:19:56 +01:00
2020-02-11 04:35:13 -08:00
2019-09-25 17:51:41 -07:00
2019-09-25 17:51:41 -07:00
2019-05-21 10:50:45 +02:00
2020-10-01 13:17:54 +02:00
2020-09-03 11:26:51 +02:00
2020-02-11 04:35:42 -08:00
2019-11-06 08:47:50 -08:00
2020-03-12 13:00:19 +01:00
2020-06-07 13:18:46 +02:00
2019-09-25 17:51:41 -07:00
2020-03-25 08:25:58 +01:00
2020-10-29 09:57:45 +01:00
2020-12-30 11:51:27 +01:00
2020-08-21 13:05:27 +02:00
2019-10-14 15:04:00 -07:00
2019-06-29 16:43:45 +08:00
2021-03-07 12:20:49 +01:00
2020-09-23 12:40:47 +02:00
2020-10-29 09:57:52 +01:00
2019-09-24 15:54:08 -07:00
2019-09-24 15:54:08 -07:00
2020-01-23 08:22:41 +01:00
2020-10-01 13:17:30 +02:00
2019-03-13 12:25:31 -07:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2020-09-23 12:40:45 +02:00
2018-10-09 16:51:11 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-10-19 06:32:32 -04:00
2019-06-05 17:37:17 +02:00
2020-05-20 08:20:03 +02:00
2020-09-03 11:26:51 +02:00
2019-05-14 19:52:48 -07:00
2020-07-29 10:18:44 +02:00
2020-01-23 08:22:40 +01:00
2019-11-06 08:47:50 -08:00
2019-10-07 15:47:20 -07:00
2021-01-30 13:54:09 +01:00
2019-07-18 17:08:07 -07:00
2020-04-01 11:02:03 +02:00
2020-10-01 13:18:08 +02:00
2019-09-25 17:51:41 -07:00
2021-03-07 12:20:49 +01:00
2019-10-19 06:32:33 -04:00
2019-09-17 15:20:17 -07:00
2019-06-19 17:09:53 +02:00
2020-06-17 16:40:23 +02:00
2018-09-13 15:18:04 -10:00
2020-09-03 11:26:52 +02:00
2019-10-07 15:47:19 -07:00
2020-10-01 13:17:53 +02:00
2019-11-06 08:47:50 -08:00
2019-08-13 16:06:52 -07:00
2019-10-07 15:47:19 -07:00
2019-05-21 10:50:45 +02:00
2019-09-24 15:54:12 -07:00
2021-03-07 12:20:49 +01:00
2019-09-24 15:54:12 -07:00