Al Viro
8cafd7266f
__legitimize_mnt(): check for MNT_SYNC_UMOUNT should be under mount_lock
...
[ Upstream commit 250cf36930 ]
... or we risk stealing final mntput from sync umount - raising mnt_count
after umount(2) has verified that victim is not busy, but before it
has set MNT_SYNC_UMOUNT; in that case __legitimize_mnt() doesn't see
that it's safe to quietly undo mnt_count increment and leaves dropping
the reference to caller, where it'll be a full-blown mntput().
Check under mount_lock is needed; leaving the current one done before
taking that makes no sense - it's nowhere near common enough to bother
with.
Reviewed-by: Christian Brauner <brauner@kernel.org >
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-05-29 11:03:13 +02:00
..
2025-04-10 14:39:32 +02:00
2024-10-02 17:23:23 -04:00
2025-04-10 14:39:29 +02:00
2025-03-07 18:25:29 +01:00
2024-10-28 13:16:56 +01:00
2025-05-09 09:50:49 +02:00
2025-05-29 11:03:12 +02:00
2025-01-23 17:22:55 +01:00
2025-05-02 07:58:58 +02:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2025-05-29 11:02:14 +02:00
2024-10-02 17:23:23 -04:00
2024-12-27 14:02:07 +01:00
2024-12-05 14:01:10 +01:00
2025-05-29 11:02:16 +02:00
2025-05-29 11:02:03 +02:00
2025-05-29 11:02:58 +02:00
2025-05-29 11:03:00 +02:00
2024-10-17 00:28:06 -07:00
2025-05-29 11:02:03 +02:00
2025-05-29 11:02:24 +02:00
2025-04-25 10:47:52 +02:00
2025-04-25 10:47:52 +02:00
2025-04-10 14:39:25 +02:00
2024-10-02 17:23:23 -04:00
2024-12-27 14:02:20 +01:00
2025-05-02 07:59:27 +02:00
2025-04-25 10:47:52 +02:00
2025-05-29 11:02:16 +02:00
2024-12-14 20:04:14 +01:00
2025-04-20 10:15:19 +02:00
2024-10-02 17:23:23 -04:00
2025-05-02 07:59:26 +02:00
2025-05-29 11:02:08 +02:00
2025-02-08 09:57:59 +01:00
2025-04-25 10:47:51 +02:00
2025-02-17 10:05:39 +01:00
2024-10-02 17:23:23 -04:00
2025-01-17 13:40:46 +01:00
2025-05-02 07:59:17 +02:00
2025-05-29 11:02:00 +02:00
2025-05-29 11:02:28 +02:00
2025-04-25 10:47:53 +02:00
2025-04-10 14:39:26 +02:00
2025-05-29 11:02:58 +02:00
2025-01-23 17:22:55 +01:00
2024-12-09 10:40:55 +01:00
2024-10-02 17:23:23 -04:00
2025-05-29 11:03:11 +02:00
2024-10-30 20:14:12 -07:00
2024-11-01 08:38:14 -04:00
2025-02-08 09:58:01 +01:00
2025-05-22 14:29:44 +02:00
2024-10-02 00:05:09 -04:00
2024-12-14 20:04:13 +01:00
2025-03-22 12:54:15 -07:00
2025-05-02 07:59:29 +02:00
2024-10-02 12:02:15 -07:00
2024-10-16 13:17:45 +02:00
2024-12-05 14:02:50 +01:00
2025-05-22 14:29:35 +02:00
2025-02-17 10:05:04 +01:00
2024-12-05 14:02:50 +01:00
2025-05-29 11:02:00 +02:00
2025-03-13 13:02:01 +01:00
2024-10-07 13:51:47 +02:00
2024-12-27 14:02:20 +01:00
2025-04-10 14:39:40 +02:00
2024-12-05 14:02:47 +01:00
2025-02-08 09:56:50 +01:00
2025-04-20 10:15:10 +02:00
2025-01-17 13:40:33 +01:00
2024-09-27 08:18:43 -07:00
2024-10-09 12:47:18 -07:00
2025-04-25 10:47:50 +02:00
2025-03-28 22:03:28 +01:00
2024-09-24 15:29:42 -07:00
2025-01-17 13:40:50 +01:00
2025-01-17 13:40:33 +01:00
2025-03-22 12:54:20 -07:00
2025-05-29 11:03:13 +02:00
2024-09-27 08:18:43 -07:00
2024-10-10 12:09:03 +02:00
2025-05-29 11:02:09 +02:00
2024-09-27 08:18:43 -07:00
2024-12-05 14:01:11 +01:00
2025-02-08 09:56:53 +01:00
2025-05-02 07:59:04 +02:00
2024-10-21 14:30:26 +02:00
2025-05-18 08:24:52 +02:00
2025-05-22 14:29:34 +02:00