net: ipv4: fix for a race condition in raw_sendmsg
inet->hdrincl is racy, and could lead to uninitialized stack pointer usage, so its value should be read only once. Change-Id: I2260be29bd0446f7018d6cd517dbdb25db73ae17 Fixes: c008ba5b ("ipv4: Avoid reading user iov twice after raw_probe_proto_opt") Signed-off-by:Mohamed Ghannam <simo.ghannam@gmail.com> Reviewed-by:
Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Git-commit: 8f659a03a0ba9289b9aeb9b4470e6fb263d6f483 Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Acked-by:
Sharath Chandra Vurukala <sharathv@qti.qualcomm.com> Signed-off-by:
Tejaswi Tanikella <tejaswit@codeaurora.org>
Loading
Please register or sign in to comment