SMAP in kext
SMAP in kext
- Subject: SMAP in kext
- From: Jorgen Lundman <email@hidden>
- Date: Fri, 10 Apr 2015 16:34:38 +0900
Hola,
Came across a user of OpenZFS who has a Broadwell CPU, and they experience
SMAP kernel panics.
Trying to get the official picture from Apple and XNU. I see stac() and
clac() were added in 10.10, and 10.10.3 seems to have enabled SMAP.
Is it supposed to be handled internally with copyin/copyout/copyinstr? Or
should I test for SMAP and handle it each time I call copyin/copyout?
The bdev ioctl syscall handles the copyin/copyout for me, so presumably I
need not deal with SMAP there. Although we appear to panic in a memcpy()
from the ioctl data handed to me. copywithin() is not exported, and besides
just calls bcopy().
Unfortunately, the latest XNU sources out are xnu-2782.1.97 which do not
contain the SMAP logic, so I can not check myself.
Lund
--
Jorgen Lundman | <email@hidden>
Unix Administrator | +81 (0)90-5578-8500 (work)
Shibuya-ku, Tokyo | +81 (0)80-2090-5800 (cell)
Japan | +81 (0)3 -3375-1767 (home)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden