Skip to contentSkip to conversation

2.6.13 - output of /proc/maps on nommu systems is incomplete

PATCH In review David McCullough 2 participants 2 messages Oct 6, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.13 - output of /proc/maps on nommu systems is incomplete

Hi all,

Simple patch against 2.6.13 for /proc/maps on nommu systems. Currently you do not get all the map entries because the start function doesn't index into the list using the value of "pos".

Cheers,
Davidm

Index: fs/proc/nommu.c
===================================================================
RCS file: /cvs/sw/linux-2.6.x/fs/proc/nommu.c,v
retrieving revision 1.1.1.1

proc/nommu.c +1 -0
diff -u -p -r1.1.1.1 nommu.c
@@ -91,6 +91,7 @@ static void *nommu_vma_list_start(struct
 			next = _rb;
 			break;
 		}
+		pos--;
 	}
 
 	return next;
Signature · 2 lines
David McCullough, [email protected], Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com
#1 lore raw
Quoted 3 lines · David McCullough

Simple patch against 2.6.13 for /proc/maps on nommu systems. Currently you do not get all the map entries because the start function doesn't index into the list using the value of "pos".

Looks reasonable.