lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2020-01-24 15:12    [W:0.122 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site