Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149364040
D20218.id57228.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
611 B
Referenced Files
None
Subscribers
None
D20218.id57228.diff
View Options
Index: sys/dev/random/ivy.c
===================================================================
--- sys/dev/random/ivy.c
+++ sys/dev/random/ivy.c
@@ -97,6 +97,13 @@
return (retry);
}
+static int
+x86_unimpl_store(u_long *buf __unused)
+{
+
+ panic("missing hardware PRNG support");
+}
+
DEFINE_IFUNC(static, int, x86_rng_store, (u_long *buf), static)
{
has_rdrand = (cpu_feature2 & CPUID2_RDRAND);
@@ -107,7 +114,7 @@
else if (has_rdrand)
return (x86_rdrand_store);
else
- return (NULL);
+ return (x86_unimpl_store);
}
/* It is required that buf length is a multiple of sizeof(u_long). */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 25, 12:08 AM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30282796
Default Alt Text
D20218.id57228.diff (611 B)
Attached To
Mode
D20218: Do not return NULL from the Intel hw PRNG ifunc resolver.
Attached
Detach File
Event Timeline
Log In to Comment