[Bug 241639] Fatal trap 12: page fault ... current process = 0 (vmbusdev) when using mlx4en
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Nov 26 21:46:10 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241639
--- Comment #24 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Michael from comment #23)
Try this.
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index 6dc21886066..89b575b0ab7 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -1066,6 +1066,9 @@ kern_kldload(struct thread *td, const char *file, int
*fileid)
if ((error = priv_check(td, PRIV_KLD_LOAD)) != 0)
return (error);
+ if (td->td_proc->p_fd == NULL)
+ return (EINVAL);
+
/*
* It is possible that kldloaded module will attach a new ifnet,
* so vnet context must be set when this ocurs.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list