Re: [PATCH] Fix check after use in kernel/exit.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Monday, March 10, 2008 - 2:13 am

* WANG Cong <xiyou.wangcong@gmail.com> wrote:



no, this is buggy in the same way - we wont do a deactivate_mm() for 
kernel threads. The check should be left alone in exit_mm(), we should 
at most add a check for NULL mm to this place:

        if (tsk->clear_child_tid
            && !(tsk->flags & PF_SIGNALED)
            && atomic_read(&mm->mm_users) > 1) {

but ... can mm in fact ever be NULL if tsk->clear_child_tid is set?

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix check after use in kernel/exit.c, WANG Cong, (Sat Mar 8, 1:11 am)
Re: [PATCH] Fix check after use in kernel/exit.c, Ingo Molnar, (Sat Mar 8, 1:36 am)
Re: [PATCH] Fix check after use in kernel/exit.c, Ingo Molnar, (Sat Mar 8, 1:53 am)
Re: [PATCH] Fix check after use in kernel/exit.c, WANG Cong, (Sat Mar 8, 1:58 am)
Re: [PATCH] Fix check after use in kernel/exit.c, Ingo Molnar, (Sun Mar 9, 4:48 am)
Re: [PATCH] Fix check after use in kernel/exit.c, WANG Cong, (Mon Mar 10, 1:23 am)
Re: [PATCH] Fix check after use in kernel/exit.c, Ingo Molnar, (Mon Mar 10, 2:13 am)