Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tls: Use size_add() in call to struct_size()
[ Upstream commit a271325 ] If, for any reason, the open-coded arithmetic causes a wraparound, the protection that `struct_size()` adds against potential integer overflows is defeated. Fix this by hardening call to `struct_size()` with `size_add()`. Fixes: b89fec5 ("tls: rx: wrap decrypt params in a struct") Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information