Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1372106ybh; Sun, 8 Mar 2020 01:59:47 -0800 (PST) X-Google-Smtp-Source: ADFU+vv4tU7/LaP1Jd6O6WzNsdWhrJ9nkzAluAlb4gVhFe9C+/UgCvxjxGX8naq5HQsxZu5jCxgm X-Received: by 2002:a05:6830:239b:: with SMTP id l27mr2917428ots.278.1583661587776; Sun, 08 Mar 2020 01:59:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583661587; cv=none; d=google.com; s=arc-20160816; b=xrzGDkhwkYedQeSM3xswO7EdDOAqc7w1BvC1HnY3VhbkgzCNOvLYBRvf89ANZjXmJV 5Jhl49daO391Fu+3XFgaCoZDgdIIkYyzWffFmyNgQHzmnSMUq8+PN8TQ98gOZDW6aqVD j6inpsmM4kdXq3JyjxyD6cmLMszLhGSsU265Yzb3xUdBmvzODBuU0ibgtKdBAlIqxU+b WIBbu8dWMlANQy2E9XJ5Mvirphj3GYb9l1juqJBUcU5fl2+uJeFc4hz5VOqO5MUlVqzn wOXeiKM5eF/N8QHuCmxt7e0TgoSyEjZ2iWM8GMjsG16HXlUjDH6V3x22lDvi+Wo5iGzN vE5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=qLRo2OIuTu7VzkzRvJ32S21C1Ybw2I2BN7KLwFt05yg=; b=VvLl5C8iqMvd4HZVvLnNqPIghih81Ytn2QmRBf6VAfDRLABf8b4Tw62xHvl8tg//wC qp5b8/bCyofcAEl+Y6qSJxQUDJ7QncNdl2a0WeQwRXMtL1X5mX3GkjPbr51N9m4wwEtC /qDi22myxfxP5hcXfD9HM2kGXzj+bN6FrnEsBFibdg/gu9q8qK+lfC3LRIwgpFjUh0+M Ab2LX3ATBcsLvc1xaR7tJSIM8pVnnj/OukRGrxRAvRbITPEd8+VdMwDCUCOwS2zkPbTB CdXoMr9YrZXHVNYr/l/GKmO3YLkT/Cg+Jf6UAKTlvKuqzwmylrs0qOrJcA/fMA3MgrdK M94w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZNXQsR2R; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si2464358oib.263.2020.03.08.01.59.35; Sun, 08 Mar 2020 01:59:47 -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=pass header.i=@samsung.com header.s=mail20170921 header.b=ZNXQsR2R; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbgCHJ7N (ORCPT + 99 others); Sun, 8 Mar 2020 05:59:13 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:42520 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgCHJ7N (ORCPT ); Sun, 8 Mar 2020 05:59:13 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200308095909epoutp022daf5f1555b5d8eee51e31185d509625~6S8n-DVe_0851508515epoutp02O for ; Sun, 8 Mar 2020 09:59:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200308095909epoutp022daf5f1555b5d8eee51e31185d509625~6S8n-DVe_0851508515epoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1583661549; bh=qLRo2OIuTu7VzkzRvJ32S21C1Ybw2I2BN7KLwFt05yg=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=ZNXQsR2RwKgFp+rNwTOAMyiGXbNa7PU0JOjaE81oFIgDiTfazkiONd17SGT6LuJXf VdfB492POtQ/NB+03z5zI1seYOdZ5C6Oy7byT5mwVQiSAiXBMWfhag1YK0h529/Jaz vOzOilTe15FF5YbIGrEfnFugurX4ZFkSJK0kpQB4= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200308095908epcas1p469b73abb1cd5fb116ff36056957a1fa1~6S8mq4WzM0391003910epcas1p4y; Sun, 8 Mar 2020 09:59:08 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.159]) by epsnrtp3.localdomain (Postfix) with ESMTP id 48Zxdl3YbJzMqYkV; Sun, 8 Mar 2020 09:59:07 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id D9.1A.48019.BE1C46E5; Sun, 8 Mar 2020 18:59:07 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200308095906epcas1p150fec0fb5b86907b09be9104f7171f12~6S8kcjt5J3121531215epcas1p1M; Sun, 8 Mar 2020 09:59:06 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200308095906epsmtrp17576b5d0c64d67a1742f3367a0421292~6S8kZMGTz0575105751epsmtrp11; Sun, 8 Mar 2020 09:59:06 +0000 (GMT) X-AuditID: b6c32a38-23fff7000001bb93-5e-5e64c1eb218e Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C8.41.06569.9E1C46E5; Sun, 8 Mar 2020 18:59:05 +0900 (KST) Received: from [10.253.104.82] (unknown [10.253.104.82]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200308095905epsmtip287890fa2d68a6c446c3c287450d41a1a~6S8jxvm520104101041epsmtip2S; Sun, 8 Mar 2020 09:59:05 +0000 (GMT) Subject: Re: [PATCH] mm: mmap: show vm_unmapped_area error log To: Matthew Wilcox , Andrew Morton Cc: walken@google.com, bp@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, jaewon31.kim@gmail.com From: Jaewon Kim Message-ID: <5E64C1D7.3000208@samsung.com> Date: Sun, 8 Mar 2020 18:58:47 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20200308015802.GD31215@bombadil.infradead.org> Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0hTcRTu193uruHiOs0OFrluD9psteucXsVZUMQgIaEH6R/abbtt2l7t bpZGZCnaQ7OkIF+0ip74gK3HNCOzsEywIEKK7EUEJVaahWVq2+4k//vOd76P853z+xGY7Bwe R+TbXJzTxloofI7o1gOFSjV435irbmmLZRpam3DmVLWCOe6rRczz9gacedM0JWYmaw4w42MN +FqJvq1uQKL3eN1631Wl3jtSI9E/Pjsu0vt69+t/eBdlSXIs6WaONXJOOWcz2I35NpOO2rg5 b12eNllNq+hUJoWS21grp6PWZ2apNuRbAlkoeSFrcQeoLJbnqdUZ6U6728XJzXbepaM4h9Hi oNWOVTxr5d020yqD3ZpGq9WJ2oByh8U80F0rcjyJ2NfdHFWCBiTHUAQBZBL0TlycfQzNIWSk H4F30C8WihEEFR/vh4tfCM4+rRZPW4bHOnChcRfB25ZKPNiQkUMIpry7gjiazIDuMw9Dhhhy K/j7mgMags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7uJkZwLGhp7WA8cSL+EKMAB6MSD++O C8lxQqyJZcWVuYcYJTiYlUR4G7WAQrwpiZVVqUX58UWlOanFhxilOViUxHnl849FCgmkJ5ak ZqemFqQWwWSZODilGhg9pzh267I6rH83XfNU2iq5tOkOutoNLZ5Vs9SEdeRWVcxnyapiehJ/ tsOgM2KqeVjD4jz+2ZOnbDc1kd3/t+G9grx9Meu2Z0mq3g6VpoG2TXOK0ueJ7fm048ydk/Pe 1ypPPPLixJLzVXqXL+3r1gioYcxxTIhdcSBJulf8pMbR8vS8Wd1275RYijMSDbWYi4oTAfk2 bKaBAgAA X-CMS-MailID: 20200308095906epcas1p150fec0fb5b86907b09be9104f7171f12 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200304030211epcas1p4da8cb569947aefb3aad1da039aaabce4 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> <20200308015802.GD31215@bombadil.infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020년 03월 08일 10:58, Matthew Wilcox wrote: > 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. Hello thank you your comment. Yes, userspace can trigger printk, but this was useful for to know why a userspace task was crashed. There seems to be still many userspace applications which did not check error of mmap and access invalid address. Additionally in my AARCH64 Android environment, display driver tries to get userspace address to map its display memory. The display driver report -ENOMEM from vm_unmapped_area and but also from GPU related address space. Please let me know your comment again if this debug is now allowed in that userspace triggered perspective. I may change to pr_debug or drop this change. Thank you > >