From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga11.intel.com ([192.55.52.93]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fEFfn-0003h1-QM for speck@linutronix.de; Thu, 03 May 2018 16:57:32 +0200 Date: Thu, 3 May 2018 07:57:29 -0700 From: Andi Kleen Subject: [MODERATED] Re: [PATCH SSBv11 0/3] seccomp 1 Message-ID: <20180503145729.GX75137@tassilo.jf.intel.com> References: <20180503122914.GV75137@tassilo.jf.intel.com> <20180503140932.t63gcxlaohfnavxk@gmail.com> MIME-Version: 1.0 In-Reply-To: <20180503140932.t63gcxlaohfnavxk@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: > The other problem with 'site isolation' is that it doesn't necessarily solve or > even mitigate the problem: if for example malicious Javascript is injected from an > ad network, supposedly safely sandboxed, but it can still anomalously read site If the ad network injects JS on your site it can already read everything of that site in the JS context. So there's no threat on the JS level data. But I believe normally ads are running in a different site context anyways, because they are served from the adservers, not the site's server. > local data via leaky speculation then that's still a dangerous violation of > sandboxing constraints: it could read pointers to defeat ASLR, That's true, but then it would still be jailed in the seccomp syscall sandbox. Also if there's an attack where the pointers help it's likely already exploitable with standard spraying etc. techniques. > it could read local keys or other data it's not supposed to read. Everything sensitive (and especially keys) is supposed to be in other processes. > Once a browser specifically knows that it has fully mitigated against an attack it > can turn off any default mitigation early in its init sequence via the prctl, when > it still has full OS access and no seccomp isolation. All child tasks should > inherit that. Ok, so the browser has to then essentially work around that Linux bogosity. Would be better to not have it in the first place. -Andi