Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp656713ybg; Mon, 1 Jun 2020 10:56:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcgZNYmhatyftMBHPJ6QDOkq+PWzGgO0XeEwC8gkcbmpZ/t4QhSSA8LvHfoin0nHRtvMXa X-Received: by 2002:a17:906:6a0a:: with SMTP id o10mr20047230ejr.192.1591034198387; Mon, 01 Jun 2020 10:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591034198; cv=none; d=google.com; s=arc-20160816; b=vnDanmaC+EMVbbtlG2dfRMuO1xCngIP2SigiNtsh+e8M/tq3Fh6vyTY1kE7GhfHPLp WEux7bm0dTubMszeIN2lt1buQ7z5HBrBaV/JoQWerdwjUh/AUfoQYL8BhFBVv9QCow7s N08b1ozT1ieRtGLqUlnY5OdAnZI9BpSnSKXyOucSgwqDn2Db3KbkHFIMTZWmAU/lIsIH auGbFG/19Qpt5oImFhYt6CYOvCMz4GmMuFO4kHWqV5RTdmHYWoBiiwLnXAEsNbLZDrTd IBQT1D9+44g5vAaWPqscvW+pJB1dZy9AROE/oA3PFbbP9KuUZJnq3UzKT1GC1gRENUZo u8sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:subject:cc:to:from; bh=8kODJPcHLvT5k2AYeQgcoZgqLKzhyUVGiIu+0ywa4Ks=; b=jbduqAL1rHdz6wZjKBo4aTnohgar85Y8eg91vO7wBeybwKheuLofboUGGM5L8Frfvv hg7hzzP1GyQvVpTzQHAAIOhnEPONHHLWw3LUfo5zv41kkpPtZoJXuSwcOCiNkn0TMdlx 4OtC3rzF61MH7nnEQlMe9zYf28HP8A2ls3+XCoddzusBewo9eW9ouxu2OLFXVkJ/tAPL WkYuHNCMupgxCiCXlZMEDsXwSx+8VIc9cwBHzrGKvBsOkEqDIs/Bo+VdaG/Eh/bfhEqv X347o9zMHOXQKBsI1/m9RaEMDXbEOkZ08C9U+qAHdgugVcnHQBk3eKjQ92gDSFXPdVio uucw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si109056ejc.659.2020.06.01.10.56.14; Mon, 01 Jun 2020 10:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727879AbgFARy0 (ORCPT + 99 others); Mon, 1 Jun 2020 13:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726113AbgFARy0 (ORCPT ); Mon, 1 Jun 2020 13:54:26 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D66AEC05BD43; Mon, 1 Jun 2020 10:54:25 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 7267D2A2519 From: Gabriel Krisman Bertazi To: Paul Gofman Cc: Matthew Wilcox , Kees Cook , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Thomas Gleixner , Andy Lutomirski , Will Drewry , "H . Peter Anvin" , linux-security-module@vger.kernel.org, Zebediah Figura Subject: Re: [PATCH RFC] seccomp: Implement syscall isolation based on memory areas Organization: Collabora References: <20200530055953.817666-1-krisman@collabora.com> <202005300923.B245392C@keescook> <851rn0ejg9.fsf@collabora.com> <9a512096-7707-3fc6-34ba-22f969c0f964@gmail.com> <20200531164938.GF19604@bombadil.infradead.org> <20200531173157.GG19604@bombadil.infradead.org> <9c1f9db8-5680-cd1a-37aa-5f494b034825@gmail.com> Date: Mon, 01 Jun 2020 13:54:19 -0400 In-Reply-To: <9c1f9db8-5680-cd1a-37aa-5f494b034825@gmail.com> (Paul Gofman's message of "Sun, 31 May 2020 21:01:46 +0300") Message-ID: <85367e7juc.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Paul Gofman writes: > On 5/31/20 20:31, Matthew Wilcox wrote: >> If it's the cost of the syscall that's the problem, there are ways >> around that. We'd still want a personality() call to indicate that >> the syscall handler should look (somewhere) to determine the current >> personality, but that could be issued at the start of execution rather >> than when we switch between Windows & Linux code. > > Sure, we can call personality() at start and specify the location to > look at, the only thing is that the location should be thread specific, > that is, based on fs: or gs: or whatever else which would allow us to > have different threads in different "personality" state. If anything > needs to be set up at thread start we can do that also of course. > > If there will be any proof of concept solution I will be happy to make a > proof of concept Wine patch using that and do some testing. Let me give that a try and share the patches with you, so we can look at how this implementation would look like. -- Gabriel Krisman Bertazi