From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0394dacaee5cc8e182b6c87f23bd1c8f@brasstown.quanstro.net> References: <0394dacaee5cc8e182b6c87f23bd1c8f@brasstown.quanstro.net> From: Venkatesh Srinivas Date: Fri, 25 Sep 2009 14:01:09 -0400 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] segattach off-by-one? Topicbox-Message-UUID: 777f0332-ead5-11e9-9d60-3106f5b1d025 So in my example, va = 0x10001001, len = 0x1000. I understood that to mean [0x10001001, 0x10002001) was the newly-valid interval, which would mean 0x10002000 was a valid address... The segattach manpage says va+len is 'rounded up'; wouldn't that mean the expanded interval was [0x10001000, 0x10003000)? Or am I misreading the manpage? Thanks, -- vs