Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108070311
D31510.id93562.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
564 B
Referenced Files
None
Subscribers
None
D31510.id93562.diff
View Options
Index: sys/libkern/arc4random.c
===================================================================
--- sys/libkern/arc4random.c
+++ sys/libkern/arc4random.c
@@ -34,6 +34,7 @@
#include <sys/linker.h>
#include <sys/lock.h>
#include <sys/malloc.h>
+#include <sys/msan.h>
#include <sys/mutex.h>
#include <sys/random.h>
#include <sys/smp.h>
@@ -106,6 +107,8 @@
"enabled.\n");
}
+ kmsan_mark(key, sizeof(key), KMSAN_STATE_INITED);
+
/* Last ditch effort to inject something in a bad condition. */
cc = get_cyclecount();
SHA256_Init(&ctx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 22, 3:23 AM (21 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16024238
Default Alt Text
D31510.id93562.diff (564 B)
Attached To
Mode
D31510: arc4random: Avoid KMSAN false positives from pre-seeding results
Attached
Detach File
Event Timeline
Log In to Comment