calling mmap from assembly, invalid argument
adr at SDF.ORG
adr at SDF.ORG
Sat Jun 27 19:48:40 UTC 2020
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.
More information about the freebsd-arm
mailing list