Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp85920imu; Thu, 8 Nov 2018 05:26:19 -0800 (PST) X-Google-Smtp-Source: AJdET5f0Z8Hwa5iG8jX23PpsBWV/GlRO0AXNga/RpyDVPw4A/TWVejIFGMtKG1KYOTqPv+2JY3D1 X-Received: by 2002:a63:1d10:: with SMTP id d16-v6mr3668645pgd.228.1541683579871; Thu, 08 Nov 2018 05:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541683579; cv=none; d=google.com; s=arc-20160816; b=rbW/WIahshTPjbndTUWHbJJp1JsSR8IPmPjwhVH5jGpIzNzgT/uQHI4rCq2CJs2V5D P792IFghy9DR6WjVuTv5EolNujVEUlBq4U6+mbTU2ELZiI+FTfwZIWSRyXyNnnxXNR9O TouzqQeA4CUuLB5rmtoVrxyrqXqlB6sp/a7j1NwxE7BlIY2Nb4oDgxnV4Ex45KhVXtcs yWKbT27jAzc1ZvWu3nBQGDsbL+rfExVZ0MMg74TOJqRAZVGQPZwCVha5Uz3fFze9yDvW FlybKo+xToyovJfBOlWJ27/oaoEUcpzO9a3FWGVolztK8d29bhEnKAiNkAxmS5VrDiR2 5kgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZK8lOmgw8wh4OmTpl6tEh55ZO0qoFlDZ17axahq/sXY=; b=nWVprQ71z9C4q2GcsIe7440ZeRzbUlBFiJYyzDVZn/cFlRRX+Tw0ysPW9R0qxvOKw1 7QNh7rgZKQQ6xBMLTjP3TzR799v80iIAR8fcUuHMZjoYlq0qXtFm+x8WvKTmBZv9N0dN zf2E+EDwpZwqseF8NhTpEtIEi2WlHtBMC5+pDIH0T4twHPLlzZddoQtufyr9iDx9/sS3 oFPIYT9XMGi8aiBerfzwG+CSOvzHApvvT7yPgt8ePWSCn3QZrc4kl6Sec0fMn6qBqgKC /qzKtHoqBXgwDDa/bqhSMimzBwEbwq66FV+sGViOtG9FIucHHKGbA+bL4RJAG/aEerx7 /Ttg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si3491110pgb.476.2018.11.08.05.26.03; Thu, 08 Nov 2018 05:26:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726978AbeKHXAo (ORCPT + 99 others); Thu, 8 Nov 2018 18:00:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:38162 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726571AbeKHXAo (ORCPT ); Thu, 8 Nov 2018 18:00:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2DFB0AC9C; Thu, 8 Nov 2018 13:25:14 +0000 (UTC) Date: Thu, 8 Nov 2018 14:25:12 +0100 From: Michal Hocko To: Martin Steigerwald Cc: Daniel Colascione , linux-kernel , rppt@linux.ibm.com, Tim Murray , Joel Fernandes , Suren Baghdasaryan , Jonathan Corbet , Andrew Morton , Roman Gushchin , Mike Rapoport , Vlastimil Babka , "Kirill A. Shutemov" , "Dennis Zhou (Facebook)" , Prashant Dhamdhere , "open list:DOCUMENTATION" Subject: Re: [PATCH v2] Document /proc/pid PID reuse behavior Message-ID: <20181108132512.GZ27423@dhcp22.suse.cz> References: <20181031150625.147369-1-dancol@google.com> <20181107160015.GI27423@dhcp22.suse.cz> <4536090.43ZsV6LvYe@merkaba> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4536090.43ZsV6LvYe@merkaba> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 07-11-18 18:04:59, Martin Steigerwald wrote: > Michal Hocko - 07.11.18, 17:00: > > > > otherwise anybody could simply DoS the system > > > > by consuming all available pids. > > > > > > People can do that today using the instrument of terror widely known > > > as fork(2). The only thing standing between fork(2) and a full > > > process table is RLIMIT_NPROC. > > > > not really. If you really do care about pid space depletion then you > > should use pid cgroup controller. > > Its not quite on-topic, but I am curious now: AFAIK PID limit is 16 > bits. Right? Could it be raised to 32 bits? I bet it would be a major > change throughout different parts of the kernel. > > 16 bits sound a bit low these days, not only for PIDs, but also for > connections / ports. Do you have any specific example of the pid space exhaustion? Well except for a fork bomb attacks that could be mitigated by the pid cgroup controller. -- Michal Hocko SUSE Labs