Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp472669pxb; Wed, 18 Nov 2020 09:05:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuqgRv6omUw46mnG52HT1TxxlSeF0/6X52mTZpZao9LncNjFkV+LMhlY9fa3JSmqjkqeuk X-Received: by 2002:a17:906:f89a:: with SMTP id lg26mr7000579ejb.294.1605719147897; Wed, 18 Nov 2020 09:05:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605719147; cv=none; d=google.com; s=arc-20160816; b=c1Gdtbn7kQLUBBrgS1EhAylPUtH8LuY9h5oynbGszEVtyhPJKRfGx1Z+gmzgZYFJUq u1UYGjgWNyZqB38mQSz3LbInFXhjhdgmiymWK4akBMNMbVb/7UawYzP3K4POe7p3zmpX gyzDlM2MQMRkWLaNm739YCnl1zag81iEYNueSje+/FQgRp4xY9HSXvXHgMIR9Wmxl58S 3YUpOXr9wXIN15jYnLoBugyUBxfwbGAefAlha/nnlIQFkne29tqV/OTnntJBiMZOh7L3 9zKlnl/1TMFzvWOjIlwlAlGr9EoadXv6Nt6gQHNVY+2Djtya8KYZzyN4kq87actQCKNN 5ZRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from; bh=klPtNC07pvnWqUKPpUoW+2lVTe7VeZQVlF3vVQRbm5o=; b=u5PO7dgNxZFm2WCzadJWBEfPyR6YXhsmahdUo0eRkQ1ffN7GnT2Wbdr8/p2SrVUClg nnn05LH7kKvH7kzM1gm1MLdaj3WFKlFvCsHHr9K7Wjkb4B26Dz+MZ6ScL2KtyPPNXUHJ RbunzGct/3CKq/zttq1UrxqsyqMGzSEnUkNVNU9tuBaw3RWBYVXjfllJ49G9uhIos9FQ cKiK4VS86dfsi72Jd60Pvgm39cJ/RjkVSmlt68V9Qsl8I16rjy+IQZbdq89ICdZi55hK ojlHRqQob8VEXQF1ZAT36fLjbt9Svr2wB4dhX+6fsnUVCfHqfsmwRUWZ1F3MA+B4XMG3 lyWw== 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 dk17si15538190edb.383.2020.11.18.09.05.13; Wed, 18 Nov 2020 09:05:47 -0800 (PST) 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 S1727312AbgKRRBn (ORCPT + 99 others); Wed, 18 Nov 2020 12:01:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727226AbgKRRBn (ORCPT ); Wed, 18 Nov 2020 12:01:43 -0500 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 E27D7C0613D4; Wed, 18 Nov 2020 09:01:42 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id E370D1F451B0 From: Gabriel Krisman Bertazi To: Florian Weimer Cc: luto@kernel.org, tglx@linutronix.de, keescook@chromium.org, christian.brauner@ubuntu.com, peterz@infradead.org, willy@infradead.org, shuah@kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-kselftest@vger.kernel.org, x86@kernel.org, gofmanp@gmail.com, kernel@collabora.com Subject: Re: [PATCH v7 0/7] Syscall User Dispatch Organization: Collabora References: <20201118032840.3429268-1-krisman@collabora.com> <87a6vfyrts.fsf@mid.deneb.enyo.de> Date: Wed, 18 Nov 2020 12:01:36 -0500 In-Reply-To: <87a6vfyrts.fsf@mid.deneb.enyo.de> (Florian Weimer's message of "Wed, 18 Nov 2020 09:47:27 +0100") Message-ID: <87blfuvbtb.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Florian Weimer writes: > * Gabriel Krisman Bertazi: > >> This is the v7 of syscall user dispatch. This version is a bit >> different from v6 on the following points, after the modifications >> requested on that submission. > > Is this supposed to work with existing (Linux) libcs, or do you bring > your own low-level run-time libraries? Hi Florian, The main use case is to intercept Windows system calls of an application running over Wine. While Wine is using an unmodified glibc to execute its own native Linux syscalls, the Windows libraries might be directly issuing syscalls that we need to capture. So there is a mix. While this mechanism is compatible with existing libc, we might have other libraries executing a syscall instruction directly. -- Gabriel Krisman Bertazi