aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-05-02 21:25:19 +0200
committerSven Eckelmann <sven@narfation.org>2026-05-12 08:33:53 +0200
commit99d9958fa10fb684b2a8e2c48a8d704122721420 (patch)
treebbdfe7350d0c00a2f2767cb02ba1ccf06081d1d0 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
parentbatman-adv: tt: avoid empty VLAN responses (diff)
batman-adv: tt: prevent TVLV entry number overflow
The helpers to prepare the buffers for the local and global TT based replies are trying to sum up all TT entries which can be found for each VLAN. In theory, this sum can be too big for an u16 and therefore overflow. A too small buffer would then be allocated for the TVLV. The too small buffer will be handled gracefully by batadv_tt_tvlv_generate() and is not causing a buffer overflow - just a truncated reply. But this overflow shouldn't have happened in the first and the too small buffer should never have been allocated when an overflow was detected. Cc: stable@kernel.org Fixes: 7ea7b4a14275 ("batman-adv: make the TT CRC logic VLAN specific") Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions