Re: [PATCH] Use MM_VM_SIZE in exit_mmap

From: William Lee Irwin III (wli_at_holomorphy.com)
Date: 01/26/05

  • Next message: Adrian Bunk: "Re: [2.6 patch] update Dag Brattli's email address"
    Date:	Tue, 25 Jan 2005 23:39:48 -0800
    To: Andi Kleen <ak@muc.de>
    
    

    Anton Blanchard <anton@samba.org> writes:
    >> It is possible for one task to end up "owning" an mm from another - we
    >> have seen this with the procfs code when process 1 accesses
    >> /proc/pid/cmdline of process 2 while it is exiting. Process 2 exits
    >> but does not tear its mm down. Later on process 1 finishes with the proc
    >> file and the mm gets torn down at this point.

    On Wed, Jan 26, 2005 at 07:44:24AM +0100, Andi Kleen wrote:
    > IMHO that's the root bug. That sounds really dangerous and will likely
    > cause other problems because it is totally unexpected. How about fixing
    > /proc to not do this?

    It would not be meaningful. It's a natural outcome of reference
    counting the mm, /proc/ is far from the only place that acquires
    references on mm's, and they're all necessary.

    -- wli
    -
    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: Adrian Bunk: "Re: [2.6 patch] update Dag Brattli's email address"

    Relevant Pages

    • Re: [PATCH] Use MM_VM_SIZE in exit_mmap
      ... > have seen this with the procfs code when process 1 accesses ... > but does not tear its mm down. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Function decorator that caches function results
      ... 'cache' and 'fn' are replaced by the objects they reference ... codes for all accesses to such objects. ... def wrapper: ... nested scopes; this is where the func_closure attribute is initialized). ...
      (comp.lang.python)
    • Re: [PATCH 1/1] pci: Block config access during BIST (resend)
      ... It actually only works for 4 byte accesses. ... It will certainly make the patch ... given device could have its config space blocked for a long time. ... 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/ ...
      (Linux-Kernel)
    • Re: WaitForSingleObject() failing?
      ... Since nothing accesses the thread after that point, ... The issue is whether you use a synchronous join or an asynchronous join. ... >>a reference count of outstanding threads, and when OnClose happened, I deferred executing ...
      (microsoft.public.vc.mfc)
    • Re: klists and struct device semaphores
      ... there is no need to confuscate the klist code to do it. ... lifetime rules of the containing objects. ... they should increment the reference count of the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)