On 4/22/21 2:50 PM, Greg Kroah-Hartman wrote: > 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? I'm not ready to provide usecase right now, but on the other hand I do not see any related limits. Let me take time out to dig this question. Thank you, Vasily Averin