login
Header Space

 
 

Re: on CONFIG_MM_OWNER=y, kernel panic is possible.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <balbir@...>
Cc: <kosaki.motohiro@...>, Lee Schermerhorn <Lee.Schermerhorn@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>, LKML <linux-kernel@...>, linux-mm <linux-mm@...>, Andrew Morton <akpm@...>
Date: Tuesday, May 6, 2008 - 2:03 am

> That is not possible. If you look at where mm_update_next_owner() is called

if so, following patch is needed instead.



---
 fs/exec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/fs/exec.c
===================================================================
--- a/fs/exec.c 2008-05-04 22:57:09.000000000 +0900
+++ b/fs/exec.c 2008-05-06 15:40:35.000000000 +0900
@@ -735,7 +735,7 @@ static int exec_mmap(struct mm_struct *m
        tsk->active_mm = mm;
        activate_mm(active_mm, mm);
        task_unlock(tsk);
-       mm_update_next_owner(mm);
+       mm_update_next_owner(old_mm);
        arch_pick_mmap_layout(mm);
        if (old_mm) {
                up_read(&old_mm->mmap_sem);


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

Messages in current thread:
on CONFIG_MM_OWNER=y, kernel panic is possible., KOSAKI Motohiro, (Tue May 6, 1:40 am)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Balbir Singh, (Tue May 6, 1:48 am)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., KOSAKI Motohiro, (Tue May 6, 2:03 am)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Balbir Singh, (Tue May 6, 2:32 am)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., KOSAKI Motohiro, (Tue May 6, 2:18 am)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Balbir Singh, (Tue May 6, 2:28 am)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., KOSAKI Motohiro, (Tue May 6, 2:43 am)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Paul Menage, (Tue May 6, 11:37 pm)
speck-geostationary