Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1194911pxv; Fri, 23 Jul 2021 02:13:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt2A0ICKTZYHNfCNcEsW5YpbCdEmwOfBVSyLNQINqH1tmB5Dl980I479lW/bRbj4QNwbAs X-Received: by 2002:a17:906:7629:: with SMTP id c9mr3715234ejn.527.1627031600516; Fri, 23 Jul 2021 02:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627031600; cv=none; d=google.com; s=arc-20160816; b=xvsNfifgQ2VOGhvhAnn/5LPitAcRjErVakmi5Vbs2/ifakHktjPirVifJ5fziyVwhw Xq3lLhrqEdDHUx53H0TdMyD4S3R6iJkSfpUhBP3RjMlBV74yhUeh+dWLej68RJm7wPVv YUeRjICq0qpk2od8eUR14nfZmu0oumWP47rgsdJHO1B7IvZo+GPQNQwjE/Z0L7v5EyfA nhsBsIfKLrLilHQAVHLJkZVML4jCioZgcNhfBEz8ces0KUr2+UZ9FN/kLMnFEVMO3VwI ucchcOS1UTO5rhYbis2ZF9hAqOHRl6s8Im88JHMy3Grmg1PN/kzb/WIUa2owswR4HF4M r74Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:cc:from :references:to; bh=pfV9EqfmfM8VDfFPiuLSr4Bf5xi+Rcoc/YyCAT73Q7Q=; b=fVs1pGhLN/9+Yb1HNffUqobP3FGa/t6owYQB2LKEau5DOLciIi7xwA73hXNHupe2x/ RddKgu5N12aGs3WoR6tP7uObVxuaHYMkcvHjGnSlSFwfPiq5faJ69guhRrljrG77kona xvfbA1T8s7oxjVdWvNL96M4MewkA1YA2EebQ9bS3Br9Anaq1s8gHabfgT/cIbRDIeN/F Bmp7shcLkt+h4/510zxeSea8l/njQkcNUfvWOH2QQAjKZ9DsNGkN3LLnnlHf9sR4ELvV 657pSMRTKDOAmcd3zcDIBLlVCEG8RXinHC1MSQJssiJQl0++8IAHXvFqA+NNSJml8SQq KfcQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si13195073edt.123.2021.07.23.02.12.55; Fri, 23 Jul 2021 02:13:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232148AbhGWIa7 (ORCPT + 99 others); Fri, 23 Jul 2021 04:30:59 -0400 Received: from mail.netline.ch ([148.251.143.180]:37235 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbhGWIa6 (ORCPT ); Fri, 23 Jul 2021 04:30:58 -0400 Received: from localhost (localhost [127.0.0.1]) by netline-mail3.netline.ch (Postfix) with ESMTP id 2CEB120201B; Fri, 23 Jul 2021 11:11:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netline-mail3.netline.ch Received: from netline-mail3.netline.ch ([127.0.0.1]) by localhost (netline-mail3.netline.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kxQLFzKYo8nX; Fri, 23 Jul 2021 11:11:29 +0200 (CEST) Received: from thor (24.99.2.85.dynamic.wline.res.cust.swisscom.ch [85.2.99.24]) by netline-mail3.netline.ch (Postfix) with ESMTPA id BF6A920201A; Fri, 23 Jul 2021 11:11:29 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.94.2) (envelope-from ) id 1m6rDM-000Bg4-UO; Fri, 23 Jul 2021 11:11:28 +0200 To: =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20210723075857.4065-1-michel@daenzer.net> <4cf94f59-f953-f5d7-9901-cfe5fd63bfbc@daenzer.net> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Cc: linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org Subject: Re: [PATCH] dma-buf/poll: Get a file reference for outstanding fence callbacks Message-ID: Date: Fri, 23 Jul 2021 11:11:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-07-23 11:02 a.m., Daniel Vetter wrote: > On Fri, Jul 23, 2021 at 10:19:49AM +0200, Michel Dänzer wrote: >> On 2021-07-23 10:04 a.m., Christian König wrote: >>> Am 23.07.21 um 09:58 schrieb Michel Dänzer: >>>> From: Michel Dänzer >>>> >>>> This makes sure we don't hit the >>>> >>>>     BUG_ON(dmabuf->cb_in.active || dmabuf->cb_out.active); >>>> >>>> in dma_buf_release, which could be triggered by user space closing the >>>> dma-buf file description while there are outstanding fence callbacks >>>> from dma_buf_poll. >>> >>> I was also wondering the same thing while working on this, but then thought that the poll interface would take care of this. >> >> I was able to hit the BUG_ON with https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1880 . > > igt test would be really lovely. Maybe base something off the > import/export igts from Jason? I'll see what I can do, busy with other stuff right now though. -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer