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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KOSAKI Motohiro
Date: Monday, May 5, 2008 - 11:18 pm

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

and, one more.

comment of owner member of mm_struct is bogus.
that is not guranteed point to thread-group-leader.


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>

---
 include/linux/mm_types.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: b/include/linux/mm_types.h
===================================================================
--- a/include/linux/mm_types.h  2008-05-04 22:56:52.000000000 +0900
+++ b/include/linux/mm_types.h  2008-05-06 15:53:04.000000000 +0900
@@ -231,8 +231,7 @@ struct mm_struct {
        rwlock_t                ioctx_list_lock;        /* aio lock */
        struct kioctx           *ioctx_list;
 #ifdef CONFIG_MM_OWNER
-       struct task_struct *owner;      /* The thread group leader that */
-                                       /* owns the mm_struct.          */
+       struct task_struct *owner;      /* point to one of task that owns the mm_struct. */
 #endif

 #ifdef CONFIG_PROC_FS



--
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, (Mon May 5, 10:40 pm)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Balbir Singh, (Mon May 5, 10:48 pm)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., KOSAKI Motohiro, (Mon May 5, 11:03 pm)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., KOSAKI Motohiro, (Mon May 5, 11:18 pm)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Balbir Singh, (Mon May 5, 11:28 pm)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Balbir Singh, (Mon May 5, 11:32 pm)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., KOSAKI Motohiro, (Mon May 5, 11:43 pm)
Re: on CONFIG_MM_OWNER=y, kernel panic is possible., Paul Menage, (Tue May 6, 8:37 pm)