Bug #1192

KKASSERTs in sys/kern/uipc_{msg,socket}.c are too strict

Added by rumcic over 4 years ago. Updated about 3 years ago.

Status:New Start date:
Priority:High Due date:
Assignee:alexh % Done:

0%

Category:-
Target version:-

Description

The code for nfs root mounts does not use kmalloc-ed space for some vars, while
some KKASSERTs in the mentioned files only check for the supplied pointers if
they were kmalloc-ed or not.
The attached patch adds a check if the supplied pointers are not in user stack
(if they are in kernel stack) ... since kmalloc-ed space also resides in the
addresses not in user stack, maybe kva_p should be removed (is it used
anywhere else?)?
--
Regards,
Rumko

rootnfs.patch (2.6 kB) rumcic, 12/29/2008 10:05 pm


Related todos

History

Updated by corecode over 4 years ago

has this been fixed?

Updated by rumcic about 4 years ago

No, not yet. (Sorry for the late response)

Also available in: Atom PDF