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