Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4686967yba; Tue, 30 Apr 2019 02:41:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQj9YHL5/BuYUtRlroQuaxyHbnjPzDD+VrH8tIN+Tv8H9puK+z5tx0/sUb/tS+zZ2mzT0p X-Received: by 2002:aa7:800e:: with SMTP id j14mr68008904pfi.157.1556617304412; Tue, 30 Apr 2019 02:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556617304; cv=none; d=google.com; s=arc-20160816; b=aHx5dDTe/yM1Q2s+xf7Hi/MkfekG+yVn9vLFFIzaecOIpxLeGzgI5EpvypWoZf6rte yGrFWNO1tvrJ5zmJMBLNDW7v5zcgR/3Grp6a1nIZ0LoemsOmz16xtOFY4JMTo1JZMPUf RY0uRZtlFArOd66cpVKiRxQ75w3H5Sca/WzjWbum1VGNsCQZVGnj1nd//8aDbpYdMIq6 IpGsQdYzQ36MfQcsOjl6Wond3nmdLmoBWHvjqC6UIM/RyUTwaJRz/T2T++fQj0ZNRQbZ ElPqUqWLpjBLP3038GNjcYvJJ4YAsvxzBKdcWxLj4cXsf8eb5bSArEkvRK/G/ZdeyXHX 1J0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=R59xQNltNlo+UQspZjbwof7CktqW9+HwkEeV2CRgeuU=; b=WPhG8s/1rxyqiKAbSq+q6KUAhr5X0bmSXoZMXGspAc25pCn4DyXeZzp0GRGiL+f+vG PPmUrvlbv9XE7vdxTYJwzorbVMt1iIFcNtpgEobbImFbQ1d6H70H9GvHjBpijp5N3YRf IfJFkwEYfse3DSRjJRxDYe0h1cwgH5zhZ7a0Rvms5mTIFTA++6bo+6047krNBnHpu9WI WhRRpf/oZxdZoJXwRbGrxU25xGCNt0ZiOpWp1oVB7o22jNxikqD0Ga+hYI3bfVzMXCiB tE7oal5GcvzlNAMyKVlnBhtHSizPl47ozz8tP7S/QdaRfMr5TE2P4eLDf/Duu+KbIBx7 zqog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QOy5xYDi; 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 y3si16668291pgi.349.2019.04.30.02.41.28; Tue, 30 Apr 2019 02:41:44 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=QOy5xYDi; 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 S1726882AbfD3Jj1 (ORCPT + 99 others); Tue, 30 Apr 2019 05:39:27 -0400 Received: from merlin.infradead.org ([205.233.59.134]:34616 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbfD3Jj1 (ORCPT ); Tue, 30 Apr 2019 05:39:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=R59xQNltNlo+UQspZjbwof7CktqW9+HwkEeV2CRgeuU=; b=QOy5xYDiWYSE3dg+lHcIEahnZ yso18XfZ2dJ+dYjUgeLSEj/9WsOa+WoKe+RQdMwsrNPXH3R6Xhq0TaOucgTPKijsid30226nZatGl pM3K0mFG5EGNvuvf/5r6+NLizmdw3kivj/5U+4ZRLWYOJgEP3ALrMYw5K99gEmJ7gNJo9VuqYPW7K +nik/sRvL/cofQIX6Qa6NnSG3Yk5PliBKEizrH5pibNe0KF0fxrUm9ipNL4VRP2k5HxSPYfaopNvG tZukHvNBTQgyf0/bTcSppTp6YdqDpsTc1X0cEt2RvMSGu1O4Q31Pj4PEoJRHsclvVgq/wI5oYG1A3 N5wdO5xFw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hLPE4-0007rz-Ir; Tue, 30 Apr 2019 09:39:01 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7510F29ACFA27; Tue, 30 Apr 2019 11:38:57 +0200 (CEST) Date: Tue, 30 Apr 2019 11:38:57 +0200 From: Peter Zijlstra To: Ingo Molnar Cc: Andy Lutomirski , Mike Rapoport , LKML , Alexandre Chartre , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , James Bottomley , Jonathan Adams , Kees Cook , Paul Turner , Thomas Gleixner , Linux-MM , LSM List , X86 ML , Linus Torvalds , Andrew Morton Subject: Re: [RFC PATCH 2/7] x86/sci: add core implementation for system call isolation Message-ID: <20190430093857.GO2623@hirez.programming.kicks-ass.net> References: <1556228754-12996-1-git-send-email-rppt@linux.ibm.com> <1556228754-12996-3-git-send-email-rppt@linux.ibm.com> <20190426083144.GA126896@gmail.com> <20190426095802.GA35515@gmail.com> <20190427084752.GA99668@gmail.com> <20190427104615.GA55518@gmail.com> <20190430050336.GA92357@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190430050336.GA92357@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 07:03:37AM +0200, Ingo Molnar wrote: > So the question IMHO isn't whether it's "valid C", because we already > have the Linux kernel's own C syntax variant and are enforcing it with > varying degrees of success. I'm not getting into the whole 'safe' fight here; but you're under selling things. We don't have a C syntax, we have a full blown C lanugeage variant. The 'Kernel C' that we write is very much not 'ANSI/ISO C' anymore in a fair number of places. And if I can get my way, we'll only diverge further from the standard. And this is quite separate from us using every GCC extention under the sun; which of course also doesn't help. It mostly has to do with us treating C as a portable assembler and the C people not wanting to commit to sensible things because they think C is a high-level language.