Messages in this thread | | | From | Linus Torvalds <> | Date | Mon, 25 Oct 2021 10:00:22 -0700 | Subject | Re: [syzbot] WARNING: refcount bug in memfd_secret |
| |
On Sun, Oct 24, 2021 at 1:10 PM Matthew Wilcox <willy@infradead.org> 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
| |