linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/13] Clean up kernel_read/kernel_write
@ 2020-10-03  2:55 Matthew Wilcox (Oracle)
  2020-10-03  2:55 ` [PATCH 01/13] fs: Allow a NULL pos pointer to __kernel_write Matthew Wilcox (Oracle)
                   ` (14 more replies)
  0 siblings, 15 replies; 20+ messages in thread
From: Matthew Wilcox (Oracle) @ 2020-10-03  2:55 UTC (permalink / raw)
  To: Al Viro; +Cc: Matthew Wilcox (Oracle), Christoph Hellwig, linux-fsdevel

Linus asked that NULL pos be allowed to kernel_write() / kernel_read().
This set of patches (against Al's for-next tree) does that in the first
two patches, and then converts many of the users of kernel_write() /
kernel_read() to use a NULL pointer.  I test-compiled as many as I could.

Matthew Wilcox (Oracle) (13):
  fs: Allow a NULL pos pointer to __kernel_write
  fs: Allow a NULL pos pointer to __kernel_read
  fs/acct: Pass a NULL pointer to __kernel_write
  um/mconsole: Pass a NULL pointer to kernel_read
  x86/aout: Pass a NULL pointer to kernel_read
  aout: Pass a NULL pointer to kernel_read
  binfmt_flat: Pass a NULL pointer to kernel_read
  exec: Pass a NULL pointer to kernel_read
  bpfilter: Pass a NULL pointer to kernel_read and kernel_write
  keys: Pass a NULL pointer to kernel_read and kernel_write
  target: Pass a NULL pointer to kernel_write
  proc: Pass a NULL pointer to kernel_write
  usermode: Pass a NULL pointer to kernel_write

 arch/um/drivers/mconsole_kern.c   |  3 +--
 arch/x86/ia32/ia32_aout.c         |  3 +--
 drivers/target/target_core_alua.c |  3 +--
 drivers/target/target_core_pr.c   |  3 +--
 fs/binfmt_aout.c                  |  3 +--
 fs/binfmt_flat.c                  |  3 +--
 fs/exec.c                         |  4 +---
 fs/proc/proc_sysctl.c             |  3 +--
 fs/read_write.c                   | 10 ++++++----
 kernel/acct.c                     |  4 +---
 kernel/usermode_driver.c          |  3 +--
 net/bpfilter/bpfilter_kern.c      |  7 ++-----
 security/keys/big_key.c           |  7 ++-----
 13 files changed, 20 insertions(+), 36 deletions(-)

-- 
2.28.0


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-10-15 18:23 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03  2:55 [PATCH 00/13] Clean up kernel_read/kernel_write Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 01/13] fs: Allow a NULL pos pointer to __kernel_write Matthew Wilcox (Oracle)
2020-10-15 17:56   ` Christoph Hellwig
2020-10-03  2:55 ` [PATCH 02/13] fs: Allow a NULL pos pointer to __kernel_read Matthew Wilcox (Oracle)
2020-10-15 17:56   ` Christoph Hellwig
2020-10-03  2:55 ` [PATCH 03/13] fs/acct: Pass a NULL pointer to __kernel_write Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 04/13] um/mconsole: Pass a NULL pointer to kernel_read Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 05/13] x86/aout: " Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 06/13] aout: " Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 07/13] binfmt_flat: " Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 08/13] exec: " Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 09/13] bpfilter: Pass a NULL pointer to kernel_read and kernel_write Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 10/13] keys: " Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 11/13] target: Pass a NULL pointer to kernel_write Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 12/13] proc: " Matthew Wilcox (Oracle)
2020-10-03  2:55 ` [PATCH 13/13] usermode: " Matthew Wilcox (Oracle)
2020-10-03  3:47 ` [PATCH 00/13] Clean up kernel_read/kernel_write Al Viro
2020-10-09 22:07   ` Eric Biggers
2020-10-15 17:56 ` Christoph Hellwig
2020-10-15 18:23   ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).