Re: [PATCH] Fix mmap_kmem (was: [question] What's the difference between /dev/kmem and /dev/mem)

From: Andi Kleen (ak_at_suse.de)
Date: 08/12/05

  • Next message: Carsten Menke: "2.6.12.3 Kernel Oops using ISDN capi (c2faxsend)"
    To: Linus Torvalds <torvalds@osdl.org>
    Date:	12 Aug 2005 18:54:49 +0200
    
    

    Linus Torvalds <torvalds@osdl.org> writes:
    >
    > I'm actually more inclined to try to deprecate /dev/kmem.. I don't think
    > anybody has ever really used it except for some rootkits.

    I don't think that's true.
     
    > So I'd be perfectly happy to fix this, but I'd be even happier if we made
    > the whole kmem thing a config variable (maybe even default it to "off").

    Acessing vmalloc in /dev/mem would be pretty awkward. Yes it doesn't
    also work in mmap of /dev/kmem, but at least in read/write.
    There are quite a lot of scripts that use it for kernel debugging
    like dumping variables. And for that you really want to access modules
    and vmalloc. And it's much easier to parse than /proc/kcore

    In fact I have some patches queued to fix it for x86-64 again
    (people who used such scripts on i386 are complaining)

    -Andi
    -
    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/


  • Next message: Carsten Menke: "2.6.12.3 Kernel Oops using ISDN capi (c2faxsend)"

    Relevant Pages

    • Re: [patch] v4l: documentation update
      ... buggy - I have just noticed this problem when building your drivers. ... Here is the fix for your scripts which generate this file: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 2.4.23-pre4] Fixup make xconfig (was Re: Linux 2.4.23-pre3)
      ... > make -C scripts kconfig.tk ... with the attached fix:p ... Marcelo, please apply this too. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: BitKeeper repo for KGDB
      ... Hmm, reminds me, the scripts to make those snapshots broke when I migrated to ... I'll go fix them up. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Wait for it?? Or switch.
      ... >the scope of the Mozilla browsers is much smaller than the scope of IE, ... that's all the more reason for prudent design, ... wait for a fix!". ... Take the article on scripts within cookies, ...
      (microsoft.public.security.virus)
    • Re: Power Management Update
      ... I encountered this problem by having an IDE CD-ROM, ... He mentioned producing a cleaner patch, but this should at least fix the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)