Re: [PATCH] ipv4: ipv6: initialize treq->txhash in cookie_v[46]_check()

From: David Miller
Date: Tue Jul 18 2017 - 14:23:46 EST


From: Alexander Potapenko <glider@xxxxxxxxxx>
Date: Mon, 17 Jul 2017 12:35:58 +0200

> KMSAN reported use of uninitialized memory in skb_set_hash_from_sk(),
> which originated from the TCP request socket created in
> cookie_v6_check():
...
> Similar error is reported for cookie_v4_check().
>
> Signed-off-by: Alexander Potapenko <glider@xxxxxxxxxx>
> Fixes: 58d607d3e52f ("tcp: provide skb->hash to synack packets")

Applied and queued up for -stable, thanks!