Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 14 Dec 2012 00:27:34 +0100 (CET) Received: from localhost.localdomain ([127.0.0.1]:52033 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6823110Ab2LMX1dd2Qh- (ORCPT ); Fri, 14 Dec 2012 00:27:33 +0100 Date: Thu, 13 Dec 2012 23:27:33 +0000 (GMT) From: "Maciej W. Rozycki" To: "Steven J. Hill" cc: linux-mips@linux-mips.org, Ralf Baechle Subject: Re: [PATCH v4] MIPS: Make CP0 config registers readable via sysfs. In-Reply-To: <1355436915-24381-1-git-send-email-sjhill@mips.com> Message-ID: References: <1355436915-24381-1-git-send-email-sjhill@mips.com> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-archive-position: 35284 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: macro@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Return-Path: 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