#15175: SMEP violation in /dev/mem
----------------------+----------------------------
Reporter: diver | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: System | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------+----------------------------
Comment (by waddlesplash):
https://xref.plausible.coop/source/xref/haiku/src/system/kernel/fs/fd.cpp#510
There is already a NULL check here. So how is it *calling* (SMEP) a NULL
pointer?
/dev/mem's control is indeed NULL though:
https://xref.plausible.coop/source/xref/haiku/src/add-
ons/kernel/drivers/misc/mem.c#41
--
Ticket URL: <https://dev.haiku-os.org/ticket/15175#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.