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