Date: Sat, 27 Jun 2020 19:48:34 +0000 From: adr@SDF.ORG To: Konstantin Belousov <kostikbel@gmail.com> Cc: freebsd-arm@freebsd.org Subject: Re: calling mmap from assembly, invalid argument Message-ID: <20200627194834.GC22042@SDF.ORG> In-Reply-To: <20200627175835.GC32126@kib.kiev.ua> References: <20200627155110.GA22042@SDF.ORG> <20200627175835.GC32126@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 27, 2020 at 08:58:35PM +0300, Konstantin Belousov wrote: > Offset has off_t type which is 64 bit and requires proper alignment. > In this code, some random garbage on the stack is interpreted as offset. > > Our mmap(2) is strict by requiring offset equal to zero for MAP_ANON. > > You would see it yourself with either ktrace/kdump or truss. Thanks! adr.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200627194834.GC22042>