Received: by 10.223.176.46 with SMTP id f43csp1006951wra; Fri, 26 Jan 2018 10:14:51 -0800 (PST) X-Google-Smtp-Source: AH8x227v6WNA00q48yT4H/n7IXkFk7J6NcNGbGcFWKY8gIOzL0E0DKCA4A3ptzYPdK+DEHtYR6jq X-Received: by 10.99.106.202 with SMTP id f193mr16256532pgc.115.1516990491759; Fri, 26 Jan 2018 10:14:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516990491; cv=none; d=google.com; s=arc-20160816; b=i1A9UGBRYXnFAj9gxlepM9iWNIkqf3DM2FQH3ddwf08Ko2XMSsFZvSR5e4MPh3OVX1 6X0hrtCRqC1BQ1/ODnjnV2wSFWLBreNtPaXggqRd8WCrcCAuxauie8/V77DoGHxSVWIk VtYF8FrioS4eGNnkgus63actndn+Z8cFXdNqHj1+ch3yGd0RSmE/7YZvG/KgQfem1RoK 2Uc0Tzc16+wbguzN6sTDJnqaY8Qd7UNIQehX8gk0ZzjSkXKk52Q+TjI/8nzi9+P2y+TC 7r0hSN8MAKmezjZdNs2Cm3CmXylv6wuiyXnKTiEmjHejTqRFxQn5Zro0qfCznbCn9LIT W6Eg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dAD70R6N/4HsaNmLtXP5Y8IgFdECIVhqqK+xNG6KL1A=; b=s1CVk/wgdAwTrPnvc6VPUu8L5kOewBKmLhVLFTX9Gs//RO+BDjy2+3gUGaTuT/JLGZ ivfggok6Yy43XEvxvq+AC1YALwE+EPVAdTnvLckM/CyMjEVdSTIBFljaw5i/SEt2eJ8B ujlg9dJf54bgaIzji78yb/pxsWYvrm/EI3xyqBUO9b5Cj9jjSdQ2fLvTDIpqLASN2lkm XE9Nen8Oh25H8+d/Pr8X8gz/85a/a2OTluFK9I8OGIK3Y17U0s5jjom223M81NMMFRiN NvhAw/xPpJ2RquT/TERiP0Cb8KYqjbK3ysVBVc1Y5eSvbsScb4N6pSAGyUBEL5CMNnL9 e/Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SLUkdhRK; 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 bb5-v6si1413520plb.93.2018.01.26.10.14.37; Fri, 26 Jan 2018 10:14:51 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=SLUkdhRK; 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 S1752369AbeAZSNl (ORCPT + 99 others); Fri, 26 Jan 2018 13:13:41 -0500 Received: from mail-io0-f178.google.com ([209.85.223.178]:34457 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbeAZSNk (ORCPT ); Fri, 26 Jan 2018 13:13:40 -0500 Received: by mail-io0-f178.google.com with SMTP id c17so1324166iod.1 for ; Fri, 26 Jan 2018 10:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=dAD70R6N/4HsaNmLtXP5Y8IgFdECIVhqqK+xNG6KL1A=; b=SLUkdhRKUcrVK/i0s+hd1Q9y/7r9HF8bLEL6PMJ3KHGFDXzrzfmHYwoGhtzThE2dtg t7lutFxdcpQixir8lWpdCSo40cS4r6Y615LtJ1tk7Zg1kccPxw3hJVLuJtXsMXoXc5Sw a3vW+Pv/cgYpSlfd2cA2q14ukcP8VFry5KYxlFE/8bc7Fll2+Otlk3OOPCyPYQK6LwF1 DWiz69x+oRwu2f+j4k955tcGtnsnZJyZaQ2SabJfcDkGG/duDd2TfytxwLKnUKcRZr9p wCPAsooFR7OCNSRmbkzelvhyGh3APp09iy4En+BI8YCS1oLMB7rY/Hf9kH4/JnEL40UR 17lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=dAD70R6N/4HsaNmLtXP5Y8IgFdECIVhqqK+xNG6KL1A=; b=BkXm4m4Blf1G2AP72nMq7aoxJNtScnqMjfAIMPg90RxqRGSFm9Z8dfGoL63QZsRksH CTR407xwjaK3DNLgMNL9fmttUnqijcXvXrb1/VeVkuNTEcDWWqABPgPhgrIwnVUhXVgS NmJVvkYPe0jpuG1iJMwvt9hQ/fKGnYyDa46krzrM8/x3yA49xqZ1uIwJGqU7afjjwLx6 ygyuEsWGC9McPdia/51W+b6aK+qqFztppRkpJhxPnzuVCGWkj+xGstKRY/CBB/PZfDtP khQ7ki03RciEr/rwowKBh5OJwFEOm/X7S/6pAAhQV6o6O1v6Fegd2ePTql5Yw7K/J5rz ysgw== X-Gm-Message-State: AKwxytcg4TMehbOSbjSWp7rLtlesxsxRhlF2aOnttDolcSmVEyyAdRpn hG5YI1fjw1mOBTp6+c+xz4pseJ4c21TjXyx2eMQ= X-Received: by 10.107.137.104 with SMTP id l101mr17156594iod.179.1516990419354; Fri, 26 Jan 2018 10:13:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Fri, 26 Jan 2018 10:13:38 -0800 (PST) In-Reply-To: <20180126180722.GA13338@ZenIV.linux.org.uk> References: <1516976647.5438.6.camel@linux.intel.com> <20180126180722.GA13338@ZenIV.linux.org.uk> From: Linus Torvalds Date: Fri, 26 Jan 2018 10:13:38 -0800 X-Google-Sender-Auth: SK9yt9gYxXo4eqO2BWRr9IDhpJI Message-ID: Subject: Re: [PATCH] x86/retpoline/entry: Disable the entire SYSCALL64 fast path with retpolines on To: Al Viro Cc: Andy Lutomirski , Alan Cox , David Laight , "the arch/x86 maintainers" , LKML , Greg Kroah-Hartman , Jann Horn , Samuel Neves , Dan Williams , Kernel Hardening , Borislav Petkov 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, Jan 26, 2018 at 10:07 AM, Al Viro wrote: > > Umm... What about other architectures? Or do you want SYSCALL_DEFINE... > to be per-arch? I wonder how much would that "go through pt_regs" hurt > on something like sparc... No, but I just talked to Will Deacon about register clearing on entry, and so I suspect that arm64 might want something similar too. So I think some opt-in for letting architectures add their own function would be good. Because it wouldn't be all architectures, but it probably _would_ be more than just x86. You need to add architecture-specific "load argX from ptregs" macros anyway. Linus