diff --git a/sys/sys/kassert.h b/sys/sys/kassert.h index ab2313bcbd8..8dcea8352fd 100644 --- a/sys/sys/kassert.h +++ b/sys/sys/kassert.h @@ -38,8 +38,7 @@ extern const char *panicstr; /* panic message */ #define KERNEL_PANICKED() __predict_false(panicstr != NULL) /* - * Trap accesses going through a pointer. Moreover if kasan is available trap - * reading the pointer itself. + * Trap accesses going through a pointer. * * Sample usage: you have a struct with numerous fields and by API contract * only some of them get populated, even if the implementation temporary writes @@ -61,7 +60,6 @@ extern caddr_t poisoned_buf; #define DEBUG_POISON_POINTER(x) ({ \ x = (void *)(DEBUG_POISON_POINTER_VALUE); \ - kasan_mark(&x, 0, sizeof(x), KASAN_GENERIC_REDZONE); \ }) #else