kasan: fix prototype author email address
[sfrench/cifs-2.6.git] / mm / kasan / report.c
index 410c8235e671501ab6f6876a13b419b448cc624c..5c169aa688fde8b189b092dfc724b9a0d6c88cdd 100644 (file)
@@ -5,7 +5,7 @@
  * Author: Andrey Ryabinin <ryabinin.a.a@gmail.com>
  *
  * Some code borrowed from https://github.com/xairy/kasan-prototype by
- *        Andrey Konovalov <adech.fo@gmail.com>
+ *        Andrey Konovalov <andreyknvl@gmail.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -102,6 +102,10 @@ static const char *get_shadow_bug_type(struct kasan_access_info *info)
        case KASAN_USE_AFTER_SCOPE:
                bug_type = "use-after-scope";
                break;
+       case KASAN_ALLOCA_LEFT:
+       case KASAN_ALLOCA_RIGHT:
+               bug_type = "alloca-out-of-bounds";
+               break;
        }
 
        return bug_type;
@@ -322,13 +326,12 @@ static void print_shadow_for_address(const void *addr)
        }
 }
 
-void kasan_report_double_free(struct kmem_cache *cache, void *object,
-                               void *ip)
+void kasan_report_invalid_free(void *object, unsigned long ip)
 {
        unsigned long flags;
 
        kasan_start_report(&flags);
-       pr_err("BUG: KASAN: double-free or invalid-free in %pS\n", ip);
+       pr_err("BUG: KASAN: double-free or invalid-free in %pS\n", (void *)ip);
        pr_err("\n");
        print_address_description(object);
        pr_err("\n");