Call from 8-bytes aligned stack to functions that require 16-bytes stack alignment

Yuxuan Shui <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CAGqt0zxo-gfBpdrctrtnrz8sTezD3nXObD4YYuz09jbZbKJegw@mail.gmail.com>
Hi,

L4Linux is compiled with -mpreferred-stack-boundary=3, but the "external
functions" it calls are usually compiled without this option, so defaults
to 16 bytes alignment. This causes potential unaligned memory access if the
compiler choose to generate instructions like movdqa.

QEMU without kvm seems to just let this pass, but with kvm enabled, this
could generate a GP.

-- 

Regards
Yuxuan Shui

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.