From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1c87c8c98bd3927b87d082b489843d37@felloff.net> Date: Sun, 14 Sep 2014 07:55:39 +0200 From: cinap_lenrek@felloff.net To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] segattach in telnetd Topicbox-Message-UUID: 1693a826-ead9-11e9-9d60-3106f5b1d025 no, it is not. labs also seems to just round up the length not adding the remainder of the unaligned va address. it would be a one line fix in the kernel. the manpage sais this: Va and len specify the position of the segment in the process's address space. Va is rounded down to the nearest page boundary and va+len is rounded up. The system does not permit segments to overlap. If va is zero, the system will choose a suitable address. the question is, does the va in va+len mean before or after the rounding down. i'd say *before* because otherwise, theres no point in define it as va+len. -- cinap