Skip to content
Commit f638a84a authored by Wang Yufen's avatar Wang Yufen Committed by Jakub Kicinski
Browse files

ipv6: Fix signed integer overflow in l2tp_ip6_sendmsg



When len >= INT_MAX - transhdrlen, ulen = len + transhdrlen will be
overflow. To fix, we can follow what udpv6 does and subtract the
transhdrlen from the max.

Signed-off-by: default avatarWang Yufen <wangyufen@huawei.com>
Link: https://lore.kernel.org/r/20220607120028.845916-2-wangyufen@huawei.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f93431c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment