git: e228961d6e3b - main - rangelock_destoy(): poison lock->head to trip fault on lock attempt
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Aug 2024 15:21:42 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=e228961d6e3b4a22a3684dc4f688cc3cd3cdff09
commit e228961d6e3b4a22a3684dc4f688cc3cd3cdff09
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-08-10 08:12:42 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-08-21 15:18:56 +0000
rangelock_destoy(): poison lock->head to trip fault on lock attempt
Tested by: markj, pho
Sponsored by: The FreeBSD Foundation
---
sys/kern/kern_rangelock.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/kern_rangelock.c b/sys/kern/kern_rangelock.c
index c01ed05e4a6a..992a19701611 100644
--- a/sys/kern/kern_rangelock.c
+++ b/sys/kern/kern_rangelock.c
@@ -344,6 +344,7 @@ rangelock_destroy(struct rangelock *lock)
MPASS(!lock->sleepers);
if (!rangelock_cheat_destroy(lock))
rangelock_noncheating_destroy(lock);
+ DEBUG_POISON_POINTER(*(void **)&lock->head);
}
static bool