@@ -343,7 +343,7 @@ static inline bool ____kasan_slab_free(struct kmem_cache *cache, void *object,
343343
344344 if (unlikely (nearest_obj (cache , virt_to_slab (object ), object ) !=
345345 object )) {
346- kasan_report_invalid_free (tagged_object , ip );
346+ kasan_report_invalid_free (tagged_object , ip , KASAN_REPORT_INVALID_FREE );
347347 return true;
348348 }
349349
@@ -352,7 +352,7 @@ static inline bool ____kasan_slab_free(struct kmem_cache *cache, void *object,
352352 return false;
353353
354354 if (!kasan_byte_accessible (tagged_object )) {
355- kasan_report_invalid_free (tagged_object , ip );
355+ kasan_report_invalid_free (tagged_object , ip , KASAN_REPORT_DOUBLE_FREE );
356356 return true;
357357 }
358358
@@ -377,12 +377,12 @@ bool __kasan_slab_free(struct kmem_cache *cache, void *object,
377377static inline bool ____kasan_kfree_large (void * ptr , unsigned long ip )
378378{
379379 if (ptr != page_address (virt_to_head_page (ptr ))) {
380- kasan_report_invalid_free (ptr , ip );
380+ kasan_report_invalid_free (ptr , ip , KASAN_REPORT_INVALID_FREE );
381381 return true;
382382 }
383383
384384 if (!kasan_byte_accessible (ptr )) {
385- kasan_report_invalid_free (ptr , ip );
385+ kasan_report_invalid_free (ptr , ip , KASAN_REPORT_DOUBLE_FREE );
386386 return true;
387387 }
388388
0 commit comments