Received: by 10.223.176.5 with SMTP id f5csp2258934wra; Thu, 8 Feb 2018 10:57:55 -0800 (PST) X-Google-Smtp-Source: AH8x227qscFPy8l2/UR9okoF+KpfkT3rOilhCvFHAQdK0eFVAFjbBF6WMarYNapiCq4ILixYqrpX X-Received: by 2002:a17:902:758b:: with SMTP id j11-v6mr33640pll.224.1518116275586; Thu, 08 Feb 2018 10:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518116275; cv=none; d=google.com; s=arc-20160816; b=kVxP5FXH7wmHBfgPGBNghjw+jm3pqj0hKoZYgKwWrRaJzb8hc/zwfjwp/763Fwlvcm jVFOnm/d66jXagUDmx3LTwidwm8wV1bHKSn/A1K5Fp74M7Rc2bhQjijmu2lk0DC6VPjp lMOLh/swp8eA+uXZTysMTnwObmV6INXlp81mOFc7yBsiTlr8PmDcK5kb6Sbr8kaKmCmY SS5WD7OS6qNAZ4+ULKTUmrW6zDPuwx9nFLP+nt/mXW3dJR9WMxTzKj6ShZgwRDjE0IsE 1gJvoVKGJdtHCGfGdxRbw/cyroKIwqEncVUjOUCnasX5IXMgV+vIEnByP6I1We5j2+MY Il5A== 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:dkim-signature:arc-authentication-results; bh=OlkJZVjpDeH1Hf5BXpdyeihEvGqD4Evd2PxBNXmoqws=; b=mLgTAWCsip7wrF1KF/6zutaeVz5n5VcnTb4RXtKABr0N/em9eIHGpUwolSqFLcb+ho tZqgbuklerclDfwxS+RUXSXBFKTazNMJD/q3XI0DI2HvXzlrPZkTnaBtoui5L4AsXW5G KoBxzOrEGmwlh/Ii1G2qt8cYW6Hwuj69LOXUFNSHNAQ7rJhCLiCa8hRKOOKrumKsh6Jc Mqec2KVWsRkK2Lqz40i1vNS4c9RyMaqvY1B3uyrDo8NF6V9g52s7s8JvG38eNLAWCEti 7jjZXJfRf2oe0P5ONwi686/wTCU3ciBKE05Ar1YbfjXc5dJQxKyFEZGPu/xrRUKVBNvO QPUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QVlNzU94; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si341035pln.619.2018.02.08.10.57.40; Thu, 08 Feb 2018 10:57:55 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=QVlNzU94; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752237AbeBHS4v (ORCPT + 99 others); Thu, 8 Feb 2018 13:56:51 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:38299 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752159AbeBHS4u (ORCPT ); Thu, 8 Feb 2018 13:56:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OlkJZVjpDeH1Hf5BXpdyeihEvGqD4Evd2PxBNXmoqws=; b=QVlNzU94Cc7AqPNDXSh55KHPH 7kmM6OFIkX8XkzVc8DywsTEAw7ockfeFdgIEN81lkOQkdDyLKLNzQgffrpUKMr3qXhckKeM8ElS8b yNjxc9PW9Ygu2/G5IvNwV2I/KlvlcktkwdIGFEF7XCP9HD8Ye69RDkEfFPuaiRtQEgk7iDOLDGZiz quj8vgJy4u8K0/MfnQnHnW58Tjv5HfP6N1jMYbetuwu1z3GfJlrI/vfY7W1/MNWSK3PwnuTovPE1m /CDsvkbS+aDedUlPHeaSvZZisZisWzCcjDoGraFReltyz5QFpg260ORcvfnqUBz0Ka3eKfDCbCctA 2siZmeiaA==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1ejrNI-0005A5-E8; Thu, 08 Feb 2018 18:56:48 +0000 Date: Thu, 8 Feb 2018 10:56:48 -0800 From: Matthew Wilcox To: Daniel Micay Cc: Jann Horn , linux-mm@kvack.org, Kernel Hardening , kernel list , "Kirill A. Shutemov" Subject: Re: [RFC] Warn the user when they could overflow mapcount Message-ID: <20180208185648.GB9524@bombadil.infradead.org> References: <20180208021112.GB14918@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 08, 2018 at 01:05:33PM -0500, Daniel Micay wrote: > The standard map_max_count / pid_max are very low and there are many > situations where either or both need to be raised. [snip good reasons] > I do think the default value in the documentation should be fixed but > if there's a clear problem with raising these it really needs to be > fixed. Google either of the sysctl names and look at all the people > running into issues and needing to raise them. It's only going to > become more common to raise these with people trying to use lots of > fine-grained sandboxing. Process-per-request is back in style. So we should make the count saturate instead, then? That's going to be interesting.