From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-166.sinamail.sina.com.cn (mail3-166.sinamail.sina.com.cn [202.108.3.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1805B2F549F for ; Thu, 20 Aug 2026 02:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.108.3.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787193388; cv=none; b=TiICotw9/DKlkgK8d7N+bXBEeEnehB1XoHfyw7g4CTfQDpZuYED9bc86f6+Ne6hgDhYbpp023TID0z1cGG4YpcUWWGjfqt3GRriWNrHfdfyuukI/GSRYXiZNOJZWTP1U7pwgSAfHePZQxDrN6kt+fXC7BlRC9xooW22qSTz3Brw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787193388; c=relaxed/simple; bh=AQFzyEIH9oQfKsEUshtgqvrTeHc10GIfEpYAsS5uiFc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SUtwF9BC0h/eCymP+YxcaJ1kNzhDSnkSm918cXT+dKFrNkzxXT5vjqKbS4p1ShoLR3ZmDTQsPyazwG33tAT2ctAxR8CyRrqdl7Jd/71bAMeIulEroBhQseudi0iN5W/5rZ/oEvl6ePbHjgg2xOipvNgA8iAyms0bCTXNpzh7ZNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b=gOySjrO+; arc=none smtp.client-ip=202.108.3.166 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b="gOySjrO+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1787193383; bh=CJKru32mSmLD/0ktkqjtXJaTbSoAyonMDLdmHlkzvpM=; h=From:Subject:Date:Message-ID; b=gOySjrO+2h0tyEPpRz1hPmFpbYj1paxU+/pLuHx51+5VZ0+Rk3Nn4eaVXVKimzlGc RDalaJVRsSR3hBAOsDQ2QehYlRJypASdiaLCHMspRO9i8Px8uVbidFSD+jeOTRVe8g 7t9d/41ObtTVqapuhsnMo/MMGO97qOQrwlWBz4oo= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([221.216.154.155]) by sina.com (10.54.253.31) with ESMTP id 6A86678500005309; Thu, 20 Aug 2026 10:33:50 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 7361986815942 X-SMAIL-UIID: 32EB8EADD72E4BFE9098C3E5E7FB6CF9-20260820-103350-1 From: Hillf Danton To: syzbot 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 Message-ID: <20260820023332.1317-1-hdanton@sina.com> In-Reply-To: <6a841dc9.4d75e56a.c9a88.000e.GAE@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > 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); --