Linux-Fsdevel Archive mirror
 help / color / mirror / Atom feed
From: Fedor Pchelkin <pchelkin@ispras.ru>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: "Christian König" <christian.koenig@amd.com>,
	lvc-project@linuxtesting.org, dri-devel@lists.freedesktop.org,
	"T.J. Mercier" <tjmercier@google.com>,
	syzbot+5d4cb6b4409edfd18646@syzkaller.appspotmail.com,
	linux-fsdevel@vger.kernel.org,
	"Zhiguo Jiang" <justinjiang@vivo.com>,
	"Sumit Semwal" <sumit.semwal@linaro.org>,
	linux-media@vger.kernel.org
Subject: Re: [lvc-project] [PATCH] [RFC] dma-buf: fix race condition between poll and close
Date: Mon, 6 May 2024 09:52:50 +0300	[thread overview]
Message-ID: <20240506-6128db77520dbf887927bd4d-pchelkin@ispras.ru> (raw)
In-Reply-To: <5c8345ee-011a-4fa7-8326-84f40daf2f2c@yandex.ru>

On Fri, 03. May 14:08, Dmitry Antipov wrote:
> On 5/3/24 11:18 AM, Christian König wrote:
> 
> > Attached is a compile only tested patch, please verify if it fixes your problem.
> 
> LGTM, and this is similar to get_file() in __pollwait() and fput() in
> free_poll_entry() used in implementation of poll(). Please resubmit to
> linux-fsdevel@ including the following:
> 
> Reported-by: syzbot+5d4cb6b4409edfd18646@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=5d4cb6b4409edfd18646
> Tested-by: Dmitry Antipov <dmantipov@yandex.ru>

I guess the problem is addressed by commit 4efaa5acf0a1 ("epoll: be better
about file lifetimes") which was pushed upstream just before v6.9-rc7.

Link: https://lore.kernel.org/lkml/0000000000002d631f0615918f1e@google.com/

  reply	other threads:[~2024-05-06  6:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20240423191310.19437-1-dmantipov@yandex.ru>
     [not found] ` <85b476cd-3afd-4781-9168-ecc88b6cc837@amd.com>
     [not found]   ` <3a7d0f38-13b9-4e98-a5fa-9a0d775bcf81@yandex.ru>
     [not found]     ` <72f5f1b8-ca5b-4207-9ac9-95b60c607f3a@amd.com>
2024-05-03  7:07       ` [PATCH] [RFC] dma-buf: fix race condition between poll and close Dmitry Antipov
2024-05-03  8:18         ` Christian König
2024-05-03 11:08           ` Dmitry Antipov
2024-05-06  6:52             ` Fedor Pchelkin [this message]
2024-05-07  9:58               ` [lvc-project] " Christian König
2024-05-07 10:40                 ` Daniel Vetter
2024-05-07 15:02                   ` Christian König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240506-6128db77520dbf887927bd4d-pchelkin@ispras.ru \
    --to=pchelkin@ispras.ru \
    --cc=christian.koenig@amd.com \
    --cc=dmantipov@yandex.ru \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=justinjiang@vivo.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=lvc-project@linuxtesting.org \
    --cc=sumit.semwal@linaro.org \
    --cc=syzbot+5d4cb6b4409edfd18646@syzkaller.appspotmail.com \
    --cc=tjmercier@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).