linux-mips
[Top] [All Lists]

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

To: "Steven J. Hill" <sjhill@mips.com>
Subject: Re: [PATCH v4] MIPS: Make CP0 config registers readable via sysfs.
From: "Maciej W. Rozycki" <macro@linux-mips.org>
Date: Thu, 13 Dec 2012 23:27:33 +0000 (GMT)
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
In-reply-to: <1355436915-24381-1-git-send-email-sjhill@mips.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1355436915-24381-1-git-send-email-sjhill@mips.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Alpine 2.02 (LFD 1266 2009-07-14)
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?  At the very least I don't think 
these files should be word-readable.

  Maciej

<Prev in Thread] Current Thread [Next in Thread>