From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A449C433ED for ; Thu, 20 May 2021 06:33:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 711B06105A for ; Thu, 20 May 2021 06:33:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230441AbhETGeU (ORCPT ); Thu, 20 May 2021 02:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbhETGeQ (ORCPT ); Thu, 20 May 2021 02:34:16 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E6EC061574 for ; Wed, 19 May 2021 23:32:54 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id et19so16396353ejc.4 for ; Wed, 19 May 2021 23:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/Men5rmBujePBODaPqTxdL7d5Hadu/ohxPE3843bVkM=; b=A7yY9vj41fmYGyDYrkBklpQ9dUGDZHKmyUG0IoLZvByGjHFG/UW2ZN1aqLORfLHnBx QqYKMTRtEi7Z9I16QUhEMhIryMW5cMGumf2bXTMpReFl4KvhBJ3IsB6RpkNcmCxlgSz9 zt6OskmxaC4qYaDH8kQvnsFnMUNFKpFwJCeNoqGTrCLTLnN39ys3Gz96V3X6WIhj/Njj Peep5jzTFtVG5kL0RROyLmX/J8k4buO/vDp/GNp2LMt4Al8eRZqhCFBuCEywseyKvRzf qFl4sFlV+mKrMgjVfanq31xDK3tYoh7pWzsFiEb3w3btIjndenXixOANombxaU5ncyPv WbJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/Men5rmBujePBODaPqTxdL7d5Hadu/ohxPE3843bVkM=; b=g+jeGX085Jpj4hh4uXwRG0kHdarRwrG7XVpxuZRimpof1fXiAiBmNcgKeQzmY77fHu IxynVuuq/AIhg0En6XP+uWdzgVppdRtegrYVMd1aIwdje3Pbl2tAPm1hGSa7S2u3Jpbw xvmYIRqAgdpTaBHl5kXz4LmtrV8cEZJmyhb2ZnOGx+60O3v69iwZZ19GFBqaLtP3eOpL eQeLE/882LUS+j/agwZ1OYsOUxGvBMp0ayEIISHt1bYdvo1MEJEtAOVohZZqPOvR4yIv ThBJIgSzYYLTKXXI9kYaDBl3mp3TEi+oRk4RWKvaglpz87xGOk4Xroxyq28Jkn1IR/xG UytQ== X-Gm-Message-State: AOAM532ecs4tmk+sRNWZ3LJqoUT8sYK1iTg/+pEUMnv/r+F4bC7td9KW w5Fe8T7xBLfyIBnBB0WXYhN3ego90m4/Z2rkIz7S X-Google-Smtp-Source: ABdhPJx6xRY71uAWPKVPYMZsfI1C2ZOby/JHxCV6UkDwez9y1Wuqisip7Dr7L+8aPN3fVQWQls2IuNvwZo9GmF/km/A= X-Received: by 2002:a17:906:456:: with SMTP id e22mr3000572eja.427.1621492373326; Wed, 19 May 2021 23:32:53 -0700 (PDT) MIME-Version: 1.0 References: <20210517095513.850-1-xieyongji@bytedance.com> <20210517095513.850-3-xieyongji@bytedance.com> In-Reply-To: From: Yongji Xie Date: Thu, 20 May 2021 14:32:42 +0800 Message-ID: Subject: Re: Re: [PATCH v7 02/12] file: Export receive_fd() to modules To: Al Viro Cc: "Michael S. Tsirkin" , Jason Wang , Stefan Hajnoczi , Stefano Garzarella , Parav Pandit , Christoph Hellwig , Christian Brauner , Randy Dunlap , Matthew Wilcox , Jens Axboe , bcrl@kvack.org, Jonathan Corbet , =?UTF-8?Q?Mika_Penttil=C3=A4?= , Dan Carpenter , joro@8bytes.org, virtualization , netdev@vger.kernel.org, kvm , linux-fsdevel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 2:18 PM Al Viro wrote: > > On Mon, May 17, 2021 at 05:55:03PM +0800, Xie Yongji wrote: > > Export receive_fd() so that some modules can use > > it to pass file descriptor between processes without > > missing any security stuffs. > > Which tree is that against? Because in mainline this won't even build, let > alone work. > Oh, sorry for that. Now I'm based on vhost.git tree. But looks like I miss Christoph's commit 42eb0d54c08 ("fs: split receive_fd_replace from __receive_fd"). Will rebase on it in v8. Thanks, Yongji From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_RED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69310C433B4 for ; Thu, 20 May 2021 06:33:00 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DDB8061184 for ; Thu, 20 May 2021 06:32:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DDB8061184 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 99F544069E; Thu, 20 May 2021 06:32:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P6yZWna9Mvaj; Thu, 20 May 2021 06:32:58 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTP id 62F1F406A2; Thu, 20 May 2021 06:32:58 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 314D9C000D; Thu, 20 May 2021 06:32:58 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id AECB7C000D for ; Thu, 20 May 2021 06:32:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6AC596079C for ; Thu, 20 May 2021 06:32:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=bytedance-com.20150623.gappssmtp.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TnOu7-79JWQv for ; Thu, 20 May 2021 06:32:55 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by smtp3.osuosl.org (Postfix) with ESMTPS id 8109B60667 for ; Thu, 20 May 2021 06:32:55 +0000 (UTC) Received: by mail-ej1-x636.google.com with SMTP id lg14so23435791ejb.9 for ; Wed, 19 May 2021 23:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/Men5rmBujePBODaPqTxdL7d5Hadu/ohxPE3843bVkM=; b=A7yY9vj41fmYGyDYrkBklpQ9dUGDZHKmyUG0IoLZvByGjHFG/UW2ZN1aqLORfLHnBx QqYKMTRtEi7Z9I16QUhEMhIryMW5cMGumf2bXTMpReFl4KvhBJ3IsB6RpkNcmCxlgSz9 zt6OskmxaC4qYaDH8kQvnsFnMUNFKpFwJCeNoqGTrCLTLnN39ys3Gz96V3X6WIhj/Njj Peep5jzTFtVG5kL0RROyLmX/J8k4buO/vDp/GNp2LMt4Al8eRZqhCFBuCEywseyKvRzf qFl4sFlV+mKrMgjVfanq31xDK3tYoh7pWzsFiEb3w3btIjndenXixOANombxaU5ncyPv WbJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/Men5rmBujePBODaPqTxdL7d5Hadu/ohxPE3843bVkM=; b=Mn0HnVvdWtpwktGzpu1vS6S/QqRuE8Cq6DBcZVeFEsz2agi668kke0z3KkKgnFQ5Vh jC4wdc7qvTj6fY5j2+z8F03eSNK0OKMYY8i98kFz26Dv5pVpe7Go2S18R4gvu9IJItqS H9hJSa9/6bOJ+7FXI/W9dYAYh2Lvn4nVKfw/b+F0JSbfsAT/kSrg0HoAb2Xsda+eZ40J //C0uFCuO7swZE7kYWIXRvv5E/JXZFbCeUzc0cElH/blSkHMS9Y0od9wPNslFGRxT2h2 Uhm3HyeH3x5xdwvleDhroQUprhr/IguIhsAJ8Zt3us2UAr0ADq2u8aJ3QSu5paDEsvYm dFdQ== X-Gm-Message-State: AOAM533nybNpOy40o77rNxZJD8OYKJc8TjYscZmRCP2+wuLlf42cOG0r JbTfd90UbCGln7CXoYJA9DptG190915Lt+QYvrxg X-Google-Smtp-Source: ABdhPJx6xRY71uAWPKVPYMZsfI1C2ZOby/JHxCV6UkDwez9y1Wuqisip7Dr7L+8aPN3fVQWQls2IuNvwZo9GmF/km/A= X-Received: by 2002:a17:906:456:: with SMTP id e22mr3000572eja.427.1621492373326; Wed, 19 May 2021 23:32:53 -0700 (PDT) MIME-Version: 1.0 References: <20210517095513.850-1-xieyongji@bytedance.com> <20210517095513.850-3-xieyongji@bytedance.com> In-Reply-To: From: Yongji Xie Date: Thu, 20 May 2021 14:32:42 +0800 Message-ID: Subject: Re: Re: [PATCH v7 02/12] file: Export receive_fd() to modules To: Al Viro Cc: Jens Axboe , Jonathan Corbet , linux-kernel , kvm , "Michael S. Tsirkin" , netdev@vger.kernel.org, Jason Wang , Randy Dunlap , iommu@lists.linux-foundation.org, Matthew Wilcox , virtualization , Christoph Hellwig , Christian Brauner , bcrl@kvack.org, =?UTF-8?Q?Mika_Penttil=C3=A4?= , Stefan Hajnoczi , linux-fsdevel@vger.kernel.org, Dan Carpenter , Stefano Garzarella X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Thu, May 20, 2021 at 2:18 PM Al Viro wrote: > > On Mon, May 17, 2021 at 05:55:03PM +0800, Xie Yongji wrote: > > Export receive_fd() so that some modules can use > > it to pass file descriptor between processes without > > missing any security stuffs. > > Which tree is that against? Because in mainline this won't even build, let > alone work. > Oh, sorry for that. Now I'm based on vhost.git tree. But looks like I miss Christoph's commit 42eb0d54c08 ("fs: split receive_fd_replace from __receive_fd"). Will rebase on it in v8. Thanks, Yongji _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu