From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AH8x2257wBHKsiW1d3bzsBF1qqdfUaMPYlYF7LHAYLa09PSTavt3zJ96VTlTGarptv3QzcvkWS8D ARC-Seal: i=1; a=rsa-sha256; t=1516976664; cv=none; d=google.com; s=arc-20160816; b=oJ+XVXuw2XBhcZkwfF8Dido5GEE+JpiRjgDUVKr2SLk1B+tdm5FMYL4t5icEsihWGQ vOPokrsm9jZDlZm6BSPIxhQsEKK5W2NSiStrybVwv6pOzU43vkZi/6rO4CG2YmpU4Aj0 W/PGOxySpjiX4tqQx+nUUrTLbX9PGxXYrB3h5e9s03xES63Gi854bCqj9akxsQhh1x2W 9bleGXz8ivhVog6Ivh0WLtxZ7W5cKlDFHrpJ968G9B00BqQholnuZ6hChBCwT2o35qez OJseDUPt1yW8nHxgDDD6+UDRC0vskftFwTQxwP0uEXbs1x3pdQ3xfTb/QH7X+owFq8SY 1KWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=n8alXpyKjkfyWEvfHjYF+8mOtBUpI4fPN6KbaZyVVlA=; b=RFXcgBBl7Ff9ikJxTtxnbAqKVRNSQLik7gxFq0jxINVZBBfgX2a1UypxMWqj4F/HUu PDKwohBMslwnIZY5M+8XCCX7JvdEvI0etaJ9YHuPrqND/IUEbep+Gx62jlsgKIRJ5JYj 2zdab1fOdiU/HohrQifxstaCmnQxqkW+A7TaxwOf8y+FlSUSzHdtkHoSTcoiDRApKcNF 7dXzm1stpWJHO7J+LzWFW/qN09A+SiOGDFRYgTvjTd3BrkVGylDBux6cFJN17D54aID/ 4IpU5qtc6BK6KvXPWRIJHNt/KaP935H1GQ3t5kmdARisFXDmsREGNHORlLLi2PN6vT5m tRLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of alan@linux.intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=alan@linux.intel.com Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of alan@linux.intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=alan@linux.intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,416,1511856000"; d="scan'208";a="13350684" 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590316784671066673?= X-GMAIL-MSGID: =?utf-8?q?1590665322863262896?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: > 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.