Skip to content

Enhance /dev/mem to allow read/write of arbitrary physical addresses

Petr Tesarik linux-arm-kernel linux-ia64 linux-sh lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Return EOF on out-of-bounds read from /dev/memdrivers/char/mem.c+6 -00 replies
2/10(un)xlate_dev_mem_ptr: use phys_addr_t for the @phys parameterdrivers/char/mem.c+1 -10 replies
3/10x86: translate highmem /dev/mem pointersarch/x86/include/asm/io.h arch/x86/mm/ioremap.c+20 -80 replies
4/10ia64: change xlate_dev_mem_ptr's argument to phys_addr_tarch/ia64/include/asm/uaccess.h+1 -10 replies
5/10valid_phys_addr_range: use phys_addr_t for the @addr parameterdrivers/char/mem.c+1 -10 replies
6/10sh: change valid_phys_addr_range's @addr param to phys_addr_tarch/sh/include/asm/io.h arch/sh/mm/mmap.c+2 -20 replies
7/10arm: change valid_phys_addr_range's @addr param to phys_addr_tarch/arm/include/asm/io.h arch/arm/mm/mmap.c+2 -20 replies
8/10ia64: change valid_phys_addr_range's @addr param to phys_addr_tarch/ia64/include/asm/io.h arch/ia64/kernel/efi.c+2 -20 replies
9/10x86: provide arch-specific valid_phys_addr_range()arch/x86/include/asm/io.h+11 -00 replies
10/10Allow reading/writing all memory through /dev/memdrivers/char/mem.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] Enhance /dev/mem to allow read/write of arbitrary physical addresses

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(-)
Signature · 1 line
1.7.3.4