Skip to content

RFC rework /dev/mem code vs. highmem and DEBUG_VIRTUAL

Dave Hansen lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5clean up checks against "high_memory" variablearch/x86/mm/pat.c drivers/char/mem.c drivers/mtd/mtdchar.c +1 more+21 -71 reply
2/5make /dev/kmem return error for highmemdrivers/char/mem.c+10 -11 reply
3/5avoid /dev/kmem oopses with DEBUG_VIRTUALdrivers/char/mem.c+3 -30 replies
4/5break up slow_virt_to_phys()arch/x86/mm/pageattr.c+26 -143 replies
5/5keep /dev/kmem from triggering BUG_ON() with DEBUG_VIRTUALarch/x86/mm/pageattr.c drivers/char/mem.c include/linux/mmdebug.h+29 -01 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchBorislav Petkov
1/5T-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] [RFC] rework /dev/mem code vs. highmem and DEBUG_VIRTUAL

/dev/[k]mem are a bit of a mess. They've probably been subtly broken for a long time on highmem or when the kernel's page tables have been munged in other ways.

This has only been lightly tested on x86. Needs some review and some wider testing before getting applied anywhere.