From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DAA7C433E2 for ; Thu, 3 Sep 2020 13:44:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B598D2072A for ; Thu, 3 Sep 2020 13:44:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="gXCP5+x6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B598D2072A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 18D136B0003; Thu, 3 Sep 2020 09:44:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0C5206B0037; Thu, 3 Sep 2020 09:44:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ECFB16B0055; Thu, 3 Sep 2020 09:44:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D924A6B0003 for ; Thu, 3 Sep 2020 09:44:06 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9DB5E8248076 for ; Thu, 3 Sep 2020 13:44:06 +0000 (UTC) X-FDA: 77221868892.04.pies71_1514fdc270aa Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id 6F248800BE6F for ; Thu, 3 Sep 2020 13:44:06 +0000 (UTC) X-HE-Tag: pies71_1514fdc270aa X-Filterd-Recvd-Size: 4175 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Thu, 3 Sep 2020 13:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=PuQu+98J8DwNtCqB0t0BYXT1u9tmEr6zOMkQv/kuWMw=; b=gXCP5+x6cqvpu3ADrmRxPWuxW7 HemdHZ83tJH+QUUyhMoAH6otubFEk+uJqpu38y36K//t7BMnKKRTNzMLN45XLnGWk3nd3DfASiD9T gWI/A45xnn6/i53uRnr2v8E8nPcGPpVwixfmdTXBJlpVAtWwv/rs/2Kh2i0QUQF2PLOl97rfh78yt IA9uwdxR6cd8rJ30Dd1L9XOmSSvxGwSpD/jWdfbdFmr8o1EiS8v5+9AslmaSTlytkVs2Yqdo2giH4 Kymk4FTKpiCg18ubNRX8nuZur53KVg62hqnTeOzIPhpPvLlIMROwsm6hJh1AB8a5HGgsTziFND8ga +pVg/wdg==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDpWe-00023H-Td; Thu, 03 Sep 2020 13:43:40 +0000 Date: Thu, 3 Sep 2020 14:43:40 +0100 From: Matthew Wilcox To: "Kirill A. Shutemov" Cc: Sumit Semwal , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexey Dobriyan , Jonathan Corbet , Mauro Carvalho Chehab , Kees Cook , Michal Hocko , Colin Cross , Alexey Gladkov , Jason Gunthorpe , "Kirill A . Shutemov" , Michel Lespinasse , Michal =?iso-8859-1?Q?Koutn=FD?= , Song Liu , Huang Ying , Vlastimil Babka , Yang Shi , chenqiwu , Mathieu Desnoyers , John Hubbard , Mike Christie , Bart Van Assche , Amit Pundir , Thomas Gleixner , Christian Brauner , Daniel Jordan , Adrian Reber , Nicolas Viennot , Al Viro , linux-fsdevel@vger.kernel.org, John Stultz , Pekka Enberg , Dave Hansen , Peter Zijlstra , Ingo Molnar , Oleg Nesterov , "Eric W. Biederman" , Jan Glauber , Rob Landley , Cyrill Gorcunov , "Serge E. Hallyn" , David Rientjes , Hugh Dickins , Rik van Riel , Mel Gorman , Tang Chen , Robin Holt , Shaohua Li , Sasha Levin , Johannes Weiner , Minchan Kim Subject: Re: [PATCH v7 3/3] mm: add a field to store names for private anonymous memory Message-ID: <20200903134340.GA14765@casper.infradead.org> References: <20200901161459.11772-1-sumit.semwal@linaro.org> <20200901161459.11772-4-sumit.semwal@linaro.org> <20200903132537.mp5e6o6ptgbkghxe@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200903132537.mp5e6o6ptgbkghxe@box> X-Rspamd-Queue-Id: 6F248800BE6F X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Sep 03, 2020 at 04:25:37PM +0300, Kirill A. Shutemov wrote: > IIUC, it gives userspace direct control of content of /proc/$PID/maps and > /proc/$PID/smaps. There's no verification of the given string whatsoever. > I'm sure security experts would find clever usage of the feature :P What, you think that naming a VMA "\n55bc3e0f9000-55bc3e0fb000 r--p 00000000 fd:01 16777285 /bin/cat" might cause problems? Would it be enough to restrict the characters to isalnum()?