Files
kernel_arpi/include/linux
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
..
2018-11-14 10:56:33 -08:00
2018-10-16 11:13:50 +02:00
2019-03-29 12:24:41 -07:00
2019-02-28 09:16:12 +01:00
2012-10-08 13:50:20 +10:30
2019-03-18 10:44:48 -06:00
2019-03-18 07:07:30 +01:00
2019-02-28 03:28:53 -05:00
2018-01-01 12:40:27 -07:00
2019-03-12 18:59:17 -07:00
2017-08-07 17:22:14 +02:00
2019-02-28 08:24:23 -07:00
2019-03-12 10:04:02 -07:00
2019-03-05 21:07:16 -08:00
2019-03-12 10:04:00 -07:00
2019-03-09 19:52:47 -08:00
2018-03-26 08:53:43 -06:00
2018-11-07 13:42:32 -07:00
2019-02-24 08:20:17 -07:00
2018-04-12 09:41:19 -07:00
2019-03-07 18:32:03 -08:00
2019-01-04 13:13:48 -08:00
2018-06-07 17:34:39 -07:00
2019-03-15 15:29:47 -07:00
2019-02-08 15:02:49 -08:00
2019-03-05 21:07:19 -08:00
2017-11-09 10:23:28 +01:00
2018-09-18 17:52:15 -05:00
2019-03-03 21:47:57 -08:00
2019-03-12 10:04:03 -07:00
2018-08-02 17:33:06 -04:00
2019-01-07 16:38:26 +01:00
2019-02-25 21:20:45 +01:00
2018-09-25 20:17:35 -07:00
2019-03-15 15:29:47 -07:00
2019-04-05 16:02:30 -10:00
2018-02-06 18:32:47 -08:00
2019-02-26 12:53:55 +01:00
2017-08-15 09:02:08 -07:00