lkml.org 
[lkml]   [2011]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 00/10] Enhance /dev/mem to allow read/write of arbitrary physical addresses
    On 06/20/2011 12:41 AM, Ingo Molnar wrote:
    >
    > * H. Peter Anvin <hpa@zytor.com> wrote:
    >
    >> There are some test drivers which really want /dev/mem to work.
    >
    > Test drivers and test hardware with zero enumeration can use below 4G
    > addresses just fine.
    >
    > Also, debugging is not an issue and some non-default kernel or boot
    > option can enable any sort of device i guess, so my main worry isnt
    > really security but that we should stand in the way of the apparent
    > practice of *shipping* user-space drivers that use /dev/mem ...
    >

    We should either fix /dev/mem to work according to its specification or
    rip it out. The issue with test drivers is not spurious... I ran into
    this one myself a few weeks ago while trying to do a memory test (by
    limiting the amount of memory available to the kernel). This is
    something that is typically done on factory floors, and it would be nice
    to be able to get those environments over to using Linux.

    -hpa

    --
    H. Peter Anvin, Intel Open Source Technology Center
    I work for Intel. I don't speak on their behalf.



    \
     
     \ /
      Last update: 2011-06-20 18:07    [W:3.001 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site