Received: by 10.213.65.68 with SMTP id h4csp645418imn; Tue, 13 Mar 2018 16:19:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELsfzMHQkiZ1QMHf97xBs0CEuI+FxTQkTZkVbhO4RiIfkcBlS42XXAtJMYG2Xa0A/K2zMRmx X-Received: by 10.101.73.141 with SMTP id r13mr1864507pgs.161.1520983192520; Tue, 13 Mar 2018 16:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520983192; cv=none; d=google.com; s=arc-20160816; b=IJJsxsUg1Pd/psxJpHovBkEDVVVDSdZ75QyvTyggUjiPR6De/jzOGJdps2kmaXxjL7 mOdufB3SxqZH+Jb+V//djHI0KFqECqnYe3Cg9APTuBNIoa5XJpszPFq09RTBPK9s2zcH xNlIFruMAcNEIWLOrRcO0oF2Y9HFc+POAO6Q707AlWpTrVMVMfiWhZ9aJxGgWYqVAx78 bTJmcIf5PkswpzH/P53UXAchJs5lMM6/SXaKAEqiAMUtkNjR0UWSCJ6+QxJIQR7esPxH PXiJB7GgCRlNItVGd573x26Dq8Qg3wZnQZir+X9cs0rcdbzvxseQZjCvYSJEKUWF5mUn /Nbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Glk1LCT+lsyUdTLaPK5GlLqzIPRmFoIUvRmBTbunrY4=; b=d1EoTMkTfaZKjyyE1cNopgHwIovawo85mdiP6AWbaK6rZQhWyXJ1as87Myh4nuFNx4 Q+klVZG95rTSvjIMbbpKt6Vlx6C+9E8czp/u8EsiEdUI7vQ0eWJ0gOU8zOncewrxGruz nOuQMQ+2uMvBP9+ghI+hRiXZ45q2cYu6YGFiizDcjcE0fiacRt/8lT4Nr8EHR+5Nae5w NtVAwBSOaua1yip6VfezOjjzf3xa/bUWIf/V/TJb9vfVvDC80xLn20EjZJPPNwF92pS9 RfZzV+c2JXfIvpvxojtCPE6oJmZ54VkGDtEIZhoywR6vS5jKCKHebHw2DIauGGC2bR5i hwRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=Twu0kqxR; 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 n25si830984pgc.87.2018.03.13.16.19.38; Tue, 13 Mar 2018 16:19:52 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=Twu0kqxR; 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 S932763AbeCMXSb (ORCPT + 99 others); Tue, 13 Mar 2018 19:18:31 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:50694 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932710AbeCMXS3 (ORCPT ); Tue, 13 Mar 2018 19:18:29 -0400 Received: by mail-it0-f65.google.com with SMTP id d13-v6so2260287itf.0 for ; Tue, 13 Mar 2018 16:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Glk1LCT+lsyUdTLaPK5GlLqzIPRmFoIUvRmBTbunrY4=; b=Twu0kqxR91iSEmtm9Vrvg+pjAyZXiD9ZhlXFWGY0A/EkwUH0nHCPwIN5Ry173CJbkV YV9Mj2c9qiu8NjDFKnzzOYNXULcc36Zit4yet4A7MK9l79nu1gAzboD0PQcb4ECB6GqR orMaIy8A4vvy6C6z/IKakUhSQfbQfZ858j01AlWpTp0RsUpWYtuNPtPJLp+q05HoBUB3 G33jeGuC9UDLkBmiadh8N1AUnG1hIHTOBCdP04s57YLcXCxW235v3ir1wLdd3UaCFQFs 71PH3cVD6CPszhVEgh3OaQ9lNGwGAL1QwkFYboDKUWZ/6vpaDiLSqEca05yn0Tv2c8mX gZEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Glk1LCT+lsyUdTLaPK5GlLqzIPRmFoIUvRmBTbunrY4=; b=Lk8zMhM5AnjdfQog+atAvllsrkRdcbN8VIE9dd2n+wJHmglqrGoJYhycr10YqURlc9 4BgY+Myg1EYvVNNMk2SHlFKCSQBy3PYE7tRIaLriY8itWpQpvPBsix7y7MPAu69a5EPj qE83oN1q+eQwmi7NOepkv8vaIW2iRA0T2VMZ6FolHYjpunYdzwIWwk1NE755mgLQFAAA pxtymOc7JEM+zMLr5y+T1jf9sANC51NFc/QZZW1Db6jFhereUGEMptdEnhWsv1/k6G7y OOPdtQo1YS/YIE154yfnzCpPTpXXj3F8vs3dX5C3eERyGg8+zF33e/UliIDUyI8tdPU2 F54w== X-Gm-Message-State: AElRT7EbPB1kkVVCbTtOylC1sWCM+vGQgKqOLAEt5YUmL//8nnpJ0GVn 53vRurc1dH0VZD1U5SHnpkrg1yZjCdt9/tqsFeApHQ== X-Received: by 10.36.105.84 with SMTP id e81mr2813490itc.123.1520983108695; Tue, 13 Mar 2018 16:18:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.137.101 with HTTP; Tue, 13 Mar 2018 16:18:08 -0700 (PDT) In-Reply-To: References: <14A5C8D0-3F9D-486F-A20C-55849D70FC80@amazon.com> From: Andy Lutomirski Date: Tue, 13 Mar 2018 23:18:08 +0000 Message-ID: Subject: Re: [PATCH] x86: always use SYSCALL_DEFINE* To: Jann Horn , Dominik Brodowski Cc: "Tautschnig, Michael" , "x86@kernel.org" , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Jaswinder Singh , Andi Kleen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.