Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932157Ab1FQI65 (ORCPT ); Fri, 17 Jun 2011 04:58:57 -0400 Received: from cantor.suse.de ([195.135.220.2]:56146 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758017Ab1FQI5S (ORCPT ); Fri, 17 Jun 2011 04:57:18 -0400 Subject: [PATCH 00/10] Enhance /dev/mem to allow read/write of arbitrary physical addresses From: Petr Tesarik Organization: SUSE LINUX, s.r.o. Date: Fri, 17 Jun 2011 10:38:25 +0200 MIME-Version: 1.0 To: Andrew Morton , Fenghua Yu , "H. Peter Anvin" , Ingo Molnar , Paul Mundt , Russell King , Thomas Gleixner , Tony Luck , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201106171038.25988.ptesarik@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1532 Lines: 35 This patch series enhances /dev/mem, so that read and write is possible at any address. The patchset includes actual implementation for x86. Petr Tesarik (10): Return EOF on out-of-bounds read from /dev/mem (un)xlate_dev_mem_ptr: use phys_addr_t for the @phys parameter x86: translate highmem /dev/mem pointers ia64: change xlate_dev_mem_ptr's argument to phys_addr_t valid_phys_addr_range: use phys_addr_t for the @addr parameter sh: change valid_phys_addr_range's @addr param to phys_addr_t arm: change valid_phys_addr_range's @addr param to phys_addr_t ia64: change valid_phys_addr_range's @addr param to phys_addr_t x86: provide arch-specific valid_phys_addr_range() Allow reading/writing all memory through /dev/mem arch/arm/include/asm/io.h | 2 +- arch/arm/mm/mmap.c | 2 +- arch/ia64/include/asm/io.h | 2 +- arch/ia64/include/asm/uaccess.h | 2 +- arch/ia64/kernel/efi.c | 2 +- arch/sh/include/asm/io.h | 2 +- arch/sh/mm/mmap.c | 2 +- arch/x86/include/asm/io.h | 15 +++++++++++++-- arch/x86/mm/ioremap.c | 24 ++++++++++++++++++------ drivers/char/mem.c | 14 ++++++++++---- 10 files changed, 48 insertions(+), 19 deletions(-) -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/