From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH v3 15/16] memcg: enable accounting for tty-related objects Date: Thu, 22 Apr 2021 13:50:59 +0200 Message-ID: References: Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619092262; bh=z3h6YeQAhM+sSuIksdggFIgSAlh6qSpvkJNTNnVlLNo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vYNMr2xWX/yND8JBq0t2hkwmg6pKsHfVnqELHfiuLEDxRGfVkIzHyjzbO6PEkyRKG /GTnVv4ea1HEVpVHzCeKw1dtdzypNko79NspvGYUild9WSNvvSPz4Ojv/2xmbGhDkg PSooLz/SMRl71Pi48iR81HwqtG62zwOG0dwEMvgU= Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Michal Hocko Cc: Vasily Averin , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Shakeel Butt , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Jiri Slaby On Thu, Apr 22, 2021 at 01:44:59PM +0200, Michal Hocko wrote: > 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. Can they? They are not bounded by some other resource limit? greg k-h