Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2063855ybe; Sat, 14 Sep 2019 07:14:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI2Fn/siozLpQ6iREfkzqQkeTsA7c/LyolaQNDMLw5C+9mBtIBFjZWTTJfwYdUU+e+C7L9 X-Received: by 2002:a50:d55e:: with SMTP id f30mr53863155edj.35.1568470493019; Sat, 14 Sep 2019 07:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568470493; cv=none; d=google.com; s=arc-20160816; b=Cjndx9d+P+y9Uh9hHMuQl95O0dk3D3p2nA0ajZOLRCnQP+vDNR6LuBYHndTfm52der vQ0lXB56HtG24K0DeSdrpuhCmWZQdGC89cfIvm+FixRTx9zmDGizR0hbK0LZ6CIZF7Fk t5NaSyXYleXGO/ndI3/2GUlEizSefhRm5WkSK1+nkDd6kUk/BsclkhqckudSeVMOcu73 2q6o62ww2BZv5DetwlNGwK1DO+ef2wte18uFhZz6jG1A7GmEghy6EAwiwF1+h3aL1Zoa Pio7hsWJru5yJFQb7zxCXzizfH20kpIFs+mtYnuGXCEhl1GJ8zqxfQm8oPPRUfn/oGv7 d6Zg== 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=ByWKtpvQqUKKvg1jiX3mJ0tx0yCgkYQnklhIV6UCr+Q=; b=VRqDCJMxm8op2QrwbgN/fDbBwNDdXrKv+ecjr80ZvigI2Y33UitDnjTjH1ojn+niPD 2xGIRRaQ6Ohg1neqGgGFgYcCOQVEbWsT87dv9Xl/OYZ9kQfmvSycD79JVepan8r+716U IUwyIswA1un8o5dqZBUj/I5nGd+xzsN3WLqiDPRQseU4EOCqP1tTbpu0ibghqkJY0m0U DPC6KhGYwklG/P5GL8QiZi2+m0TN215Tz+8ETqlWmxVcBPgMHidak6cq882Z7iRt7Fur Diqnv8O7/gCQZ3zRRu9fS3x1wHfo7MhjfF8BTM2qP71180lolDd7fcrYlIH/utcpOfDl yZ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Nvjj2M1k; 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 g13si1788410edu.4.2019.09.14.07.14.29; Sat, 14 Sep 2019 07:14:53 -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=Nvjj2M1k; 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 S2388643AbfIMX24 (ORCPT + 99 others); Fri, 13 Sep 2019 19:28:56 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:41579 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfIMX24 (ORCPT ); Fri, 13 Sep 2019 19:28:56 -0400 Received: by mail-vs1-f65.google.com with SMTP id g11so19373074vsr.8 for ; Fri, 13 Sep 2019 16:28:55 -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=ByWKtpvQqUKKvg1jiX3mJ0tx0yCgkYQnklhIV6UCr+Q=; b=Nvjj2M1kY4o9x04H82VV1kfGtBWY77i5j95acGyNGiYlvKU9WiTHN+u1d1oqGmVOnV gZQHFNNnioWNYDmpXf3lBtVIlKU3r4Gp5O6bece1yjI7h1PCOgpvy7WalBD8C4Hn9ReK UWIy5/CVg5YkPswKr+jOQWIrB9tD341sq3DQScSpnmBx+r3Dr4fW8jriqFUAdWkNOLUs UxSDaPJgqTSYfwh1zqNCFh8KCXyardbwCMg4szE3cnI0pl4jPueqqomtFq4Ez0BZ/cy2 XP/epAXZ9uY1dMGIII90dIhsioOxLOfZ2Ua9QXzyU9ypynei+UOpF63YHkrJAwCNA3Nx BqeA== 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=ByWKtpvQqUKKvg1jiX3mJ0tx0yCgkYQnklhIV6UCr+Q=; b=MNc3wQF6su4Y99C3rvQAT+O/JUTX7VIsY76P7xDQVlYrsYy5CVXWOwYClBhL7N6RVk mm5USmu7H5GutE2LDDT3QBoxsaZOQbV9q8CBKX+QseJ1UTW6PLNukWUC0egchEQkgfel N2afsOCGsVtvIRtTyGC95uGFDelCotrVQ1Pf7AtvRxwVepc0OXCa35GmUmBTwSZK1sL3 qUGmikCI83TdPT9CG4inwpFfczj+pxJnYjtfR1wqmkwPShk7PjGszCRT7ra9eVs3Unxz kfMMI3D/c0+dAFWYMPp8YqyyAysMU9vZCmY/Oa01XOAffI1IQO5exPp0Z0Wju44mF/0q KFjQ== X-Gm-Message-State: APjAAAWKCQkQNYVTRr9cv0BpsJGCKiPcRq5BYXMWTcHlszTj7nSMfgiI C/rVfQ6B4QMIUl46cLVa/MXmoFYno4Rni7WyBdVzaw== X-Received: by 2002:a67:e219:: with SMTP id g25mr28195491vsa.112.1568417334723; Fri, 13 Sep 2019 16:28:54 -0700 (PDT) MIME-Version: 1.0 References: <20190913210018.125266-1-samitolvanen@google.com> <20190913210018.125266-5-samitolvanen@google.com> In-Reply-To: From: Sami Tolvanen Date: Fri, 13 Sep 2019 16:28:43 -0700 Message-ID: Subject: Re: [PATCH 4/4] x86: fix function types in COND_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:46 PM Andy Lutomirski wrote: > Didn't you just fix the type of sys_ni_syscall? What am I missing here? The other patch fixes indirect call type mismatches when the function is called through the syscall table. However, cond_syscall creates an alias to the actual sys_ni_syscall function defined in kernel/sys_ni.c, which still has the wrong type. Sami