Linus Torvalds
6b3a707736
Merge branch 'page-refs' (page ref overflow)
...
Merge page ref overflow branch.
Jann Horn reported that he can overflow the page ref count with
sufficient memory (and a filesystem that is intentionally extremely
slow).
Admittedly it's not exactly easy. To have more than four billion
references to a page requires a minimum of 32GB of kernel memory just
for the pointers to the pages, much less any metadata to keep track of
those pointers. Jann needed a total of 140GB of memory and a specially
crafted filesystem that leaves all reads pending (in order to not ever
free the page references and just keep adding more).
Still, we have a fairly straightforward way to limit the two obvious
user-controllable sources of page references: direct-IO like page
references gotten through get_user_pages(), and the splice pipe page
duplication. So let's just do that.
* branch page-refs:
fs: prevent page refcount overflow in pipe_buf_get
mm: prevent get_user_pages() from overflowing page refcount
mm: add 'try_get_page()' helper function
mm: make page ref count overflow check tighter and more explicit
2019-04-14 15:09:40 -07:00
..
2019-02-26 11:23:49 +00:00
2019-03-20 16:27:40 +01:00
2019-02-15 17:17:57 +01:00
2019-03-06 09:41:12 -08:00
2019-03-21 12:30:54 +01:00
2019-03-06 20:34:20 -06:00
2019-03-08 10:02:58 -08:00
2019-03-29 12:24:41 -07:00
2019-02-28 09:16:12 +01:00
2019-02-25 09:28:54 +01:00
2019-03-01 14:28:43 +01:00
2019-04-13 14:33:56 -07:00
2019-03-03 23:45:27 +00:00
2019-03-29 10:01:37 -07:00
2019-04-11 15:41:14 -04:00
2019-03-01 20:53:41 +01:00
2019-03-16 13:05:32 -07:00
2019-03-15 11:25:48 -07:00
2019-03-05 21:07:21 -08:00
2019-03-05 21:07:14 -08:00
2019-04-08 08:19:41 -06:00
2019-03-07 18:32:00 -08:00
2019-04-05 16:02:30 -10:00
2019-03-18 10:44:48 -06:00
2019-04-10 09:57:33 -06:00
2019-03-20 14:02:07 -06:00
2019-03-13 12:04:35 -07:00
2019-03-08 21:17:07 +01:00
2019-03-13 12:04:35 -07:00
2019-03-26 11:24:47 -07:00
2019-03-07 18:31:59 -08:00
2019-04-08 08:19:41 -06:00
2019-03-07 12:20:11 -08:00
2019-03-07 10:11:41 -08:00
2019-02-22 00:11:47 -08:00
2019-03-05 21:07:20 -08:00
2019-02-15 19:52:17 +01:00
2019-02-19 13:20:35 +01:00
2019-02-23 12:13:45 +01:00
2019-03-07 18:32:01 -08:00
2019-03-05 14:53:50 -05:00
2019-03-18 07:07:30 +01:00
2019-03-10 12:47:57 -07:00
2019-03-07 18:32:00 -08:00
2019-03-10 10:17:23 -07:00
2019-02-28 03:28:53 -05:00
2019-02-22 12:55:31 -08:00
2019-02-24 17:33:59 -08:00
2019-03-12 18:59:17 -07:00
2019-02-19 10:10:05 +01:00
2019-02-28 08:24:23 -07:00
2019-03-06 07:59:36 -08:00
2019-03-05 21:07:18 -08:00
2019-02-28 03:29:37 -05:00
2019-02-28 03:28:53 -05:00
2019-04-06 07:01:55 -10:00
2019-02-18 12:41:16 +01:00
2019-03-12 10:04:02 -07:00
2019-03-05 21:07:16 -08:00
2019-02-15 16:54:38 +01:00
2019-03-12 10:04:00 -07:00
2019-03-29 10:01:37 -07:00
2019-02-24 14:43:22 +01:00
2019-02-22 12:56:24 -08:00
2019-03-09 19:52:47 -08:00
2019-02-23 10:53:31 +01:00
2019-02-24 08:20:17 -07:00
2019-03-01 11:24:51 +01:00
2019-03-03 21:05:10 -08:00
2019-03-21 11:52:37 +01:00
2019-02-23 10:53:31 +01:00
2019-03-08 10:09:53 -08:00
2019-03-05 21:07:13 -08:00
2019-03-28 10:58:28 +01:00
2019-03-04 13:42:05 +01:00
2019-04-03 11:43:49 +02:00
2019-03-12 14:08:19 -07:00
2019-02-15 14:12:09 -08:00
2019-03-05 21:07:15 -08:00
2019-03-06 08:14:05 -08:00
2019-02-20 22:48:50 +01:00
2019-03-16 13:05:32 -07:00
2019-03-07 18:31:59 -08:00
2019-03-29 10:01:37 -07:00
2019-02-28 07:55:53 +01:00
2019-03-12 14:08:19 -07:00
2019-03-07 18:32:03 -08:00
2019-02-24 17:45:25 -08:00
2019-02-18 16:43:54 -08:00
2019-03-12 10:04:02 -07:00
2019-04-05 16:02:31 -10:00
2019-03-11 17:08:14 -07:00
2019-03-27 22:49:06 -07:00
2019-04-05 16:02:31 -10:00
2019-04-14 15:09:40 -07:00
2019-03-05 21:07:21 -08:00
2019-03-10 13:16:37 -07:00
2019-03-09 09:56:17 -08:00
2019-03-15 15:29:47 -07:00
2019-02-16 13:45:01 -08:00
2019-03-02 12:54:35 -08:00
2019-03-01 16:20:16 -05:00
2019-03-01 16:20:16 -05:00
2019-02-20 15:14:20 -05:00
2019-03-01 16:20:16 -05:00
2019-03-05 21:07:20 -08:00
2019-02-20 07:22:17 -07:00
2019-02-20 07:22:17 -07:00
2019-02-20 07:22:19 -07:00
2019-02-20 07:22:10 -07:00
2019-04-11 17:28:30 +02:00
2019-02-28 11:40:49 -06:00
2019-03-05 21:07:19 -08:00
2019-03-29 10:01:37 -07:00
2019-03-15 11:21:25 -07:00
2019-03-25 14:49:00 -07:00
2019-02-28 11:09:29 +01:00
2019-03-10 12:29:52 -07:00
2019-02-28 07:55:37 +01:00
2019-02-28 08:29:50 +01:00
2019-03-03 21:47:57 -08:00
2019-02-24 12:39:45 -08:00
2019-03-07 18:31:59 -08:00
2019-04-14 15:09:40 -07:00
2019-03-08 10:09:53 -08:00
2019-03-06 12:59:46 -08:00
2019-02-20 11:18:07 +01:00
2019-03-12 09:43:00 +01:00
2019-03-07 11:23:17 +01:00
2019-03-12 10:04:03 -07:00
2019-02-20 00:33:08 +01:00
2019-03-09 09:22:42 -08:00
2019-03-05 17:03:53 +01:00
2019-02-17 15:53:01 -08:00
2019-04-04 09:17:15 -04:00
2019-03-07 18:32:03 -08:00
2019-02-20 21:34:17 -08:00
2019-02-22 13:49:00 +01:00
2019-03-13 09:46:10 -04:00
2019-02-25 21:20:45 +01:00
2019-03-22 11:01:02 -06:00
2019-03-07 12:20:11 -08:00
2019-03-12 14:08:19 -07:00
2019-03-05 21:07:18 -08:00
2019-03-11 08:54:01 -07:00
2019-03-29 10:01:37 -07:00
2019-03-05 21:07:14 -08:00
2019-03-15 15:29:47 -07:00
2019-04-05 16:02:30 -10:00
2019-03-14 14:36:20 -07:00
2019-03-10 12:47:57 -07:00
2019-03-16 13:47:14 -07:00
2019-02-28 13:49:29 +01:00
2019-03-07 18:31:59 -08:00
2019-03-23 10:25:12 -07:00
2019-03-28 01:55:18 +09:00
2019-03-07 10:34:37 +01:00
2019-03-06 11:19:57 -05:00
2019-02-24 12:06:19 -08:00
2019-04-08 17:05:52 -04:00
2019-03-06 11:19:15 -05:00
2019-02-26 12:53:55 +01:00
2019-03-07 08:46:07 -08:00
2019-03-06 14:52:48 -08:00
2019-02-20 17:08:54 -05:00