Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2063308ybe; Sat, 14 Sep 2019 07:14:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxX1Nfu72Qt1UJrho/gbhWtsQHJnul+Egw3hcqtgujAwfvrtEeMRgAlIxSiO1xCPfDNyY6z X-Received: by 2002:a17:906:5957:: with SMTP id g23mr7187897ejr.312.1568470465339; Sat, 14 Sep 2019 07:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568470465; cv=none; d=google.com; s=arc-20160816; b=bdVKZlj21nJIuYB5jAEqfOw4b7AX7k5lhD/zuCNX3477P9M9oBtHkaR+8MWwmWwQOy ikshD6GLCkP7IGb51BSy3YoiHynLd9ts5Ey/if/hmE5q6uXfnXB+An7WFskwI4YWJ5i7 PX4df8Zxa8WxkEevxrdkRMFHyZh4sleGq+ksurS61t5x7l5bj1WP5JNXWTuw/4TkB0XP huf4Pc5+l+iP8c9OVwXjoqPA5JL+vJ/NDS/s8+oN+46Ssz4EMvshv6nyccCJKZO65nAG vwK3me2Maq17SX+XSa/SUOC8E/qjk2ZzTnt4AiEENNiWPh9jnvDbF4p8iZdejjftGETj E7YA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=BuqlVIgEPj4t6xwCAnrh40E0/Lhnf5UdZRgHKliR78E=; b=GtszoNbuaouBMDnfNg74r0ErnyApThRxw+r1yKM7I5IMS1E+4iCdmf5YzIqYvI+oQL dOR3FfYuFKOfziYcSZ1MXLhkyyRHuSLmWItdAYOy5Q7wmAkvDqRmbNRtP1rCNscW4oKe Qw4lAKSyMqyFjHxC/FrNGixsbNTJKBdQRFoB+QsE6S16UPmXfIUTteU5YASGRe1lmHUn 37RxYUwUFz03UyqE+we78l1cjk9n5gZ1QzT5GFOCn8UGg+4KwJBzzNH/praZ9SONjU/W 1ahZfz5wBlHqrRj2hD8DbYGOMMeXNPrp3X37xZ71wPR18oHzY21PsJYXD/VhFKTgpNu2 Wh3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TWMQzCqG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk4si16594845ejb.161.2019.09.14.07.14.01; Sat, 14 Sep 2019 07:14:25 -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=@google.com header.s=20161025 header.b=TWMQzCqG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730342AbfIMX0u (ORCPT + 99 others); Fri, 13 Sep 2019 19:26:50 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:33710 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfIMX0u (ORCPT ); Fri, 13 Sep 2019 19:26:50 -0400 Received: by mail-vs1-f68.google.com with SMTP id p13so992653vso.0 for ; Fri, 13 Sep 2019 16:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BuqlVIgEPj4t6xwCAnrh40E0/Lhnf5UdZRgHKliR78E=; b=TWMQzCqG86u/8Hd28PnVMaFkD8Vi7hNvYq3WNU0xwCh0yXl5lxLQoo+DbaE9pAKpyD Y6a6IjJkdEum2GDoilsVr36YRga/bb3L+Zz/7OgXYkO7keuc2EvBDEtdKx73XGd6w/K2 CvuvXcHam4MVf5FUAZjumSeNv+s+tZp/bmlSRsx0QhFvtsUtnhyZiMJ9t7KYMXoJhz5b ck9PvONmzY+mcSuHM59SD5UJ9VZEj0dXWTPjxKdA+dmo4lvHQSJSQ0VlemCppPM1+FCS WjG2KsUWhbNKsVXAB5+X90532MBnhlc/JVVyLyQdpGl1bcWxkvtO7Svd/tlSojydmioQ 9XUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BuqlVIgEPj4t6xwCAnrh40E0/Lhnf5UdZRgHKliR78E=; b=P2ZXxLunWU1abUf1McRGdFqvtBcRt1Tb1fWfM3x4gc/wQQEDHnt5ko2sKiS0BwY4pc dGUM+QNtwJdlNsg1sx19U60rWj55+92jzftcALsgtqSnWbltW1MD7ymqkzSaVUcIXWVG coIpMB3X97BKkhb6DeIauuQmtIEHt/V6PvUk/wkt4cYp7TdNhZmVFJEaosQzBn+aDOJT hBsau/2+ZpcFEyzQLv4G+fL7tcbk1Gt5rcw7AXxemadW4CKmjOQDvz2FaVo8Z8DC9GlQ +rzKUbKDvStsE91selJdT4CmAKIHbEG58xb9fH8O+Y7jU4Lf+q7Uwo6lDcMIFegYyv2G 3esw== X-Gm-Message-State: APjAAAW7j+VsF1tykO91bwdBKSPVuKjTMrr98FWtYydo6K41uqW955Lr a7N6Qto24iP1C/DitF8utWl1MUtuW9PTeixcfvAFvQ== X-Received: by 2002:a67:2606:: with SMTP id m6mr6026464vsm.5.1568417208929; Fri, 13 Sep 2019 16:26:48 -0700 (PDT) MIME-Version: 1.0 References: <20190913210018.125266-1-samitolvanen@google.com> <20190913210018.125266-4-samitolvanen@google.com> In-Reply-To: From: Sami Tolvanen Date: Fri, 13 Sep 2019 16:26:37 -0700 Message-ID: Subject: Re: [PATCH 3/4] x86: use the correct function type for sys_ni_syscall To: Andy Lutomirski Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Kees Cook , X86 ML , LKML 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 Fri, Sep 13, 2019 at 3:45 PM Andy Lutomirski wrote: > Should this be SYSCALL_DEFINE0? 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? Sami