Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp945172ybm; Fri, 29 May 2020 16:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyyZNAQkMtfcDg7G+K5TWhyrC1/+IFA4GH5Xj2Z8++85JCP29DJ2eziCtu1FjcQN8KzG8Y X-Received: by 2002:a17:906:b88c:: with SMTP id hb12mr9488597ejb.483.1590794924024; Fri, 29 May 2020 16:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590794924; cv=none; d=google.com; s=arc-20160816; b=HI+QJTiphwRPp4dKcTpGrL2FX/yk+BgvlrXxizIvv3PaiKJpMHCCa545srqd863nzi O+vqA1v8ZLUlZgl7U3Fyq6tSQIURVyM3PZ/MBtP5yBjlo82m60Z0oos1MdzWheLl0sEs rbXmP4wbHLNXvIoMl+L+YZwE+CB1K2QpLK4PQ0Ce+P98puSldAToA93sWpq0+1wUL74o yTzS1gNr3dgIrBPhG+vOkaATHYdMPYn2QQwPHTjmdFSv6RL1I+8IUcoUY1avtzqeTMb5 IQ5Z42w5yFPSJGUhv1JbCtistmGuIAd0dsAQsPicVHmtd9XU2VKAEmb/cm7Wl3/+DON1 M5ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9xXcQyjn3nH93kpt7xelsIuRjFdf5UPRHg+QyjKaEIE=; b=vvlFn694xkt0J2t9t8WsBATixQZCy6b9+1oSypGoPi4802WXdBx5rVFs9Qx39fV8Ob 2MArdzgyzTySM2jukaPCW9XbsQkX+Xl6G4bQFTnmF9nPlIcx9oYyIvwfKGO4bL2trfeT mFUp7w67lpPfWbMGxV3i+1q1wqjXbegnK1VLYSaYkgDBwbMngPDwmgPAIdlz2wUUCqTv aJcSBAavXHi2XAQqNskPcI2d+IwJl8JlEh5DxVo85ZJiGxsyC0Pm7igbPGM/m1yn00bS qlApcWZGDlQTAORMtGdk8qMRYBGVP1veHtiZuNmNwz4dHYQUiWS/g7zuz6xQO7ExO3Qr Pbfg== ARC-Authentication-Results: i=1; mx.google.com; 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 t9si6179531edw.208.2020.05.29.16.28.20; Fri, 29 May 2020 16:28:44 -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; 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 S1728550AbgE2X0S (ORCPT + 99 others); Fri, 29 May 2020 19:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728040AbgE2X0S (ORCPT ); Fri, 29 May 2020 19:26:18 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7B3DC03E969; Fri, 29 May 2020 16:26:17 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jeoOF-000Be4-3C; Fri, 29 May 2020 23:26:15 +0000 Date: Sat, 30 May 2020 00:26:15 +0100 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCHES] uaccess misc Message-ID: <20200529232615.GK23230@ZenIV.linux.org.uk> References: <20200528234025.GT23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528234025.GT23230@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The stuff that doesn't fit anywhere else. Hopefully saner marshalling for weird 7-argument syscalls (pselect6()), low-hanging fruit in several binfmt, unsafe_put_user-based x86 cp_stat64(), etc. - there's really no common topic here. BTW, after that series there's no more __clear_user() callers outside of arch/* and damn few in arch/*, other than clear_user() instances themselves... Branch is uaccess.misc, based at uaccess.base. 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 | 14 ++--- 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, 134 insertions(+), 121 deletions(-)