Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp635914ybj; Tue, 5 May 2020 05:17:44 -0700 (PDT) X-Google-Smtp-Source: APiQypK4L5gHuTxexaVAr+buBpu4MUPkDjt336XQOqv3jmC23Ba4pmGFTFHsgicnfigeyXyl0x/3 X-Received: by 2002:a05:6402:1a49:: with SMTP id bf9mr2399607edb.189.1588681064680; Tue, 05 May 2020 05:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588681064; cv=none; d=google.com; s=arc-20160816; b=c8tjrVUx+NVejF7r07Fz4S8PEV9tKqenIofESsVQ5V52jhZGX5JclEhRwHX6upREMc SdVFHSwt6AQhoObT0l5nqJNQJtSXl08vEpK5qljBmRrpH+b1reNw/HjRuZWVp1fznJCg DSSHk2iaYwV4Ef40RN+lcPWD/5m2VYiGMFY5XLZkBsxaica+gzSFp7Ba7IRs3DerN4B9 b172IO6PrpBCl1LQ+5ijF0WT0JX9LaUPQDlDmTLnbR2fkP9c6df29TKLeCyGJ0v3opoP YvCkvvA6VIFveIuZO0E8I0hc3/sBK/A0ZSceCHpKaCDYUzRjZirbIJ3bJdmcitLpgPpF Arxg== 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=5LUq3zey3mhyYk6AWdAsSmbcIg0cJPh8N4X69H0yV5A=; b=JrhJxWIp7oBdGA+PyH4Ha1uZGH04ZHNxfM9CY/4WNt6cMXjcGhXiNd8HPb1iOd+lVq b29JYwIbJqVkz7Z5IuwN5Ri60hUSvaFhqPbFKl/oFmjhIR+CBARXcvybaOUJMcqJOTxW ZYwaNOJtbDyEU7u9Rs2cWX++eNp7h06YizILT9Bz0Q0E5Awlg1+Q3l51TapGJDXMPiLM E9dF0xWuCcrj1nTpWZikSIns0pE1GhRE9uQRBytqkps4X75v4iPKQyNQeaKycBcZM54t MoE5r38EUN6XbGgSIH37w6oz4D0XdW8HGd71AtgdrN4+373EYoqbLzWe1tKHvI/P+OSM rMoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si1063052ejw.241.2020.05.05.05.17.21; Tue, 05 May 2020 05:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbgEEMQB (ORCPT + 99 others); Tue, 5 May 2020 08:16:01 -0400 Received: from verein.lst.de ([213.95.11.211]:35078 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728180AbgEEMQB (ORCPT ); Tue, 5 May 2020 08:16:01 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 68BE668C4E; Tue, 5 May 2020 14:15:57 +0200 (CEST) Date: Tue, 5 May 2020 14:15:57 +0200 From: Christoph Hellwig To: Jann Horn Cc: Christoph Hellwig , Andrew Morton , Linus Torvalds , kernel list , Linux-MM , linux-fsdevel , Alexander Viro , "Eric W . Biederman" , Oleg Nesterov , Russell King , Linux ARM , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Rich Felker , Linux-sh list Subject: Re: [PATCH v2 1/5] binfmt_elf_fdpic: Stop using dump_emit() on user pointers on !MMU Message-ID: <20200505121557.GA24052@lst.de> References: <20200429214954.44866-1-jannh@google.com> <20200429214954.44866-2-jannh@google.com> <20200505104805.GA17400@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2020 at 01:42:12PM +0200, Jann Horn wrote: > On Tue, May 5, 2020 at 12:48 PM Christoph Hellwig wrote: > > On Wed, Apr 29, 2020 at 11:49:50PM +0200, Jann Horn wrote: > > > dump_emit() is for kernel pointers, and VMAs describe userspace memory. > > > Let's be tidy here and avoid accessing userspace pointers under KERNEL_DS, > > > even if it probably doesn't matter much on !MMU systems - especially given > > > that it looks like we can just use the same get_dump_page() as on MMU if > > > we move it out of the CONFIG_MMU block. > > > > Looks sensible. Did you get a chance to test this with a nommu setup? > > Nope. Do you happen to have a recommendation for a convenient > environment I can use with QEMU, or something like that? I'm guessing > that just running a standard armel Debian userspace with a !mmu ARM > kernel wouldn't work so well? Nommu generally needs special userspace either using uclibc-ng or musl. When I did the RISC-V nommu work I used buildroot for my root file systems. We haven't gotten elffdpic to work on RISC-V yet, so I can't use that setup for testing, but it should support ARM as well.