]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 5 Apr 2021 10:16:50 +0000 (19:16 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Apr 2021 22:06:03 +0000 (15:06 -0700)
commitb8dd2694f273aaf8505b730f2a0d2e1c10ef01fe
treedbc224317d9efa82154d4decbf394f810f2e1850
parent64873c4bbc754a033507f7b0cb100ef9ef0d883c
batman-adv: initialize "struct batadv_tvlv_tt_vlan_data"->reserved field

KMSAN found uninitialized value at batadv_tt_prepare_tvlv_local_data()
[1], for commit b063a73a9618ff8b ("batman-adv: use CRC32C instead of CRC16
in TT code") inserted 'reserved' field into "struct batadv_tvlv_tt_data"
and commit 7cf8c00d89df673e ("batman-adv: make the TT CRC logic VLAN
specific") moved that field to "struct batadv_tvlv_tt_vlan_data" but left
that field uninitialized.

[1] https://syzkaller.appspot.com/bug?id=07f3e6dba96f0eb3cabab986adcd8a58b9bdbe9d

Reported-by: syzbot <syzbot+50ee810676e6a089487b@syzkaller.appspotmail.com>
Tested-by: syzbot <syzbot+50ee810676e6a089487b@syzkaller.appspotmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: b063a73a9618ff8b ("batman-adv: use CRC32C instead of CRC16 in TT code")
Fixes: 7cf8c00d89df673e ("batman-adv: make the TT CRC logic VLAN specific")
Acked-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/batman-adv/translation-table.c