APPLIED [I]: Re: [SRU Focal/Hirsute/Impish/hwe-5.8/oem-5.10/oem-5.13 1/1] memcg: enable accounting of ipc resources

Paolo Pisati paolo.pisati at
Wed Oct 13 11:14:52 UTC 2021

On Tue, Sep 28, 2021 at 03:56:47PM -0300, Thadeu Lima de Souza Cascardo wrote:
> From: Vasily Averin <vvs at>
> When user creates IPC objects it forces kernel to allocate memory for
> these long-living objects.
> It makes sense to account them to restrict the host's memory consumption
> from inside the memcg-limited container.
> This patch enables accounting for IPC shared memory segments, messages
> semaphores and semaphore's undo lists.
> Link:
> Signed-off-by: Vasily Averin <vvs at>
> Reviewed-by: Shakeel Butt <shakeelb at>
> Cc: Alexander Viro <viro at>
> Cc: Alexey Dobriyan <adobriyan at>
> Cc: Andrei Vagin <avagin at>
> Cc: Borislav Petkov <bp at>
> Cc: Borislav Petkov <bp at>
> Cc: Christian Brauner <christian.brauner at>
> Cc: Dmitry Safonov <0x7f454c46 at>
> Cc: "Eric W. Biederman" <ebiederm at>
> Cc: Greg Kroah-Hartman <gregkh at>
> Cc: "H. Peter Anvin" <hpa at>
> Cc: Ingo Molnar <mingo at>
> Cc: "J. Bruce Fields" <bfields at>
> Cc: Jeff Layton <jlayton at>
> Cc: Jens Axboe <axboe at>
> Cc: Jiri Slaby <jirislaby at>
> Cc: Johannes Weiner <hannes at>
> Cc: Kirill Tkhai <ktkhai at>
> Cc: Michal Hocko <mhocko at>
> Cc: Oleg Nesterov <oleg at>
> Cc: Roman Gushchin <guro at>
> Cc: Serge Hallyn <serge at>
> Cc: Tejun Heo <tj at>
> Cc: Thomas Gleixner <tglx at>
> Cc: Vladimir Davydov < at>
> Cc: Yutian Yang <nglaive at>
> Cc: Zefan Li <lizefan.x at>
> Signed-off-by: Andrew Morton <akpm at>
> Signed-off-by: Linus Torvalds <torvalds at>
> (backported from commit 18319498fdd4cdf8c1c2c48cd432863b1f915d6f)
> [cascardo: some kvmalloc were replaced by kmalloc]
> CVE-2021-3759
> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at>


More information about the kernel-team mailing list