Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1063933ybh; Sat, 7 Mar 2020 17:59:20 -0800 (PST) X-Google-Smtp-Source: ADFU+vsy57tNOkOZFS5/hbL0E7m+DJu8+PVjbqwDUPmvKeNTO3uUAL0zcyO7156M3wZ6uxKP8e7M X-Received: by 2002:a05:6808:60f:: with SMTP id y15mr7030896oih.164.1583632760590; Sat, 07 Mar 2020 17:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583632760; cv=none; d=google.com; s=arc-20160816; b=hGoXzbiYoS+LfTSuJsK8J7K63Ftgw8kENQ1oEJYOarfsNdJwWLZuIoYiiAejJFfumj H7iTOcrOzUQRkK3H9JJU3KBNNOPcjdsvdzCWA2ul4KJmszP/t1Vfk8bhinlo2XV/b71l 9yEFf9t5HGjj+Wwoaj2UHUmCbFNY+FOFMr9c2f+dM2QNpTDnidfVkbdFezrfAxVa7T8O aszXy3Tb1iy3XkGFYtdbggYmblIaXm8DGEWkP5vZITvOuVq+QkDaRgd1NSFJfPOdACVR fqhh+VK4/x4QbS2KQuVO7ZmKK6e+Eo5TlFDtF4T5ByWMNPD0H/0bsw4yjgVMnejbWx6D /s6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=sC8gQrUqvjk77AMEkpgTPlQtp+KRWQyDZNoS30Hnuno=; b=oZ660ciKJanrJyEIZbg6F/lwjyrMCHKqPsV+SOG5seWJdx1oG2eexNiQeD1ulSVj87 y0rXY2fy9gupxUu9ZmH6qI416+md53iMf9f1jIR93qkfIRQbO9hS1I2dVoL81HX5E3c+ wbsixu0XoqD946B97w/xAeK+SbR9xAsH0zCvs9Z9jTCV6zcKaOtdk5rKgUnpafmyUDdg Uv00hkNrCJVa8CQc4ciJvfikuL+HlI2ZVD/L+gt0tkIJoHy6gR2/MOm4O0Vwfjb8ozN7 6oFdEu+aF8Gqz8GpdmSokIczrMtQ0JVOK8oUee8qPrXX3Bq6+QYW2+EhoxGo3XcXyyIf qf7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=h9XGTl4A; 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 q126si2179957oia.8.2020.03.07.17.58.55; Sat, 07 Mar 2020 17:59:20 -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=h9XGTl4A; 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 S1726289AbgCHB6O (ORCPT + 99 others); Sat, 7 Mar 2020 20:58:14 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:33952 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbgCHB6O (ORCPT ); Sat, 7 Mar 2020 20:58:14 -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; bh=sC8gQrUqvjk77AMEkpgTPlQtp+KRWQyDZNoS30Hnuno=; b=h9XGTl4A3PG2USDSzqk1jmV9hw S3dWv/eoWLIN3LQSmbb185J+RQb0Xz1LALe6+x6V4QijpKN9mQnZiCjZac4rYimd9Di/8EBsp3s4j 7D2DOjVI8/ceKBMQ1iFpa+QIliMDGYoEtOjainCuR3QbIKVqkDvsc9KiGXnQFrdTQostIR/BIUTgl Hua+b97LbJMvs7gpeZ3b5IgsfzDI+glTb978QRxgeN479eIhiqp6jdmZ3vEmpdky0bTQqN6ecypL9 m+pljgV89DJUneUJHAgEXntsMzihisOGdesAzSZ3PXIHAj8g9XCqysz0N8Q/Agb/lMizY/5hBXqlN jZk7Kc3A==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jAlCc-0007Ik-NO; Sun, 08 Mar 2020 01:58:02 +0000 Date: Sat, 7 Mar 2020 17:58:02 -0800 From: Matthew Wilcox To: Andrew Morton Cc: Jaewon Kim , walken@google.com, bp@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, jaewon31.kim@gmail.com Subject: Re: [PATCH] mm: mmap: show vm_unmapped_area error log Message-ID: <20200308015802.GD31215@bombadil.infradead.org> References: <20200304030206.1706-1-jaewon31.kim@samsung.com> <5E605749.9050509@samsung.com> <20200305202443.8de3598558336b1d75afbba7@linux-foundation.org> <5E61EAB6.5080609@samsung.com> <20200307154744.acd523831b45efa8d0fc1dfa@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200307154744.acd523831b45efa8d0fc1dfa@linux-foundation.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 07, 2020 at 03:47:44PM -0800, Andrew Morton wrote: > On Fri, 6 Mar 2020 15:16:22 +0900 Jaewon Kim wrote: > > Even on 64 bit kernel, the mmap failure can happen for a 32 bit task. > > Virtual memory space shortage of a task on mmap is reported to userspace > > as -ENOMEM. It can be confused as physical memory shortage of overall > > system. But userspace can trigger this printk. We don't usually allow printks under those circumstances, even ratelimited.