Linus Torvalds
d0b51bfb23
Revert "mm: shmem: don't truncate page if memory failure happens"
...
This reverts commit b9d02f1bdd98f38e6e5ecacc9786a8f58f3f8b2c.
The error handling of that patch was fundamentally broken, and it needs
to be entirely re-done.
For example, in shmem_write_begin() it would call shmem_getpage(), then
ignore the error return from that, and look at the page pointer contents
instead.
And in shmem_read_mapping_page_gfp(), the patch tested PageHWPoison() on
a page pointer that two lines earlier had potentially been set as an
error pointer.
These issues could be individually fixed, but when it has this many
issues, I'm just reverting it instead of waiting for fixes.
Link: https://lore.kernel.org/linux-mm/20211111084617.6746-1-ajaygargnsit@gmail.com/
Reported-by: Ajay Garg <ajaygargnsit@gmail.com>
Reported-by: Jens Axboe <axboe@kernel.dk>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-13 12:03:03 -08:00
..
2021-11-06 13:30:46 -07:00
2021-11-11 09:34:35 -08:00
2021-11-06 13:30:43 -07:00
2021-11-06 14:08:17 -07:00
2021-05-07 00:26:35 -07:00
2021-09-03 09:58:14 -07:00
2019-07-12 12:24:03 -07:00
2021-05-05 11:27:21 -07:00
2021-05-05 11:27:24 -07:00
2021-11-06 13:30:41 -07:00
2021-05-05 11:27:24 -07:00
2021-11-06 14:08:17 -07:00
2017-11-02 11:10:55 +01:00
2021-11-06 13:30:33 -07:00
2021-11-06 14:08:17 -07:00
2021-06-29 10:53:52 -07:00
2021-09-08 11:50:24 -07:00
2020-10-13 18:38:29 -07:00
2019-07-12 11:05:43 -07:00
2021-11-09 10:11:53 -08:00
2021-10-18 07:49:41 -04:00
2021-05-05 11:27:27 -07:00
2021-05-05 11:27:26 -07:00
2021-05-05 11:27:26 -07:00
2021-11-06 14:08:17 -07:00
2021-11-06 14:08:17 -07:00
2021-09-08 18:45:52 -07:00
2021-11-01 08:47:59 -07:00
2021-11-06 13:30:39 -07:00
2021-06-30 20:47:26 -07:00
2021-06-30 20:47:25 -07:00
2021-11-06 14:08:17 -07:00
2021-09-03 09:58:15 -07:00
2021-07-08 11:48:21 -07:00
2021-11-06 14:08:17 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2021-09-08 11:50:24 -07:00
2021-11-09 10:02:52 -08:00
2020-12-15 12:13:46 -08:00
2021-11-06 14:08:17 -07:00
2021-09-08 18:45:53 -07:00
2021-10-18 07:49:39 -04:00
2021-11-06 13:30:35 -07:00
2021-08-20 11:39:25 +01:00
2021-10-14 13:29:22 +02:00
2021-09-27 09:27:30 -04:00
2021-07-01 11:06:02 -07:00
2021-11-10 11:29:30 -08:00
2021-11-11 09:34:35 -08:00
2021-11-09 10:02:48 -08:00
2021-11-06 13:30:42 -07:00
2021-11-13 12:03:03 -08:00
2021-11-06 14:08:17 -07:00
2021-11-06 14:08:17 -07:00
2021-10-18 06:17:01 -06:00
2021-09-27 09:27:31 -04:00
2017-11-02 11:10:55 +01:00
2021-11-11 09:34:35 -08:00
2021-01-24 14:27:16 +01:00
2021-09-27 09:27:31 -04:00
2021-04-30 11:20:42 -07:00
2021-07-23 17:43:28 -07:00
2021-11-09 10:02:48 -08:00
2021-04-16 16:10:36 -07:00
2021-03-25 09:22:55 -07:00
2020-12-15 14:48:04 -08:00
2021-11-06 13:30:36 -07:00
2021-11-06 13:30:39 -07:00
2021-04-30 11:20:37 -07:00
2021-11-06 14:08:17 -07:00
2021-11-10 16:02:08 -08:00
2021-11-06 14:08:17 -07:00
2021-04-30 11:20:38 -07:00
2021-11-06 13:30:34 -07:00
2021-09-08 11:50:24 -07:00
2021-11-01 09:19:50 -07:00
2021-11-06 13:30:40 -07:00
2021-11-11 09:34:35 -08:00
2021-04-30 11:20:36 -07:00
2021-06-29 10:53:47 -07:00
2021-06-29 10:53:47 -07:00
2021-07-01 11:06:03 -07:00
2021-11-10 21:16:52 +00:00
2021-06-29 10:53:49 -07:00
2021-07-01 17:17:24 -07:00
2021-07-04 18:30:17 +00:00
2021-06-05 20:43:15 +00:00
2021-07-04 18:30:17 +00:00
2021-11-06 13:30:41 -07:00
2021-05-07 00:26:35 -07:00
2021-06-16 09:24:42 -07:00
2021-05-05 11:27:27 -07:00
2021-04-16 16:10:37 -07:00
2021-11-06 14:08:17 -07:00
2021-11-06 14:08:17 -07:00
2020-08-21 09:52:53 -07:00
2021-10-28 17:18:55 -07:00
2021-11-13 12:03:03 -08:00
2021-04-16 16:10:36 -07:00
2021-05-22 15:09:07 -10:00
2021-11-06 13:30:43 -07:00
2021-11-06 13:30:43 -07:00
2021-07-30 10:14:39 -07:00
2021-03-08 14:18:46 -08:00
2021-11-06 14:08:17 -07:00
2021-11-06 13:30:36 -07:00
2021-11-06 13:30:41 -07:00
2020-06-03 20:09:48 -07:00
2021-08-28 01:46:17 +02:00
2021-10-18 07:49:40 -04:00
2021-11-06 14:08:17 -07:00
2021-11-06 14:08:17 -07:00
2021-11-09 10:02:48 -08:00
2020-08-12 10:57:58 -07:00
2021-11-13 12:03:03 -08:00
2021-10-18 07:49:39 -04:00
2020-06-10 19:14:18 -07:00
2021-11-06 13:30:37 -07:00
2021-11-06 13:30:40 -07:00
2021-11-09 10:11:53 -08:00
2021-11-06 13:30:42 -07:00
2021-11-09 10:11:53 -08:00
2021-07-01 11:06:03 -07:00
2021-07-01 11:06:03 -07:00
2021-05-07 00:26:35 -07:00
2021-11-06 13:30:43 -07:00
2021-06-30 20:47:31 -07:00