Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp157167ybm; Wed, 27 May 2020 22:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9Rp2XNxnYkqDqO1i8npuWvs3nbZDbqyvgNzUC/tTufaW4SU9bEuTQdSTwVGRJmKZWOBaz X-Received: by 2002:a05:6402:cb1:: with SMTP id cn17mr1361941edb.382.1590644576413; Wed, 27 May 2020 22:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590644576; cv=none; d=google.com; s=arc-20160816; b=LuH02UfQKHTFXvUjZjhG5xznwSjkepU9hv9kwzIdd9PM+h1pDzgyxOH9ZInPf4A6Fh kH8LRLO+X6trNUb1kYH4Hz581a6YqBU7Crg+9xu68miEle6KyZs8IZMnAqrNV+/UT9yq wdRATflP+FtvemfQ3j8wiyjnwuwSBw8+jbXrCuBa+3G/2xgu6Ed7kkr0I5LY7NcwkuU7 ezeyOd9POT6rkNTp8ha4OHx2VkZHQSoLq4ChvyzyBtihlfmb4ycW7Fcaok6JRHOUmk9o JCApTViUOxNVR/RJ9Ad7+DWe/paVwloRgOXmsSndmrydIjOz6OyF8qIfvc18lkuX2eS2 OQvw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=09LJUpm7nzPF/bKa8M2EEZqKf+9ZsGOUceQSna/ydV4=; b=cwlRx4IWI0mqBpTRe+1G1tTcMlwL90ZsRN5IVz9ZpWgF9BRq8HmzKe2awqpF7/lybp Ws5cjwGagZTHEwchuFCKibkfl5qSLsaK1rnBjukzFsCLOZLGVrj+QILJYk+qTabfXsgG 2IJev9KvfZhtFSrNIWilCVxxAfX4idF2k/0Y8Iom5Jp6ryL72VrMikX8l9ocKhWgEwQb MYWU816u9CtY4YI0iP4g/4d2Di15j8HVqVv21Gt9otFlh8IKtbhXnW1jD67gTJ5qPsOh gGASpn/2eia6wBDfvYXPKmLYbVnMaIpmwOxu2CegYmOzLpy45l5PWra+C91xv7Do4xMn pW4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="uz5if4/h"; 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 du16si4429198ejc.634.2020.05.27.22.42.33; Wed, 27 May 2020 22:42:56 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="uz5if4/h"; 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 S1727863AbgE1Fkx (ORCPT + 99 others); Thu, 28 May 2020 01:40:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgE1Fkw (ORCPT ); Thu, 28 May 2020 01:40:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17F65C08C5C2; Wed, 27 May 2020 22:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=09LJUpm7nzPF/bKa8M2EEZqKf+9ZsGOUceQSna/ydV4=; b=uz5if4/hZ2k5rJTNIi7csXxqo1 dmt5Q8gaNaUEb05QEp8Q8zINfhQREVRBgCTHBibgQWnZX/cg2MXif06uI6mKBaLu+4gCF++2oOxM0 /KPputfDenY4oEe63fLhR3qlWVwX3uPEjF2g76Fxb6ZX8wJ79HsYEtfUn1fB3ArtVUZ423aaNxPWC CW3ZJM3bCngdxsaUJSmg6sNUPcZgPGjDc/n9AsJhVk0pO9gFlsckV6SDLgscKVU0ICBGtJhc33k78 +laFyVBDvtA9POPoJqaRTv9WVsxSbRbkuCMLQNLxLtWUBX72VC+uGRzII2tvmTLWB0Ac9INJG378o P9crCh3Q==; Received: from p4fdb1ad2.dip0.t-ipconnect.de ([79.219.26.210] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jeBHZ-0002JF-IY; Thu, 28 May 2020 05:40:45 +0000 From: Christoph Hellwig To: Al Viro Cc: Linus Torvalds , Ian Kent , David Howells , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: clean up kernel_{read,write} & friends v2 Date: Thu, 28 May 2020 07:40:29 +0200 Message-Id: <20200528054043.621510-1-hch@lst.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Al, this series fixes a few issues and cleans up the helpers that read from or write to kernel space buffers, and ensures that we don't change the address limit if we are using the ->read_iter and ->write_iter methods that don't need the changed address limit. Changes since v2: - picked up a few ACKs Changes since v1: - __kernel_write must not take sb_writers - unexport __kernel_write