Mikulas Patocka
0b1f2f8954
dm crypt: account large pages in cc->n_allocated_pages
...
commit 9793c269da6cd339757de6ba5b2c8681b54c99af upstream.
The commit 5054e778fc ("dm crypt: allocate compound pages if
possible") changed dm-crypt to use compound pages to improve
performance. Unfortunately, there was an oversight: the allocation of
compound pages was not accounted at all. Normal pages are accounted in
a percpu counter cc->n_allocated_pages and dm-crypt is limited to
allocate at most 2% of memory. Because compound pages were not
accounted at all, dm-crypt could allocate memory over the 2% limit.
Fix this by adding the accounting of compound pages, so that memory
consumption of dm-crypt is properly limited.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com >
Fixes: 5054e778fc ("dm crypt: allocate compound pages if possible")
Cc: stable@vger.kernel.org # v6.5+
Signed-off-by: Mike Snitzer <snitzer@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2023-11-28 17:19:58 +00:00
..
2023-06-28 16:08:19 -06:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:06 -05:00
2021-10-27 16:53:47 -04:00
2023-03-30 15:57:51 -04:00
2023-03-30 15:57:51 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-27 16:06:54 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-19 13:19:33 -07:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-07-25 11:55:50 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-12 08:04:05 -06:00
2021-04-19 13:20:31 -04:00
2020-03-27 14:42:51 -04:00
2023-06-12 08:04:05 -06:00
2023-09-14 11:18:29 -04:00
2023-11-28 17:19:58 +00:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:09:08 -04:00
2023-06-12 08:04:05 -06:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-06-16 18:24:13 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2023-06-05 10:57:40 -06:00
2023-07-25 11:55:50 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:01:01 -04:00
2023-09-14 11:18:29 -04:00
2023-04-11 12:01:01 -04:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:01:01 -04:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:01:01 -04:00
2023-08-29 20:21:42 -07:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:01:01 -04:00
2023-02-14 14:23:07 -05:00
2023-06-12 08:04:05 -06:00
2023-03-16 13:37:06 -04:00
2023-03-16 13:37:06 -04:00
2023-04-11 12:01:01 -04:00
2023-04-11 12:09:08 -04:00
2023-02-14 14:23:08 -05:00
2023-09-14 11:18:29 -04:00
2023-04-11 12:01:01 -04:00
2023-06-30 12:16:00 -07:00
2023-02-14 14:23:06 -05:00
2023-06-30 12:16:00 -07:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2023-06-12 08:04:05 -06:00
2023-02-14 14:23:06 -05:00
2023-06-28 10:43:04 -07:00
2023-06-12 08:04:05 -06:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-02-14 14:23:06 -05:00
2023-04-11 12:09:08 -04:00
2023-04-11 12:09:08 -04:00
2023-06-16 18:24:13 -04:00
2023-05-31 09:50:02 -06:00
2021-06-04 12:07:24 -04:00
2023-09-20 13:48:06 -04:00
2022-07-14 12:14:31 -06:00
2023-09-15 15:39:59 -04:00
2023-06-16 18:24:14 -04:00
2023-08-02 09:13:09 -06:00
2022-08-02 14:38:59 -07:00
2023-06-05 10:56:46 -06:00
2023-07-27 00:13:30 -07:00
2023-07-27 00:13:29 -07:00
2023-08-15 09:40:26 -07:00
2018-10-18 09:36:35 -07:00
2023-07-27 00:13:30 -07:00
2023-07-27 00:13:30 -07:00
2020-05-13 12:02:23 -07:00
2023-07-27 00:13:29 -07:00
2018-05-30 15:33:32 -06:00
2023-11-28 17:19:39 +00:00
2023-09-08 13:16:40 -07:00
2023-08-17 21:11:31 -07:00
2023-06-30 15:43:50 -07:00
2023-06-23 09:33:16 -07:00
2023-09-11 14:41:58 -07:00
2023-07-27 00:13:29 -07:00
2023-08-15 09:40:27 -07:00
2022-08-02 17:14:31 -06:00
2023-05-31 09:50:02 -06:00
2023-10-03 08:53:09 -07:00
2023-06-27 21:24:18 -07:00
2023-08-15 09:40:26 -07:00
2023-07-27 00:13:29 -07:00