Hugh Dickins
b1454b463c
mm: mlock: avoid folio_within_range() on KSM pages
...
Since commit dc68badcede4 ("mm: mlock: update mlock_pte_range to handle
large folio") I've just occasionally seen VM_WARN_ON_FOLIO(folio_test_ksm)
warnings from folio_within_range(), in a splurge after testing with KSM
hyperactive.
folio_referenced_one()'s use of folio_within_vma() is safe because it
checks folio_test_large() first; but allow_mlock_munlock() needs to do the
same to avoid those warnings (or check !folio_test_ksm() itself? Or move
either check into folio_within_range()? Hard to tell without more
examples of its use).
Link: https://lkml.kernel.org/r/23852f6a-5bfa-1ffd-30db-30c5560ad426@google.com
Fixes: dc68badcede4 ("mm: mlock: update mlock_pte_range to handle large folio")
Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Cc: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Stefan Roesch <shr@devkernel.io>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-10-25 16:47:14 -07:00
..
2023-10-18 14:34:19 -07:00
2023-10-18 14:34:17 -07:00
2023-09-08 12:16:52 -07:00
2023-10-25 16:47:10 -07:00
2023-08-21 13:37:48 -07:00
2022-08-02 12:34:03 -04:00
2023-10-25 16:47:13 -07:00
2022-09-11 20:25:50 -07:00
2023-03-28 16:20:06 -07:00
2023-10-04 10:32:29 -07:00
2022-03-22 15:57:09 -07:00
2023-10-04 10:32:19 -07:00
2023-06-09 16:25:23 -07:00
2023-10-25 16:47:14 -07:00
2023-06-09 16:25:31 -07:00
2023-04-05 19:42:38 -07:00
2023-06-09 16:25:17 -07:00
2023-06-09 16:25:56 -07:00
2023-06-23 16:59:31 -07:00
2023-06-09 16:25:23 -07:00
2022-11-22 18:50:44 -08:00
2023-10-18 14:34:19 -07:00
2023-07-24 18:04:30 -04:00
2023-06-23 16:58:19 -07:00
2022-11-08 17:37:15 -08:00
2023-10-18 14:34:15 -07:00
2023-06-19 16:19:25 -07:00
2023-08-21 13:07:20 -07:00
2023-10-25 16:47:12 -07:00
2023-10-18 14:34:17 -07:00
2023-10-25 16:47:08 -07:00
2023-10-25 16:47:14 -07:00
2023-10-25 16:47:08 -07:00
2022-10-03 14:03:05 -07:00
2023-08-21 13:37:46 -07:00
2023-10-25 16:47:14 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2023-08-18 10:12:36 -07:00
2023-10-25 16:47:10 -07:00
2023-05-29 16:14:28 +01:00
2023-10-25 16:47:14 -07:00
2023-10-25 16:47:13 -07:00
2023-10-16 15:44:39 -07:00
2022-06-16 19:48:31 -07:00
2023-04-12 17:36:23 -07:00
2023-10-18 14:34:19 -07:00
2023-10-04 10:32:23 -07:00
2023-08-24 16:20:30 -07:00
2023-10-04 10:32:30 -07:00
2023-10-25 16:47:14 -07:00
2023-10-04 10:32:22 -07:00
2023-10-25 16:47:14 -07:00
2023-10-04 10:32:20 -07:00
2023-10-16 15:44:39 -07:00
2023-10-25 16:47:13 -07:00
2023-10-18 14:34:18 -07:00
2022-11-30 15:58:41 -08:00
2023-02-09 16:51:46 -08:00
2023-08-21 13:37:47 -07:00
2023-08-31 12:20:12 -07:00
2023-10-25 16:47:14 -07:00
2023-08-21 13:07:20 -07:00
2023-10-25 16:47:14 -07:00
2023-10-04 10:32:30 -07:00
2022-10-03 14:02:43 -07:00
2021-07-23 17:43:28 -07:00
2023-10-25 16:47:14 -07:00
2023-08-24 16:20:30 -07:00
2023-08-18 10:12:41 -07:00
2023-10-25 16:47:13 -07:00
2023-10-25 16:47:12 -07:00
2023-10-18 14:34:18 -07:00
2022-09-26 19:46:25 -07:00
2023-10-18 14:34:18 -07:00
2023-10-25 16:47:10 -07:00
2023-10-25 16:47:14 -07:00
2022-09-11 20:26:01 -07:00
2023-08-18 10:12:31 -07:00
2023-01-18 17:12:52 -08:00
2023-10-04 10:32:27 -07:00
2023-08-18 10:12:39 -07:00
2023-10-18 14:34:19 -07:00
2023-08-21 13:37:30 -07:00
2023-04-05 19:42:46 -07:00
2021-06-29 10:53:47 -07:00
2023-08-24 16:20:18 -07:00
2023-08-18 10:12:13 -07:00
2023-10-18 14:34:17 -07:00
2023-09-02 08:39:21 -07:00
2023-06-19 16:19:29 -07:00
2021-07-04 18:30:17 +00:00
2022-03-08 09:30:46 -05:00
2021-07-04 18:30:17 +00:00
2023-10-25 16:47:11 -07:00
2021-05-07 00:26:35 -07:00
2023-08-18 10:12:25 -07:00
2023-06-09 16:25:25 -07:00
2023-06-19 16:19:24 -07:00
2023-07-24 18:04:30 -04:00
2023-10-18 14:34:14 -07:00
2022-10-03 14:03:05 -07:00
2023-08-21 13:38:02 -07:00
2023-08-09 09:15:40 +02:00
2023-10-18 14:34:19 -07:00
2023-10-04 10:32:19 -07:00
2023-10-04 10:32:26 -07:00
2023-10-04 10:32:26 -07:00
2022-10-03 14:03:07 -07:00
2023-04-05 19:42:46 -07:00
2023-09-29 12:10:12 -07:00
2023-07-18 10:07:47 +02:00
2023-10-25 16:47:11 -07:00
2023-07-14 09:57:21 +02:00
2023-08-18 10:12:53 -07:00
2023-08-18 10:12:14 -07:00
2022-10-03 14:03:36 -07:00
2022-10-03 14:02:46 -07:00
2023-10-25 16:47:11 -07:00
2023-06-23 16:59:30 -07:00
2023-08-24 16:20:16 -07:00
2023-08-24 16:20:28 -07:00
2023-08-29 14:25:26 -07:00
2023-04-12 17:36:23 -07:00
2023-08-31 12:20:12 -07:00
2023-10-25 16:47:09 -07:00
2023-09-29 17:20:47 -07:00
2023-08-16 12:21:32 +01:00
2023-10-18 14:34:14 -07:00
2023-10-25 16:47:10 -07:00
2023-10-04 10:32:24 -07:00
2023-08-21 13:37:51 -07:00
2023-06-19 16:19:27 -07:00
2023-06-19 16:19:27 -07:00
2023-10-18 14:34:16 -07:00
2023-10-18 12:12:40 -07:00