Re: useless kernel.maps_protect and more



Hi,

On Wed, Jul 16, 2008 at 06:11:35AM +0400, Alexey Dobriyan wrote:
commit 5096add84b9e96e2e0a9c72675c442fe5433388a
"proc: maps protection"

commit 831830b5a2b5d413407adf380ef62fe17d6fcbf2
"restrict reading from /proc/<pid>/maps to those who share ->mm or can ptrace pid"

After Al added mm_for_maps(), maps_protect stopped controlling anything,
because they're run at ->show time, but mm_for_maps() checks are done at
->start time.

Unless anyone objects, I'll remove maps_protect.

As long as this provides the same protections as maps_protect, I'm fine
with it. I am a bit confused, though, since the reason I had to create
the sysctl entry in the first place was because akpm objected to the
maps file disappearing without a tunable. Has this objection gone away?

Also, logic behind second commit applies to /proc/*/pagemap , don't you
think?

If that file shows memory location, yes. What about the numa maps that
the first commit protects?

Thanks,

-Kees

--
Kees Cook @outflux.net
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [git pull] drm-fixes
    ... commit 2906f0258770d3a9c4e65364df8acc904e148bbe ... This fixes the MIPS with DRM build. ... fix leak of device mappings since multi-master changes. ... Device maps now contain a link to the master that created them, ...
    (Linux-Kernel)
  • [083/114] iwlagn: fix rts cts protection
    ... This is a backport of mainline commit ... Currently the driver will try to protect all frames, ... accordingly and set the protection required flag ...
    (Linux-Kernel)
  • Re: Garmin Xs, memory cards, and MapSource licenses
    ... >> Magellan does not have the same constraints on map usage. ... Both offered maps that came from public sources ... *without* any copy protection. ... GPS makers. ...
    (sci.geo.satellite-nav)
  • [PATCH 2.6.28] m68k: init_irq_proc depends on CONFIG_PROC_FS
    ... This was introduced by commit 6168a702ab0be181e5e57a0b2d0e7376f7a47f0b ... protection of the init_irq_proccall by a static inline dummy if ... -- Linus Torvalds ...
    (Linux-Kernel)
  • [patch 15/18] m68k: init_irq_proc depends on CONFIG_PROC_FS
    ... This was introduced by commit 6168a702ab0be181e5e57a0b2d0e7376f7a47f0b ... protection of the init_irq_proccall by a static inline dummy if ... -- Linus Torvalds ...
    (Linux-Kernel)