Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1417601ybs; Mon, 25 May 2020 15:52:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW09qexrGhdU8bHibXXHBRBt9Cw4CztQmiyCfg4oXzvEUNNPt1BXXRl+Gfd13WTWwNwpKZ X-Received: by 2002:a17:906:a1c9:: with SMTP id bx9mr19707052ejb.496.1590447120021; Mon, 25 May 2020 15:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590447120; cv=none; d=google.com; s=arc-20160816; b=jEcNG6C511oQAf8GVbaqORMvSYTBtUECZJSP4MrmgOmU4hLnzqckMqRGyEiVTem0Kc 2ee4gNgHRVCQs05Gc2fhXjuNOLxCLjRn8YDebWXpiAgxZOhEcpDqa0n/jSABedF0Cbfr QfNWxgaDb/n/tKRkTC7UrUjsdwzLn1x6JOF2m70kWrh5JVPwPVr5gyNen6qyaen0X8y+ 8X/ZXjQE89zU4BSronqzYlIF8rRyNNlfYFFnS3YD1WjxVB1+xwUFIlto4XNScXCRXCZ2 SUUVP3s27M8iDRuua3zWmlVN5NzxfX1aPsaVBrZ/DoZnZ+wmcJ5HuMkH1FY2QcN5FtwD UNCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6TOwdrtWoAmHr0VIrvkOWs1M00X+IT5kDl9CfLkVlW4=; b=egFulS7mnD+3/sjXzvnnSIzqCiPbPJEG/XIjmVqsNqViqQeZXzsoNGuiK3nkTjRc58 onSSyDSHqFX2bdAGe8JSw7qkRpbRvpWCsXg7I/vKRacyKz4lGYpY9aHcSzRfpOIOyi/u LZ3dxLn8vT/noNctJRmXRCDkcGYMoUQnbcJzD4vLLdq108w9CMWaqvw+ZBoBDp1ocOVL qg9Qq02kpcCoHAWWewql71lSnE8Nd8GyMsHkKL7iAhM1roD/ypZlBK5oV4k1xtMl/lB5 zkzo7WgaK+quKj/Viyaodau/bP2gX8EVW+UmNquMhvqi0IQO8ATOQRRORU8HogJaS8ve qRyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NcJFtnwN; 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 e18si10313943ejh.211.2020.05.25.15.51.36; Mon, 25 May 2020 15:52:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=NcJFtnwN; 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 S2388840AbgEYWTO (ORCPT + 99 others); Mon, 25 May 2020 18:19:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:58942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbgEYWTN (ORCPT ); Mon, 25 May 2020 18:19:13 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 03D43206B6; Mon, 25 May 2020 22:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590445153; bh=x65ra5HzllGpMWpGBDQlV6WYtu45OT9qLLEzkF7Sj4I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NcJFtnwNx4e0s9ZwJL4cLO0xBzD7n5HdSdPtZCXXajTuoquh5l284befI43hQi6i/ t2tEJWOuysgTmZPxEfphxQz2b70faDivb9e2/2k2EgJrV9o+NW9QcuDi6vhWmGV/ws 6sb6xAz5aRmW/QGtmF4kQf3EkLYbja1bkLUuzuZE= Date: Mon, 25 May 2020 15:19:12 -0700 From: Andrew Morton To: Christoph Hellwig Cc: x86@kernel.org, Alexei Starovoitov , Daniel Borkmann , Masami Hiramatsu , Linus Torvalds , linux-parisc@vger.kernel.org, linux-um@lists.infradead.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: clean up and streamline probe_kernel_* and friends v4 Message-Id: <20200525151912.34b20b978617e2893e484fa3@linux-foundation.org> In-Reply-To: <20200521152301.2587579-1-hch@lst.de> References: <20200521152301.2587579-1-hch@lst.de> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 May 2020 17:22:38 +0200 Christoph Hellwig wrote: > this series start cleaning up the safe kernel and user memory probing > helpers in mm/maccess.c, and then allows architectures to implement > the kernel probing without overriding the address space limit and > temporarily allowing access to user memory. It then switches x86 > over to this new mechanism by reusing the unsafe_* uaccess logic. > > This version also switches to the saner copy_{from,to}_kernel_nofault > naming suggested by Linus. > > I kept the x86 helpers as-is without calling unsage_{get,put}_user as > that avoids a number of hard to trace casts, and it will still work > with the asm-goto based version easily. hm. Applying linux-next to this series generates a lot of rejects against powerpc: -rw-rw-r-- 1 akpm akpm 493 May 25 15:06 arch/powerpc/kernel/kgdb.c.rej -rw-rw-r-- 1 akpm akpm 6461 May 25 15:06 arch/powerpc/kernel/trace/ftrace.c.rej -rw-rw-r-- 1 akpm akpm 447 May 25 15:06 arch/powerpc/mm/fault.c.rej -rw-rw-r-- 1 akpm akpm 623 May 25 15:06 arch/powerpc/perf/core-book3s.c.rej -rw-rw-r-- 1 akpm akpm 1408 May 25 15:06 arch/riscv/kernel/patch.c.rej the arch/powerpc/kernel/trace/ftrace.c ones aren't very trivial. It's -rc7. Perhaps we should park all this until 5.8-rc1?