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