On Wed, Mar 2, 2022 at 5:36 PM wrote: > From: Andrey Konovalov > > describe_object_addr() used to be called with NULL addr in the early > days of KASAN. This no longer happens, so drop the check. > > Signed-off-by: Andrey Konovalov > Reviewed-by: Alexander Potapenko > --- > mm/kasan/report.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/mm/kasan/report.c b/mm/kasan/report.c > index f64352008bb8..607a8c2e4674 100644 > --- a/mm/kasan/report.c > +++ b/mm/kasan/report.c > @@ -162,9 +162,6 @@ static void describe_object_addr(struct kmem_cache > *cache, void *object, > " which belongs to the cache %s of size %d\n", > object, cache->name, cache->object_size); > > - if (!addr) > - return; > - > if (access_addr < object_addr) { > rel_type = "to the left"; > rel_bytes = object_addr - access_addr; > -- > 2.25.1 > > -- > You received this message because you are subscribed to the Google Groups > "kasan-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kasan-dev+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/kasan-dev/761f8e5a6ee040d665934d916a90afe9f322f745.1646237226.git.andreyknvl%40google.com > . > -- Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Straße, 33 80636 München Geschäftsführer: Paul Manicle, Liana Sebastian Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Diese E-Mail ist vertraulich. Falls Sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde. This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.