diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-06-14 10:19:54 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-06-14 10:56:35 +0200 |
| commit | 32a6799255525d6ea4da0f7e9e0e521ad9560a46 (patch) | |
| tree | c11f3302dd977df56e4e95b3e42779344859f3e6 /tools/lib/python/kdoc/python_version.py | |
| parent | 20d7658b74169f86d4ac01b9185b3eadddf71f28 (diff) | |
batman-adv: tvlv: enforce 2-byte alignment
The fields of an aggregated OGM(v2) are accessed assuming (at least) 2-byte
alignment, so a following OGM must start at an even offset. As the header
length is even, an odd tvlv_len would misalign it and trigger unaligned
accesses on strict-alignment architectures.
Such a misaligned TVLV/OGM/OGMv2 is not created by a normal participant in
the mesh. Therefore, reject such malformed packets.
Cc: stable@kernel.org
Fixes: ef26157747d4 ("batman-adv: tvlv - basic infrastructure")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
