[haiku-bugs] Re: [Haiku] #15175: SMEP violation in /dev/mem

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 17 Jul 2019 15:53:38 -0000

#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.

Other related posts: