Home
last modified time | relevance | path

Searched hist:"23 b08260481ca552180130bbef0f3a60df4c092e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ipv6/
H A Dseg6.cdiff 23b08260481ca552180130bbef0f3a60df4c092e Sat Oct 02 17:33:32 CDT 2021 MichelleJin <shjy180909@gmail.com> net: ipv6: fix use after free of struct seg6_pernet_data

sdata->tun_src should be freed before sdata is freed
because sdata->tun_src is allocated after sdata allocation.
So, kfree(sdata) and kfree(rcu_dereference_raw(sdata->tun_src)) are
changed code order.

Fixes: f04ed7d277e8 ("net: ipv6: check return value of rhashtable_init")

Signed-off-by: MichelleJin <shjy180909@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>