From: Michal Hocko Subject: Re: [PATCH v3 15/16] memcg: enable accounting for tty-related objects Date: Thu, 22 Apr 2021 13:44:59 +0200 Message-ID: References: Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1619091900; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jMEV+geuzllYzFQ8Z/TUZlHiYsSrdySAp1JVDStV2gA=; b=r/6dqE5AP0rYw1YYAbFz66SiZuRW/+7cE1RXdpAHrLWoronP+/qPsCjXgmrL962Qs0ddgu ILhPw+2qe/6j93/kY2gJ/q88mYATZKVh8IkYgfpCDb8H9J+sKBBw53rbMStq9WBppnAcWO RTLcfE1HrMLwb00nEW69gDg40l4Ie6w= Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Greg Kroah-Hartman Cc: Vasily Averin , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Shakeel Butt , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Jiri Slaby On Thu 22-04-21 13:23:21, Greg KH wrote: > On Thu, Apr 22, 2021 at 01:37:53PM +0300, Vasily Averin wrote: > > At each login the user forces the kernel to create a new terminal and > > allocate up to ~1Kb memory for the tty-related structures. > > Does this tiny amount of memory actually matter? The primary question is whether an untrusted user can trigger an unbounded amount of these allocations. -- Michal Hocko SUSE Labs