Received: by 10.223.176.5 with SMTP id f5csp3401718wra; Mon, 29 Jan 2018 12:39:24 -0800 (PST) X-Google-Smtp-Source: AH8x227jT5jbG8CWNjhqclhLzlo6Z5LP4gZosht3NOY+fb/aYzPBCNnUqvBmg7kv3WqfIJslZ1mO X-Received: by 2002:a17:902:9a41:: with SMTP id x1-v6mr16246940plv.256.1517258364587; Mon, 29 Jan 2018 12:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517258364; cv=none; d=google.com; s=arc-20160816; b=UtFRscyzOOpXyTnKbnnrhWMoGGTU9GSHOwabyApamSu2okVhN6QUh/eDM6h6atVMmB vKExd+9tN3ws3kvQPbEGtg9Nv0SMZykPl+1BBQVir9xOd3MIxXHlSRYCAyf40nsk4Ynt LcZ84L0o6rVPjM8IUeLEmQTfwew/afZVUpC7jtAvuODUzIQM0CddDsrqmXs/cS3WgRtG U+Ls9VjtnoXcuoOekRXXSJXBui+yZZ/fSsLkYreI9PeyQzGxjCr5h7J5x0zgqIcZmDu1 vekGbTDsC/VAh/zrrKOHq5ZuJWMEKY79JgKCxOD8jl2qzvfacZepDuYv3i23QvayhoAS ONXw== 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:message-id:subject:cc:to:from :date:arc-authentication-results; bh=VhOOaASG2bVx4dNiHghS72toyh+B1T1oCCZl/DCQPhk=; b=Q1IcUIuCzGs3f9UIgk4GGSikshYVYkqqmMiweEFTq3SWcYjPKosnDffRrYgJC1bNva oIwCQMeH9McWBGCCLoHaM0eqLjGjjB9r54UHRICtXBveMY908RGpVxDHp2N/lUZoHh5n 8UbT35UtCCv71X2+vVRCDqJXrYu5oXWIi6naWiYY8KmrQmZy2auf5a196lBlQ91Ytxq8 6LuiWPELbSheKjY8goinKNSs3uMoqEsgou+HQioIwwmxiqI5pQGQ+dujJnTMTLYBMl7A ShRtCrd/msdkkrq0TUIB8wkVv34zbtTskcDOXaasSoIpsiy3ZjKPTClyCHHJpSFnMdcv hJiQ== 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 y190si7983349pgb.728.2018.01.29.12.39.10; Mon, 29 Jan 2018 12:39:24 -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 S1754115AbeA2UNY (ORCPT + 99 others); Mon, 29 Jan 2018 15:13:24 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:58520 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753049AbeA2UNS (ORCPT ); Mon, 29 Jan 2018 15:13:18 -0500 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w0TKCVpe013620; Mon, 29 Jan 2018 20:12:32 GMT Date: Mon, 29 Jan 2018 20:12:31 +0000 From: Alan Cox To: Pavel Machek Cc: Martin Schwidefsky , Dominik Brodowski , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org, Heiko Carstens , Christian Borntraeger , Paolo Bonzini , Cornelia Huck , David Hildenbrand , Greg Kroah-Hartman , Jon Masters , Marcus Meissner , Jiri Kosina , w@1wt.eu, keescook@chromium.org, thomas.lendacky@amd.com, dwmw@amazon.co.uk, ak@linux.intel.com Subject: Re: Avoiding information leaks between users and between processes by default? [Was: : [PATCH 1/5] prctl: add PR_ISOLATE_BP process control] Message-ID: <20180129201231.4ebec569@alans-desktop> In-Reply-To: <20180129131446.GB4669@amd> References: <1516712825-2917-1-git-send-email-schwidefsky@de.ibm.com> <1516712825-2917-2-git-send-email-schwidefsky@de.ibm.com> <20180123170719.GA4154@isilmar-4.linta.de> <20180124072953.50851fec@mschwideX1> <20180124083705.GA14868@light.dominikbrodowski.net> <20180124111552.GA24675@amd> <20180124134803.3e11c6d6@mschwideX1> <20180124190105.GA30107@amd> <20180124204622.1f7b0de2@alans-desktop> <20180129131446.GB4669@amd> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 29 Jan 2018 14:14:46 +0100 Pavel Machek wrote: > On Wed 2018-01-24 20:46:22, Alan Cox wrote: > > > Anyway, no need to add prctl(), if A can ptrace B and B can ptrace A, > > > leaking info between them should not be a big deal. You can probably > > > find existing macros doing neccessary checks. > > > > Until one of them is security managed so it shouldn't be able to ptrace > > the other, or (and this is the nasty one) when a process is executing > > code it wants to protect from the rest of the same process (eg an > > untrusted jvm, javascript or probably nastiest of all webassembly) > > > > We don't need a prctl for trusted/untrusted IMHO but we do eventually > > need to think about API's for "this lot is me but I don't trust > > it" (flatpack, docker, etc) and for what JIT engines need to do. > > Agreed. > > And yes, JITs are interesting, and given the latest > rowhammer/sidechannel attacks, something we may want to limit in > future... > > It sounds nice on paper but is just risky. I don't think java, javascript, webassembly, (and for some implementations truetype, pdf, postscript, ... and more) are going away in a hurry. Alan