LWN.net Logo

Why not /dev/mem?

Why not /dev/mem?

Posted Dec 17, 2012 17:07 UTC (Mon) by cesarb (subscriber, #6266)
Parent article: World-writable memory on Samsung Android phones

If I understood it correctly, this does the same as /dev/mem. Then why did they create their own device instead of /dev/mem? Is it because Android's Compatibility Test Suite, which is required for calling your device an Android device, *explicitly* disallows a world-accessible /dev/mem? (See https://android.googlesource.com/platform/cts/+/master/te... for the testcase.)


(Log in to post comments)

Why not /dev/mem?

Posted Dec 17, 2012 17:20 UTC (Mon) by andreasb (subscriber, #80258) [Link]

It does what /dev/mem *used* to do. Nowadays it is restricted to address ranges that do not cover actual memory.

So someone at Samsung had to copy the /dev/mem driver, remove that restriction and then, for good measure, make it world accessible by default…

Why not /dev/mem?

Posted Dec 21, 2012 10:49 UTC (Fri) by ortalo (subscriber, #4654) [Link]

I would be very interested in knowing *why* he did all that. Do you think it is possible to find from available information?

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds