Re: [PATCH v4] MIPS: Make CP0 config registers readable via sysfs.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/13/2012 03:27 PM, Maciej W. Rozycki wrote:
On Thu, 13 Dec 2012, Steven J. Hill wrote:

Allow reading of CP0 config registers via sysfs for each core
in the system. The registers will show up in sysfs at the path:

    /sys/devices/system/cpu/cpuX/configX

  You're exporting privileged context outside the kernel -- have all the
security implications been considered?

Can you give an example of what would be risky?


 At the very least I don't think
these files should be word-readable.



According to Steven's earlier comments, all he really cares about are the ASEs implemented.

We have a patch (that I will send soon) that exports the Cache configurations via the same method that x86 Cache information is reported, so that part of the config register information would be reported separately.

The rest of the CP0_ConfigX bits really report things that are only useful to privileged mode software, so perhaps they shouldn't be reported.

David Daney



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux