From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail78-58.sinamail.sina.com.cn (mail78-58.sinamail.sina.com.cn [219.142.78.58]) (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 3FD481373 for ; Sun, 19 Jan 2025 00:15:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=219.142.78.58 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737245729; cv=none; b=U8Nkc7F+0/oG194b9HX/Q1BZFGU1V9YCgrbHcHoWUSJzlNld83wIqkfijn1vHG2OwciOv7Y+cbh8iIQWud/ymTM2CEWlQ23g5s46TL9sGbFT5K/ABfpeOCp54rgtCF+EkruIsM7dPwrs7fShE4n4yAkVdpLLNrQZkhAXdMsWPiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737245729; c=relaxed/simple; bh=9zLeKU6qrLKJ4L/tu1mEfIanxLBjufs5z//ii6NtOto=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=td010VqbOEyHAZLStXvimySbZYoSUnHXOnVAKTDfZlzjpOuZv+SdI7ERuoCGk5o2CX7wA6pZcQtcPls2lVlxP5Pn6+p1MSHNICIUXZp7nyaS1w8PBsZ4UK0a6YOIqSoHQd0o3qlVxldZBuZXt7po1tAjD9vyWUHETeVLKHZkMG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=219.142.78.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([116.24.10.102]) by sina.com (10.185.250.24) with ESMTP id 678C4410000074CE; Sun, 19 Jan 2025 08:15:14 +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: 82089910748382 X-SMAIL-UIID: E46F71D8DB694D2BB005B1F076079ADC-20250119-081514-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [media?] KASAN: slab-use-after-free Read in dvb_device_open Date: Sun, 19 Jan 2025 08:14:59 +0800 Message-ID: <20250119001505.2004-1-hdanton@sina.com> In-Reply-To: <678c0605.050a0220.303755.0031.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 On Sat, 18 Jan 2025 11:50:29 -0800 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 595523945be0 Merge tag 'devicetree-fixes-for-6.13-2' of gi.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12183fc4580000 #syz test --- x/drivers/media/dvb-core/dvbdev.c +++ y/drivers/media/dvb-core/dvbdev.c @@ -109,8 +109,10 @@ static int dvb_device_open(struct inode err = file->f_op->open(inode, file); up_read(&minor_rwsem); mutex_unlock(&dvbdev_mutex); - if (err) + if (err) { + WARN(1, "open %pS\n", file->f_op->open); dvb_device_put(dvbdev); + } return err; } fail: --