From: Mohamed Ghannam Date: Sun, 10 Dec 2017 03:50:58 +0000 (+0000) Subject: net: ipv4: fix for a race condition in raw_sendmsg X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eec37d0e9039d5fbfc400324a06793b21ff24cd;p=pandora-kernel.git net: ipv4: fix for a race condition in raw_sendmsg commit 8f659a03a0ba9289b9aeb9b4470e6fb263d6f483 upstream. inet->hdrincl is racy, and could lead to uninitialized stack pointer usage, so its value should be read only once. Fixes: c008ba5bdc9f ("ipv4: Avoid reading user iov twice after raw_probe_proto_opt") Signed-off-by: Mohamed Ghannam Reviewed-by: Eric Dumazet Signed-off-by: David S. Miller [bwh: Backported to 3.2: - flowi4 flags don't depend on hdrincl - Adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed