Received: by 10.213.65.68 with SMTP id h4csp781396imn; Tue, 13 Mar 2018 22:59:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELtrlMVW+ls3j8r0XRNnQBn2rJIWNTbukWGDKe1J7Fms50OuVVuN5mhAxzzZ/YsrgUWTRaXx X-Received: by 10.99.142.201 with SMTP id k192mr2670705pge.278.1521007173395; Tue, 13 Mar 2018 22:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521007173; cv=none; d=google.com; s=arc-20160816; b=PyswGoJxwaqLXgsJrDxqDRLpLZOEQ/rW5wM95U+m0uMn/XgWtboqq6GOksFAcNql+Z 3ua5JhKbSLPWzTH6onRgFSz6eNYRjCl0i7z7OI4jqRREJ2NJCDmJ9p3WgiWK5oUzdnGL Hvv10fbcviUxC0e9wLwCXSZo4S94NGKKZWPiBFSaHSEfLtmiQdxmx6ZmQNjnjnkK93hY XaYNbmLdKUKkK/FUkeZGvE91QMYVP2ABT0gA2VlSG+LbMQ3MJ1rY5oLIa5AZMS0s1+S6 cIk4eMEGPNx38dSAtZ+ELwgOQeYeeTN5cw5sfc0fqcJ5oyB5LGHmwweGIzvyvByRGRlb 5o6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=nGJ79sq+SiaphgFnPLW2Bm6FybXL0VtCK1sVQzf3u5E=; b=q3SbOKdnhFUCnkFiY1dNP+zjN5QU1eUhJFuKkYCY77mEIs8SyhpexkKOsLaGvRrKBb +VJ1End3pZWJbeG3AEzAxsNByZdEUk88xSwMdktMnPm+EphiWBop/tj3jmH5qzh0iRiV AFrfHNloywyEpLawt0nklqWY3NKx4Qcf62gY2hy6tGGP02e6pYEN6Rs6Fl+9k/wsPh4c 7QAZIopdYxgmYd/GTh42TttnK3KfLlgkEr7bT3gTeFaGjnntBJ24Lu3e+rytb2MsLaxC Tmc6GVOsVOXGD7rNyv6pKTw//gz+cneoQKVKCs47DagqLXTr3EbenrHvWCwXs9dzqnWr jASA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m62si1354467pgm.88.2018.03.13.22.59.18; Tue, 13 Mar 2018 22:59:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753293AbeCNF6X (ORCPT + 99 others); Wed, 14 Mar 2018 01:58:23 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:45918 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751326AbeCNF6V (ORCPT ); Wed, 14 Mar 2018 01:58:21 -0400 Received: from light.dominikbrodowski.net (isilmar.linta [10.0.0.1]) by isilmar-4.linta.de (Postfix) with ESMTPS id 535002008FF; Wed, 14 Mar 2018 05:58:20 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id 0A8942079A; Wed, 14 Mar 2018 06:48:03 +0100 (CET) Date: Wed, 14 Mar 2018 06:48:02 +0100 From: Dominik Brodowski To: Andy Lutomirski , "Tautschnig, Michael" Cc: Jann Horn , "x86@kernel.org" , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Jaswinder Singh , Andi Kleen Subject: Re: [PATCH] x86: always use SYSCALL_DEFINE* Message-ID: <20180314054802.GC8354@light.dominikbrodowski.net> References: <14A5C8D0-3F9D-486F-A20C-55849D70FC80@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michael, On Tue, Mar 13, 2018 at 11:18:08PM +0000, Andy Lutomirski wrote: > On Tue, Mar 13, 2018 at 9:16 PM, Jann Horn wrote: > > On Sat, Mar 10, 2018 at 12:55 PM, Tautschnig, Michael > > wrote: > >> All syscall arguments are passed in as types of the same byte size as > >> unsigned long (width of full registers). Using a smaller type without a > >> cast may result in losing bits of information. SYSCALL_DEFINE* introduce > >> adequate type casts. All definitions of syscalls in x86 except for those > >> patched here have already been using the appropriate SYSCALL_DEFINE*. > > [...] > >> diff --git a/arch/x86/kernel/ioport.c b/arch/x86/kernel/ioport.c > >> index 2f72330..d98b2a3 100644 > >> --- a/arch/x86/kernel/ioport.c > >> +++ b/arch/x86/kernel/ioport.c > >> @@ -23,7 +23,8 @@ > >> /* > >> * this changes the io permissions bitmap in the current task. > >> */ > >> -asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int turn_on) > >> +SYSCALL_DEFINE3(sys_ioperm, unsigned long, from, unsigned long, num, int, > >> + turn_on) > > > > Shouldn't this be "SYSCALL_DEFINE3(ioperm, [...]", without the "sys_"? > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-api" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > I think this patch will be obsoleted by a series of patches from Dominik. ... the ioperm change is already in mainline (did an equivalent change a couple of days ago), but the sigreturn/rt_sigreturn changes still seem useful. Could you send a fresh patch with just these two changes; and -- if the x86 maintainers agree -- I will push it with my syscall-related changes? Thanks, Dominik