Bug Report: Unaligned Access in BGP Code on ARMv7 Platforms
Ondrej Zajicek
santiago at crfreenet.org
Fri Dec 6 03:16:41 CET 2024
On Thu, Dec 05, 2024 at 11:35:13PM +0100, nick via Bird-users wrote:
> Dear BIRD Community,
>
> I am writing to report a bug observed in the BGP implementation on ARMv7
> platforms, which results in a SIGBUS error due to unaligned memory access in
> the NEON assembler code. I debugged this issue on version 2.15.1 of BIRD.
>
> The root cause appears to be insufficient alignment of memory allocated for
> structures, specifically in this line:
>
> ```c
> px = mb_alloc(c->pool, sizeof(struct bgp_prefix) + net->length);
> ```
Hello
Thanks for the report, can you get from your crash the pointer / aligment of
'px' and also get sizeof(struct mblock) in your build?
--
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
"To err is human -- to blame it on a computer is even more so."
More information about the Bird-users
mailing list