Re: [PATCH 08/16] getrlimit.2: add information about calls affected by RLIMIT_MEMLOCK

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

 



On Sat, Jul 10, 2021 at 8:51 PM Alejandro Colomar (man-pages)
<alx.manpages@xxxxxxxxx> wrote:
> Could you please provide some background on the patch?
> Maybe add it to the commit message.
> I'd like to be able to review it :)

If I recall correctly, it has been conceived as part of effort to
debug [1], as it wasn't clear (to me) at the time, why the error
occurs; it turned out that the BPF memory, while checked against
per-process RLIMIT_MEMLOCK, accounted on per-user basis. I decided to
go on and find and document all the places the locked memory is
accounted and checked against the limit.

> Is the other patch (v2) you sent recently meant to replace this one,
> or to complement it?

The other patch is an independent one, so it complements it.

> Also, please see some comments below.

Thank you, I'll update the patch and send v2.

[1] https://github.com/strace/strace/issues/74

-- 
Eugene Syromyatnikov
mailto:evgsyr@xxxxxxxxx
xmpp:esyr@jabber.{ru|org}



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux