Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2081274ybe; Sat, 14 Sep 2019 07:32:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOOlc+obR/eleSAdnOY0HpMbA5RWZtxKvrYSVVs58llNApNnHj3Bkp4ZNIIm5LGhu9MxQd X-Received: by 2002:a50:ce53:: with SMTP id k19mr52849060edj.2.1568471542216; Sat, 14 Sep 2019 07:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568471542; cv=none; d=google.com; s=arc-20160816; b=yewZdzrK8zhrWD1GyK+qSepsx9NMB0DAgI2r4AsSMWBl3F+w96zzIyBlQfwOK69rcR DRBKen9PmlETXfymfef7WVJ3rMYuVE7+1zs9DKQFcjEGQkzgH7PfDpPrKkdxw3eZKGSj ulP6hEZztVN8NHFBJCbc7xyGDtKfCP6WTSmMER5RPz92lJdNjYq7Yol1qy+KMrSs9MHn ITbq3/5SqrCO0/Dx0xxUBap3ej5527wti203TCEVI3Gqla6fZ4PvbE5LWRVBjmMcFos2 JLTYaZ3jUQ6doP/NgCpV8mWHdkrQUNj75HklbrIMQZMvh6cMTaUTT2N9BrEzOV3kV/H5 HWdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=5es07BvzqsMy7pziZwvTU1930QZZgB++nX0PDauOi1M=; b=VA6ploZXnPUP4MOAFOYW/m/NESiV87KLCLDNhzwPVh6Q1FfBanLjkI8MtKq+/EkQOi OXH5xtTAnQy2/PJbQbWJsIdW1aXGS4EEmdz/OcXy6a8QdtMHnIRdAC3y2QDfNULc3vPZ gaflzVHOVU4iowOlHbTuB53RrV8JXUmTunFPYrnq1EHj6vg01j1UlE/JnaF1i3w3Do3d smKqYKxAmI9/7AYgm1CBPnyXdPSiRUJ0ouGKZR93Ub4Ljpv41FqL6kbGRPdK2iIZvl+I ncTwQvKRXQ2O4nIs4Nv65r8oQYohbCpFMFzSLD/dP2bF4iwQ27oCE0HL0znrtuoEHRez C3ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=PeuljHJ7; 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 z54si19749717edd.337.2019.09.14.07.31.55; Sat, 14 Sep 2019 07:32:22 -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=PeuljHJ7; 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 S2390558AbfINA1p (ORCPT + 99 others); Fri, 13 Sep 2019 20:27:45 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45127 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388132AbfINA1p (ORCPT ); Fri, 13 Sep 2019 20:27:45 -0400 Received: by mail-pl1-f196.google.com with SMTP id x3so13932821plr.12 for ; Fri, 13 Sep 2019 17:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5es07BvzqsMy7pziZwvTU1930QZZgB++nX0PDauOi1M=; b=PeuljHJ7nNghdeskilqAwYi19w2xaTohXkf5vS6WzH5RIsK/9TxcokHMYBjm1uFGC+ Ahh1L+ipBBDTXrs0dCB4N9aAZYrJ/d7Q/YFmFW0FacB0AJ5kFZKXwUwXBri16Jym8JiY M9l1IODj4oWq6fuCgmwMVx4UD5cO8/yfzoQoLA1HVB0gBUEdm7dN5Q+YRdVXFGWBOUq5 PgoARg9tvA33d2DLIb4LYXDNyKG3gPbKXZfGHq5/b7WUFm3wGc4QyrNwdfz377Wd97n7 lBzixn0YeC0oJ72Z75nKWFPIG60lyL2k8M1+UpSqaAGk4bPLafeBJKkHPC3yVCRL146l BkAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5es07BvzqsMy7pziZwvTU1930QZZgB++nX0PDauOi1M=; b=OCB5vzBMHc4QgEo9uf6YlIwpjlFT7kjyLSEdKMGgm/p8jjc/KlQkbCAMrwo9gkxUoc dW45Iyywqm2w0OuUoDh1u3pWNZ0M+6bzqsm1YYOXO06CYbcs57ZGRsY31UhhjSVmR5vK tol5WoZdNIei4hF7g0ylWV4O78P0VA14b86EEJKK+41FHNlpXoJoy11qsQZ/PfGoOUC1 Ix8g6Pu7IhcMuBuP0sZD8KW9exBR6WAEQdQLkJdyr5C4YfF9FDURvtqhX3Bn6bPjJZCW +yeRXU/JxGbj/Cu3qkkA4wReIIu9m12WgegPlJFiB4WedYdFxLnPmoRWONz3kTDnybpw EWJA== X-Gm-Message-State: APjAAAWFwuw625uymG0VVhNhg1Xwz44o9XCOPLunHoVbTiP3Dojy9gqt bpOhCjFJYKxB7kLauwND5gMlOA== X-Received: by 2002:a17:902:8492:: with SMTP id c18mr53013544plo.279.1568420863279; Fri, 13 Sep 2019 17:27:43 -0700 (PDT) Received: from ?IPv6:2600:1010:b020:48a9:95f9:675c:ced:7824? ([2600:1010:b020:48a9:95f9:675c:ced:7824]) by smtp.gmail.com with ESMTPSA id s141sm43006659pfs.13.2019.09.13.17.27.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Sep 2019 17:27:42 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 3/4] x86: use the correct function type for sys_ni_syscall From: Andy Lutomirski X-Mailer: iPhone Mail (16G102) In-Reply-To: Date: Fri, 13 Sep 2019 17:27:40 -0700 Cc: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Kees Cook , X86 ML , LKML , will.deacon@arm.com Content-Transfer-Encoding: quoted-printable Message-Id: <9E76DD0A-7FB0-4BDB-A8B5-920265337ACB@amacapital.net> References: <20190913210018.125266-1-samitolvanen@google.com> <20190913210018.125266-4-samitolvanen@google.com> To: Sami Tolvanen Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 13, 2019, at 4:26 PM, Sami Tolvanen wrote= : >=20 >> On Fri, Sep 13, 2019 at 3:45 PM Andy Lutomirski wrote: >> Should this be SYSCALL_DEFINE0? >=20 > It can be, and that would also fix the issue. However, it does result > in unnecessary error injection to be hooked up here, which is why > arm64 preferred to avoid the macro when I fixed it there. S390 uses > SYSCALL_DEFINE0 for this though and since sys_ni_syscall always > returns -ENOSYS, it shouldn't be a huge problem. Thoughts? >=20 I don=E2=80=99t see why all syscalls except these few should have error inj= ection hooked up. It=E2=80=99s also IMO nicer from a maintenance perspectiv= e to have all syscalls use the same macros. Will, is there something I=E2=80=99m missing?=