Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3240618imm; Tue, 29 May 2018 03:49:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIPr4ElVZAYUuYsqmikOPJeowpnRRw73WttGIRzwyTkbtMM41ATe/wTljPOkVWWRCb9R0ml X-Received: by 2002:a17:902:b588:: with SMTP id a8-v6mr6125783pls.308.1527590995705; Tue, 29 May 2018 03:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527590995; cv=none; d=google.com; s=arc-20160816; b=Tot/rPqfuZwxoc+30FznfGTMsutAsFzZzgLEFfQQq0Pn2C8GXOk15wL3wETK2Lir72 Jy96MoxKbwtB5KV0OY7r1I7dlgu+nV6osap/9TRjNRFiuAW9GestRXfsIKDKcd111/NS 94SFDYAznSb/xQfpa9p5TTKDCpii8v12WUHP/rFHNBKvoG8iwYi1FqJYJUJQO0wsi4JV 8RhvdpRXc45n6kHar0MsX2aZ3+AmEzkXHa9Q/VUEZoOXqxvsZXlClSaNbGMHgEedbZK6 VV7ZeOxzzHDKrvsKIq243+ERzv1wHo9dKiY1vx5XyYHMH8wckLNDs3s6uUkvDjcT3MVU Ujxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:arc-authentication-results; bh=230aFAoJ44Fp2ss7szTj7ZzJPQ7opoWQhNEJ+gA9FJM=; b=ZZmnnO4vnZqY0w9CPquzqyQ5IfabYbCVF3E7oIYNMRGSRDf8yqTyNUY6v3b/4Uyccy boQuh8wKC6AQgPGBJpvtyzZwtxIIT4FFGSc+Lr/EnlGpXOP1PBfQ4zOcJ4OtVn7Ut4CP tsxXpXjowffVxrRFiDmLsVtbA+sZpUYJYqYz3300Oc7aDazU++aH983GFj4GuahpStJ/ cdOReK3WZ1gtZlMNVtslxwzVjsDsSkdlrANKEaJvg0MejzRYNFs4j0lzPg7agIA1Porx 9fhi9QHx202Wt42op5ytk2GJb53W0unq4TfVc8PQZlhjTwFy/iIEAILbUQdR9DIrZvLA uMdg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23-v6si31624542pls.571.2018.05.29.03.49.41; Tue, 29 May 2018 03:49:55 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933193AbeE2KtA (ORCPT + 99 others); Tue, 29 May 2018 06:49:00 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48482 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932847AbeE2Ks4 (ORCPT ); Tue, 29 May 2018 06:48:56 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F769401EF08; Tue, 29 May 2018 10:48:56 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-117-13.ams2.redhat.com [10.36.117.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id AEE4263F37; Tue, 29 May 2018 10:48:55 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 10652423E7; Tue, 29 May 2018 12:48:55 +0200 (CEST) Date: Tue, 29 May 2018 12:48:55 +0200 From: Gerd Hoffmann To: dri-devel@lists.freedesktop.org, David Airlie , Tomeu Vizoso , Sumit Semwal , Shuah Khan , open list , "open list:DMA BUFFER SHARING FRAMEWORK" , "moderated list:DMA BUFFER SHARING FRAMEWORK" , "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH v3] Add udmabuf misc device Message-ID: <20180529104855.vvrfdtbgrsqj27ga@sirius.home.kraxel.org> References: <20180525140808.12714-1-kraxel@redhat.com> <20180529082327.GF3438@phenom.ffwll.local> <20180529084406.GI3438@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180529084406.GI3438@phenom.ffwll.local> User-Agent: NeoMutt/20180512 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 29 May 2018 10:48:56 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 29 May 2018 10:48:56 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'kraxel@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > > qemu test branch: > > > https://git.kraxel.org/cgit/qemu/log/?h=sirius/udmabuf ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > + if (!shmem_mapping(file_inode(ubuf->filp)->i_mapping)) > > > + goto err_free_ubuf; > > Can/should we test here that the memfd has a locked down size here? Makes sense. Suggested way to check that? unstatic memfd_get_seals() function (mm/shmem.c)? Or is there some better way? Also which seals should we require? Is F_SEAL_SHRINK enough? > On that: Link to userspace patches/git tree using this would be nice. See above. cheers, Gerd