diff options
| author | Jonathan Solnit <jsolnit@google.com> | 2018-02-12 14:41:49 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-05-16 13:07:32 +0200 |
| commit | 1b3a3a3ae8ccfeefe70a378b50b115b6bab2e362 (patch) | |
| tree | 284e36d87921ed05767fc158a571e4a02a22afaf /drivers/usb/class | |
| parent | 796a2bd77143943ddb759ea3831e3a4591b81fb0 (diff) | |
BACKPORT: net: ipv4: fix for a race condition in raw_sendmsg
[ Upstream commit 8f659a03a0ba9289b9aeb9b4470e6fb263d6f483 ]
inet->hdrincl is racy, and could lead to uninitialized stack pointer
usage, so its value should be read only once.
Bug: 71500434
Change-Id: Ic02fa0f7b8f8525739996be2e0309ad2fa5b97dc
Fixes: c008ba5bdc9f ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Solnit <jsolnit@google.com>
Diffstat (limited to 'drivers/usb/class')
0 files changed, 0 insertions, 0 deletions
