Re: [syzbot] WARNING: refcount bug in memfd_secret

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux