Re: [PATCH] Use MM_VM_SIZE in exit_mmap
From: William Lee Irwin III (wli_at_holomorphy.com)
Date: 01/26/05
- Previous message: Ingo Molnar: "Re: [patch, 2.6.11-rc2] sched: /proc/sys/kernel/rt_cpu_limit tunable"
- In reply to: Andi Kleen: "Re: [PATCH] Use MM_VM_SIZE in exit_mmap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message: Ingo Molnar: "Re: [patch, 2.6.11-rc2] sched: /proc/sys/kernel/rt_cpu_limit tunable"
- In reply to: Andi Kleen: "Re: [PATCH] Use MM_VM_SIZE in exit_mmap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|