Liam R. Howlett
606c812eb1
mm/mmap: Fix error path in do_vmi_align_munmap()
...
The error unrolling was leaving the VMAs detached in many cases and
leaving the locked_vm statistic altered, and skipping the unrolling
entirely in the case of the vma tree write failing.
Fix the error path by re-attaching the detached VMAs and adding the
necessary goto for the failed vma tree write, and fix the locked_vm
statistic by only updating after the vma tree write succeeds.
Fixes: 763ecb035029 ("mm: remove the vma linked list")
Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2023-06-18 09:32:17 -07:00
..
2023-06-12 11:31:52 -07:00
2023-05-02 17:23:27 -07:00
2023-05-17 15:24:33 -07:00
2023-04-18 16:30:11 -07:00
2023-04-27 19:42:02 -07:00
2022-08-02 12:34:03 -04:00
2022-08-28 14:02:45 -07:00
2022-09-11 20:25:50 -07:00
2023-03-28 16:20:06 -07:00
2023-04-05 19:42:52 -07:00
2022-03-22 15:57:09 -07:00
2023-04-27 19:42:02 -07:00
2023-04-05 19:42:46 -07:00
2023-03-28 16:20:09 -07:00
2023-04-05 19:42:38 -07:00
2023-05-06 10:33:38 -07:00
2022-03-22 15:57:11 -07:00
2023-01-18 17:12:57 -08:00
2022-11-22 18:50:44 -08:00
2023-06-12 11:31:52 -07:00
2023-04-27 19:42:02 -07:00
2022-09-26 12:14:34 -07:00
2023-06-12 11:31:51 -07:00
2022-11-08 17:37:15 -08:00
2023-05-03 10:37:22 -07:00
2022-10-12 18:51:51 -07:00
2023-01-18 17:12:39 -08:00
2023-04-21 14:52:03 -07:00
2023-02-13 15:54:27 -08:00
2023-04-18 16:29:54 -07:00
2022-08-08 18:06:43 -07:00
2023-04-27 19:42:02 -07:00
2022-10-03 14:03:05 -07:00
2023-04-30 13:00:38 -07:00
2023-04-21 14:52:02 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2022-06-27 12:22:31 +01:00
2023-04-27 19:42:02 -07:00
2023-05-29 16:14:28 +01:00
2023-04-27 13:42:16 -07:00
2023-02-16 20:43:49 -08:00
2023-05-02 17:21:50 -07:00
2022-06-16 19:48:31 -07:00
2023-04-12 17:36:23 -07:00
2023-04-28 09:43:49 -07:00
2023-04-27 19:42:02 -07:00
2023-02-02 22:32:54 -08:00
2023-04-18 16:29:42 -07:00
2023-04-18 16:30:09 -07:00
2023-04-18 16:30:11 -07:00
2023-04-18 16:29:42 -07:00
2023-04-27 19:42:02 -07:00
2023-02-09 16:51:40 -08:00
2023-04-21 14:52:04 -07:00
2023-05-02 17:23:27 -07:00
2022-11-30 15:58:41 -08:00
2023-02-09 16:51:46 -08:00
2023-04-05 19:42:55 -07:00
2023-02-20 12:46:17 -08:00
2023-04-28 09:43:49 -07:00
2023-04-05 19:42:42 -07:00
2023-04-18 16:29:53 -07:00
2023-04-18 16:30:09 -07:00
2022-10-03 14:02:43 -07:00
2021-07-23 17:43:28 -07:00
2023-06-18 09:32:17 -07:00
2023-03-28 16:20:16 -07:00
2023-02-02 22:32:54 -08:00
2022-09-26 19:46:09 -07:00
2023-04-18 16:29:53 -07:00
2023-04-05 20:02:58 -07:00
2022-09-26 19:46:25 -07:00
2023-04-05 19:42:57 -07:00
2023-02-02 22:32:54 -08:00
2023-05-04 13:09:43 -07:00
2022-09-11 20:26:01 -07:00
2023-02-02 22:33:22 -08:00
2023-01-18 17:12:52 -08:00
2023-02-23 17:09:35 -08:00
2023-04-05 19:42:46 -07:00
2023-04-05 19:42:46 -07:00
2021-04-30 11:20:36 -07:00
2023-04-05 19:42:46 -07:00
2021-06-29 10:53:47 -07:00
2023-05-29 16:14:28 +01:00
2023-01-18 17:12:39 -08:00
2023-03-28 16:20:14 -07:00
2023-01-18 17:12:39 -08:00
2023-02-16 20:43:55 -08: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-02-16 20:43:56 -08:00
2021-05-07 00:26:35 -07:00
2023-03-28 16:20:12 -07:00
2022-11-25 13:01:55 -05:00
2022-09-03 10:13:13 -07:00
2023-02-02 22:33:21 -08:00
2023-04-27 13:42:16 -07:00
2022-10-03 14:03:05 -07:00
2023-02-23 17:09:35 -08:00
2023-04-27 19:42:02 -07:00
2023-05-17 15:24:33 -07:00
2022-10-03 14:03:07 -07:00
2023-04-05 19:42:46 -07:00
2023-03-29 10:35:41 +02:00
2023-04-18 16:30:10 -07:00
2023-04-27 19:42:02 -07:00
2023-04-27 19:42:02 -07:00
2023-04-18 16:30:09 -07:00
2023-04-21 14:52:05 -07:00
2022-10-03 14:03:36 -07:00
2022-10-03 14:02:46 -07:00
2023-04-05 19:42:42 -07:00
2023-04-16 10:41:24 -07:00
2023-02-02 22:33:33 -08:00
2023-04-16 12:31:58 -07:00
2023-04-05 19:42:42 -07:00
2023-04-12 17:36:23 -07:00
2023-04-21 14:52:02 -07:00
2023-04-08 13:45:37 -07:00
2023-04-18 16:29:48 -07:00
2021-11-06 13:30:40 -07:00
2023-05-17 15:24:33 -07:00
2023-04-05 20:03:01 -07:00
2023-04-18 16:30:11 -07:00
2023-01-18 17:12:57 -08:00
2022-12-11 18:12:10 -08:00
2023-04-13 13:13:54 -07:00
2023-05-17 15:24:33 -07:00
2023-06-12 11:31:52 -07:00