From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97301C43381 for ; Sun, 10 Mar 2019 23:19:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6EAB620652 for ; Sun, 10 Mar 2019 23:19:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbfCJXTf (ORCPT ); Sun, 10 Mar 2019 19:19:35 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:45262 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbfCJXTe (ORCPT ); Sun, 10 Mar 2019 19:19:34 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1h37it-0002fT-GW; Sun, 10 Mar 2019 23:19:15 +0000 Date: Sun, 10 Mar 2019 23:19:15 +0000 From: Al Viro To: Linus Torvalds Cc: Matt Turner , Borislav Petkov , Alan Cox , Matthew Wilcox , Jann Horn , Thomas Gleixner , kernel list , linux-fsdevel , the arch/x86 maintainers , Linux API , Andrew Morton , Richard Weinberger , Anton Ivanov , linux-alpha , linux-m68k@lists.linux-m68k.org Subject: Re: [PATCH] x86: Deprecate a.out support Message-ID: <20190310231915.GG2217@ZenIV.linux.org.uk> References: <20190305122218.GD13380@bombadil.infradead.org> <20190305134347.4be2449c@alans-desktop> <20190305145717.GD8256@zn.tnic> <20190305173134.GE8256@zn.tnic> <20190305181138.GG8256@zn.tnic> <20190305181808.GH8256@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 10, 2019 at 03:40:20PM -0700, Linus Torvalds wrote: > SYSCALL_DEFINE3(osf_readv, unsigned long, fd, > const struct iovec __user *, vector, unsigned long, count) > { > -#ifdef CONFIG_OSF4_COMPAT > - if (unlikely(personality(current->personality) == PER_OSF4)) > - if (osf_fix_iov_len(vector, count)) > - return -EFAULT; > -#endif > - > return sys_readv(fd, vector, count); > } > > SYSCALL_DEFINE3(osf_writev, unsigned long, fd, > const struct iovec __user *, vector, unsigned long, count) > { > -#ifdef CONFIG_OSF4_COMPAT > - if (unlikely(personality(current->personality) == PER_OSF4)) > - if (osf_fix_iov_len(vector, count)) > - return -EFAULT; > -#endif > return sys_writev(fd, vector, count); > } Might as well kill those two off, while we are at it - just use sys_readv/sys_writev in arch/alpha/kernel/syscalls/syscall.tbl and be done with that...