On Wed, Dec 11, 2024 at 11:55:37AM +0100, Miklos Szeredi wrote: > On Wed, 11 Dec 2024 at 11:34, Christian Brauner <brauner@xxxxxxxxxx> wrote: > > > For that the caller has to exit or switch to another mount namespace. > > But that can only happen when all notifications have been registered. > > I may misunderstand what you mean though. > > Ah, umount can only be done by a task that is in the namespace of the > mount. I cannot find a hole in that logic, but it does seem rather Currently... I have a finished patch series that allows unmounting by mount id including support for unmounting mounts in other namespaces without requiring setns(). That's sitting in my tree since v6.11-rc1. I should get that out.