On Sun, Oct 24, 2021 at 1:10 PM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote: > > I agree with you and suggested that if anybody really cares (I mean, > you need a multi-TB machine to produce this problem) that we simply do > what we did with the page refcount: Ack. That looks like the right thing to do. > + if (atomic_read(&secretmem_users) < 0) > + return -ENFILE; If somebody sends me a proper patch with a sign-off etc, I'll happily apply that two-liner. Hint hint. Linus