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 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57607CD4F21 for ; Wed, 13 May 2026 21:41:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DBD510F086; Wed, 13 May 2026 21:41:12 +0000 (UTC) Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) by gabe.freedesktop.org (Postfix) with ESMTPS id 18AA410E37A for ; Wed, 13 May 2026 21:41:11 +0000 (UTC) Received: by mail-oo1-f72.google.com with SMTP id 006d021491bc7-6967fe3eeb1so2993433eaf.0 for ; Wed, 13 May 2026 14:41:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778708470; x=1779313270; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Tqk0Slr65mDNKAZF2Vaic14WCI6WBEKE9EJXBGKW5II=; b=Oo5u5e/YkKFHraFTfVjizELP4P/d6ijRIXg2jtBzFrThGXJv75eNl1AAoNF7+dIrcd iAXog3nnKVEmxHzy+SqgyRhHTzBVMlKvVCLrrvgHG4OO70EuNRI/6bE4wdkSrLKNIL+X /Z0ZbkUFiV3OvUSyUNUw4whY+Ib+KUXQAcxinXFyXvpxkCAn47d9q95eK9m04N829giT eZSQRKgz1Ej3FhhTHjEyjOzi1nOni6QISTXNu1zux3pMXzTFyTdct2Fad8+QLdOB0JkX jJwiGh2zivTcwZ64F70eZu9NviZW8KrVYFylrnUy0/I/8kVGI7a7N8XU7pWO0Di3Kjzt n/2A== X-Forwarded-Encrypted: i=1; AFNElJ+iZdEhJAbE7prZLmlhvFgPliuRQn4lXLvhU3MpxXNBD0Bnt665Gf6cYyAMFxSb0rxsSt5PTH1ruyg=@lists.freedesktop.org X-Gm-Message-State: AOJu0Yxct/JRN+sJTxJmBs6+9glL+EaB73MLlF40mYdb7agt/Oko33j1 qvdYP6FHTupXtNjwm60KxK5K7ZH/jsAHDcNyVOKcVyZX0CSrkj4Y5E6AvL7IsmXtXtfskp1IuCb tkkFTjWmQifvsOwCDeVccxUfxt/5xfbPtPfa9g2QvEw8Knjn7gFdGQ/yzr28= MIME-Version: 1.0 X-Received: by 2002:a05:6820:2902:b0:696:2038:82d7 with SMTP id 006d021491bc7-69b78d5922cmr2866345eaf.23.1778708470301; Wed, 13 May 2026 14:41:10 -0700 (PDT) Date: Wed, 13 May 2026 14:41:10 -0700 In-Reply-To: <82aeba42-7872-4e92-ade8-2b7b6a8a5e43@collabora.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a04eff6.170a0220.14b6e7.0321.GAE@google.com> Subject: Re: [PATCH] drm/virtio: add timeout to virtqueue wait to avoid hung task From: syzbot To: dmitry.osipenko@collabora.com Cc: airlied@redhat.com, dmitry.osipenko@collabora.com, dri-devel@lists.freedesktop.org, gurchetansingh@chromium.org, kraxel@redhat.com, linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, olvaffe@gmail.com, ryasuoka@redhat.com, simona@ffwll.ch, tzimmermann@suse.de, virtualization@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" > Hi, > > On 5/12/26 11:59, Ryosuke Yasuoka wrote: >> virtio_gpu_queue_ctrl_sgs() and virtio_gpu_queue_cursor() use >> wait_event() without timeout when waiting for virtqueue space. If the >> host device stops processing commands, these waits block indefinitely. >> Since callers may hold DRM locks, this can make the entire system >> unresponsive. >> >> Replace wait_event() with wait_event_timeout() using a 5-second timeout, >> consistent with the existing timeout pattern in the driver. On timeout, >> clean up and return -ENODEV, following the same error path as >> drm_dev_enter() failure. >> >> Reported-by: syzbot+d6dd6f86d3aaf7eebe7406e45c1c6e549453f224@syzkaller.appspotmail.com >> Closes: https://syzkaller.appspot.com/bug?id=d6dd6f86d3aaf7eebe7406e45c1c6e549453f224 >> Reported-by: syzbot+908bd910da5dd79b88de4cf7baf376cc873a922e@syzkaller.appspotmail.com >> Closes: https://syzkaller.appspot.com/bug?id=908bd910da5dd79b88de4cf7baf376cc873a922e >> Signed-off-by: Ryosuke Yasuoka >> --- >> drivers/gpu/drm/virtio/virtgpu_vq.c | 20 ++++++++++++++++++-- >> 1 file changed, 18 insertions(+), 2 deletions(-) > > If host stops processing commands, this is a problem on host side. Isn't it? > > -- > Best regards, > Dmitry I see the command but can't find the corresponding bug. The email is sent to syzbot+HASH@syzkaller.appspotmail.com address but the HASH does not correspond to any known bug. Please double check the address.