|
@@ -3635,8 +3635,9 @@ size_t ksize(const void *object)
|
|
{
|
|
{
|
|
size_t size = __ksize(object);
|
|
size_t size = __ksize(object);
|
|
/* We assume that ksize callers could use whole allocated area,
|
|
/* We assume that ksize callers could use whole allocated area,
|
|
- so we need unpoison this area. */
|
|
|
|
- kasan_krealloc(object, size, GFP_NOWAIT);
|
|
|
|
|
|
+ * so we need to unpoison this area.
|
|
|
|
+ */
|
|
|
|
+ kasan_unpoison_shadow(object, size);
|
|
return size;
|
|
return size;
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(ksize);
|
|
EXPORT_SYMBOL(ksize);
|