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=-0.8 required=3.0 tests=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 4513CC5519C for ; Sun, 26 Apr 2020 16:00:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2208620706 for ; Sun, 26 Apr 2020 16:00:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2208620706 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A2AD08E0005; Sun, 26 Apr 2020 12:00:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9B5008E0001; Sun, 26 Apr 2020 12:00:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8CABE8E0005; Sun, 26 Apr 2020 12:00:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0173.hostedemail.com [216.40.44.173]) by kanga.kvack.org (Postfix) with ESMTP id 74AC48E0001 for ; Sun, 26 Apr 2020 12:00:13 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2041A180AD815 for ; Sun, 26 Apr 2020 16:00:13 +0000 (UTC) X-FDA: 76750467906.29.girls34_764796620191f X-HE-Tag: girls34_764796620191f X-Filterd-Recvd-Size: 2015 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [195.92.253.2]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Sun, 26 Apr 2020 16:00:12 +0000 (UTC) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jSjhG-00C1Jz-QW; Sun, 26 Apr 2020 15:59:58 +0000 Date: Sun, 26 Apr 2020 16:59:58 +0100 From: Al Viro To: Christoph Hellwig Cc: Kees Cook , Iurii Zaikin , Alexei Starovoitov , Daniel Borkmann , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: pass kernel pointers to the sysctl ->proc_handler method v3 Message-ID: <20200426155958.GS23230@ZenIV.linux.org.uk> References: <20200424064338.538313-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424064338.538313-1-hch@lst.de> 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 Fri, Apr 24, 2020 at 08:43:33AM +0200, Christoph Hellwig wrote: > Hi all, > > this series changes the sysctl ->proc_handler methods to take kernel > pointers. This simplifies some of the pointer handling in the methods > (which could probably be further simplified now), and gets rid of the > set_fs address space overrides used by bpf. > > Changes since v2: > - free the buffer modified by BPF > - move pid_max and friends to pid.h > > Changes since v1: > - drop a patch merged by Greg > - don't copy data out on a write > - fix buffer allocation in bpf OK, I can live with that; further work can live on top of that, anyway. How are we going to handle that? I can put it into never-rebased branch in vfs.git (#work.sysctl), so that people could pull that. FWIW, I'm putting together more uaccess stuff (will probably hit -next tonight or tomorrow); this would fit well there...