All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+3910ee87c4ba0a51e3f9@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [media?] KASAN: use-after-free Read in media_request_release
Date: Thu, 20 Aug 2026 10:33:23 +0800	[thread overview]
Message-ID: <20260820023332.1317-1-hdanton@sina.com> (raw)
In-Reply-To: <6a841dc9.4d75e56a.c9a88.000e.GAE@google.com>

> Date: Tue, 18 Aug 2026 01:54:33 -0700
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    0f23d56f17fd Merge tag 'linux_kselftest-next-7.3-rc1' of g..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=14185a25580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=65bfb7732ae5a736
> dashboard link: https://syzkaller.appspot.com/bug?extid=3910ee87c4ba0a51e3f9
> compiler:       gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=12185a25580000

#syz test

--- x/drivers/media/mc/mc-device.c
+++ y/drivers/media/mc/mc-device.c
@@ -728,6 +728,8 @@ void media_device_cleanup(struct media_d
 	media_graph_walk_cleanup(&mdev->pm_count_walk);
 	mutex_destroy(&mdev->graph_mutex);
 	mutex_destroy(&mdev->req_queue_mutex);
+	while (atomic_read(&mdev->num_requests))
+		schedule_timeout_idle(HZ/20);
 }
 EXPORT_SYMBOL_GPL(media_device_cleanup);
 
--

  reply	other threads:[~2026-08-20  2:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18  8:54 [syzbot] [media?] KASAN: use-after-free Read in media_request_release syzbot
2026-08-20  2:33 ` Hillf Danton [this message]
2026-08-20  2:51   ` 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=20260820023332.1317-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+3910ee87c4ba0a51e3f9@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.