Received: by 10.223.176.46 with SMTP id f43csp752599wra; Fri, 26 Jan 2018 06:25:35 -0800 (PST) X-Google-Smtp-Source: AH8x227QLp/JPzrMebsvn6ZsvWHO/YlGRzybt4GZUDqKspgcwp6F18CaGRLruBHZGWincR3CctYx X-Received: by 2002:a17:902:714c:: with SMTP id u12-v6mr15012425plm.1.1516976735628; Fri, 26 Jan 2018 06:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516976735; cv=none; d=google.com; s=arc-20160816; b=Sx/5BgXr6+38snW5FG9rboGQSlcuosEv7FlAutl8GhDCcPt7f0fb9rL/NxzrJwPUU2 407yYxVco9f9H/yuD6rWB1TrS+SDLsnx0lb6Y5BdNqiB7WFkOGwmofZMjYuFQVtleovR epkzZkB5ROonHt+KDyyHffxjiGAtOZ25G4wRad3wbBTyruGZnon+qLFrbuQdjaoqgLVS Z4+XI+qkM93ZH4Q07jfQCRsMo52Wa0og/g7PxgfdcjJgyKdQUo2rG67nmb8HeWkpqVU+ 1FE29QyuGh24vw5rFYzUV1hO04nENsmVReF519ALMdDgjbWBEJJXGmSSaiqXDZJW5Cvv wLHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=n8alXpyKjkfyWEvfHjYF+8mOtBUpI4fPN6KbaZyVVlA=; b=NfUT4OGYZvpNeAFuR/SqtbROZ7lGXuUYAt56Osd44oYOlHzMVqBPIO/zCmjsixouaQ TQU2ysGjiQ3+gT4g+teYnNqMvRkAr9/YzSvhMCgopoSJAhb4uDEdc8mZMgdppPDJfzEQ +g/tikyGyoHjtMa1tPnF4US8S/vaOwV3YN6DHyXkWYuRV/Ku2WYqec29K6DJmbQnnj4F FapWvLTRjvMqjUU1uZv5/dNXMoRthgfbJg78D2hEnScGgcL0vDfkkAjxkGTE+yLvMrR4 D5OPWsGZLR96CQVP//BpuRX1BXMJ+u5aHf0yEuOFfabM0ili4dbw3srZOvvbBAkZqOq8 wRIA== 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 l3-v6si3226748pld.558.2018.01.26.06.25.21; Fri, 26 Jan 2018 06:25:35 -0800 (PST) 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 S1752545AbeAZOYZ (ORCPT + 99 others); Fri, 26 Jan 2018 09:24:25 -0500 Received: from mga02.intel.com ([134.134.136.20]:18228 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752271AbeAZOYY (ORCPT ); Fri, 26 Jan 2018 09:24:24 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jan 2018 06:24:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,416,1511856000"; d="scan'208";a="13350684" Received: from marinkox-wtg.amr.corp.intel.com ([10.252.25.103]) by fmsmga008.fm.intel.com with ESMTP; 26 Jan 2018 06:24:21 -0800 Message-ID: <1516976647.5438.6.camel@linux.intel.com> Subject: Re: [PATCH] x86/retpoline/entry: Disable the entire SYSCALL64 fast path with retpolines on From: Alan Cox To: David Laight , 'Andy Lutomirski' , Linus Torvalds Cc: the arch/x86 maintainers , LKML , Greg Kroah-Hartman , Jann Horn , Samuel Neves , Dan Williams , Kernel Hardening , Borislav Petkov Date: Fri, 26 Jan 2018 14:24:07 +0000 In-Reply-To: References: <503224b776b9513885453756e44bab235221124e.1516644136.git.luto@kernel.org> Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > NetBSD (and the other BSD?) defines a structure for the arguments to > each syscall. Goes back to v7 or so but they put the syscall arguments into the uarea so that no pointers were needed (uarea being a per process mapping at a fixed address) in order to also reduce pointer dereferencing costs (not that those matter much on modern processors) Alan.