[DragonFlyBSD - Submit #1192] KKASSERTs in sys/kern/uipc_{msg,socket}.c are too strict

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Mon Jan 19 04:14:10 PST 2015


Issue #1192 has been updated by tuxillo.

Tracker changed from Bug to Submit
Description updated
Category set to Kernel
Assignee deleted (alexh)
Priority changed from High to Normal
Target version set to 4.2.x

Hi,

Indeed, kva_p() is only used in uipc_msg.c and uipc_socket.c
Matt, what do you think about the attached patch?

Cheers,
Antonio Huete

----------------------------------------
Submit #1192: KKASSERTs in sys/kern/uipc_{msg,socket}.c are too strict
http://bugs.dragonflybsd.org/issues/1192#change-12514

* Author: rumcic
* Status: New
* Priority: Normal
* Assignee: 
* Category: Kernel
* Target version: 4.2.x
----------------------------------------
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

---Files--------------------------------
rootnfs.patch (2.63 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list