git: afd096326aad - main - kassert: Further remove KASAN integration from DEBUG_POISON_POINTER
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Sep 2024 01:39:56 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=afd096326aad1a672fd5f39b9b05c433fa7fe7dc
commit afd096326aad1a672fd5f39b9b05c433fa7fe7dc
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-09-14 01:36:44 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-09-14 01:36:44 +0000
kassert: Further remove KASAN integration from DEBUG_POISON_POINTER
Fixes: 47112d359b36 ("kassert: Remove KASAN marking from DEBUG_POISON_POINTER")
---
sys/sys/kassert.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/sys/sys/kassert.h b/sys/sys/kassert.h
index 8dcea8352fdf..7755a241888f 100644
--- a/sys/sys/kassert.h
+++ b/sys/sys/kassert.h
@@ -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