From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+72bd3dd3a5d5f39a0271@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [dri?] [media?] WARNING in dma_resv_add_fence
Date: Fri, 8 May 2026 08:26:11 +0800 [thread overview]
Message-ID: <20260508002612.427-1-hdanton@sina.com> (raw)
In-Reply-To: <69fd21b9.050a0220.3cf765.0360.GAE@google.com>
> Date: Thu, 07 May 2026 16:35:21 -0700 [thread overview]
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: fcee7d82f27d Merge tag 'net-7.1-rc3' of git://git.kernel.o..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=1107ddba580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=59da38148f3a3d24
> dashboard link: https://syzkaller.appspot.com/bug?extid=72bd3dd3a5d5f39a0271
> compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13dfca73980000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1599bb26580000
#syz test
--- x/drivers/gpu/drm/virtio/virtgpu_gem.c
+++ y/drivers/gpu/drm/virtio/virtgpu_gem.c
@@ -252,10 +252,21 @@ void virtio_gpu_array_add_fence(struct v
struct dma_fence *fence)
{
int i;
+ int ret;
+
+ if (objs->nents == 1) {
+ ret = dma_resv_lock_interruptible(objs->objs[0]->resv, NULL);
+ } else {
+ ret = drm_gem_lock_reservations(objs->objs, objs->nents, &objs->ticket);
+ }
+ if (ret)
+ return;
for (i = 0; i < objs->nents; i++)
dma_resv_add_fence(objs->objs[i]->resv, fence,
DMA_RESV_USAGE_WRITE);
+
+ virtio_gpu_array_unlock_resv(objs);
}
void virtio_gpu_array_put_free(struct virtio_gpu_object_array *objs)
--
next prev parent reply other threads:[~2026-05-08 0:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 23:35 [syzbot] [dri?] [media?] WARNING in dma_resv_add_fence syzbot
2026-05-08 0:26 ` Hillf Danton [this message]
2026-05-08 0:48 ` syzbot
2026-05-10 4:55 ` Forwarded: [PATCH] drm/virtio: check virtio_gpu_array_lock_resv() return in cursor update syzbot
[not found] <20260510045501.98448-1-kartikey406@gmail.com>
2026-05-10 5:16 ` [syzbot] [dri?] [media?] WARNING in dma_resv_add_fence syzbot
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=20260508002612.427-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+72bd3dd3a5d5f39a0271@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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