[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200124141058.GM1847@kadam>
Date: Fri, 24 Jan 2020 17:10:58 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Hillf Danton <hdanton@...a.com>
Cc: syzbot <syzbot+75287f75e2fedd69d680@...kaller.appspotmail.com>,
andreyknvl@...gle.com, bnvandana@...il.com,
hverkuil-cisco@...all.nl, laurent.pinchart@...asonboard.com,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
linux-usb@...r.kernel.org, mchehab@...nel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: KASAN: use-after-free Read in v4l2_release (3)
This would work but another approach would be to to allocate "usbvision"
with devm_kzalloc(&dev->dev,... I believe that would postpone the free
enough to solve the use after free but I hadn't tested it yet. But
other drivers do that so hopefully it works.
regards,
dan carpenter
Powered by blists - more mailing lists