kassert: Further remove KASAN integration from DEBUG_POISON_POINTER

Fixes:	47112d359b ("kassert: Remove KASAN marking from DEBUG_POISON_POINTER")
This commit is contained in:
Mark Johnston 2024-09-14 01:36:44 +00:00
parent 47112d359b
commit afd096326a

View file

@ -47,14 +47,10 @@ extern const char *panicstr; /* panic message */
*
* DEBUG_POISON_POINTER(obj->ptr);
* ....
* if (obj->ptr != NULL) // traps with kasan, does not trap otherwise
* ....
* if (obj->ptr->field) // traps with and without kasan
* if (obj->ptr->field) // traps
*/
#ifdef INVARIANTS
#include <sys/asan.h>
extern caddr_t poisoned_buf;
#define DEBUG_POISON_POINTER_VALUE poisoned_buf