lkml.org 
[lkml]   [1999]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectBUG? in find_vma function (2.2.0 mm/mmap.c)
Date
Hi, 

I found a bug (maybe) in find_vma function (2.2.0 mm/mmap.c).
In original code, find_vma may return mm->mmap_cache directly in wrong case.

Here is patch.
====================
*** linux/mm/mmap.c.org Tue Jan 19 09:24:06 1999
--- linux/mm/mmap.c Wed Jan 27 10:30:42 1999
***************
*** 393,398 ****
--- 393,400 ----
} else {
/* Then go through the AVL tree quickly. */
struct vm_area_struct * tree = mm->mmap_avl;
+
+ vma = NULL;
for (;;) {
if (tree == vm_avl_empty)
break;
====================
-----
Shinji Sumimoto E-Mail: s-sumi@trc.rwcp.or.jp
Real World Computing Partnership



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.024 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site