[git pull] uaccess misc

From: Al Viro
Date: Wed Jun 10 2020 - 16:25:13 EST


Assorted uaccess patches for this cycle - the stuff that
didn't fit into thematic series.

The following changes since commit b44f687386875b714dae2afa768e73401e45c21c:

drm/i915/gem: Replace user_access_begin by user_write_access_begin (2020-05-01 12:35:22 +1000)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git uaccess.misc

for you to fetch changes up to b7e4b65f3fe92abbf4a1f57987a54c820969aebd:

bpf: make bpf_check_uarg_tail_zero() use check_zeroed_user() (2020-06-03 16:59:45 -0400)

----------------------------------------------------------------
Al Viro (9):
pselect6() and friends: take handling the combined 6th/7th args into helper
binfmt_elf: don't bother with __{put,copy_to}_user()
binfmt_elf_fdpic: don't use __... uaccess primitives
binfmt_flat: don't use __put_user()
x86: switch cp_stat64() to unsafe_put_user()
TEST_ACCESS_OK _never_ had been checked anywhere
user_regset_copyout_zero(): use clear_user()
x86: kvm_hv_set_msr(): use __put_user() instead of 32bit __clear_user()
bpf: make bpf_check_uarg_tail_zero() use check_zeroed_user()

arch/x86/include/asm/pgtable_32.h | 7 ---
arch/x86/kernel/sys_ia32.c | 40 ++++++++------
arch/x86/kvm/hyperv.c | 2 +-
fs/binfmt_elf.c | 16 +++---
fs/binfmt_elf_fdpic.c | 31 +++++++----
fs/binfmt_flat.c | 22 +++++---
fs/select.c | 112 ++++++++++++++++++++++----------------
include/linux/regset.h | 2 +-
kernel/bpf/syscall.c | 25 ++-------
9 files changed, 135 insertions(+), 122 deletions(-)