[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200615121257.798894-1-hch@lst.de>
Date: Mon, 15 Jun 2020 14:12:44 +0200
From: Christoph Hellwig <hch@....de>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Ian Kent <raven@...maw.net>,
David Howells <dhowells@...hat.com>,
linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-security-module@...r.kernel.org,
netfilter-devel@...r.kernel.org
Subject: clean up kernel_{read,write} & friends v4
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.
I did not add your suggested comments on the instances using
uaccess_kernel as all of them already have comments. If you have
anything better in mind feel free to throw in additional comments.
Changes since v3:
- keep call_read_iter/call_write_iter for now
- don't modify an existing long line
- update a change log
Changes since v2:
- picked up a few ACKs
Changes since v1:
- __kernel_write must not take sb_writers
- unexport __kernel_write
Powered by blists - more mailing lists