path: root/drivers/net/usb/usbnet.c
diff options
authorMartin KaFai Lau <>2016-07-05 12:10:23 -0700
committerDavid S. Miller <>2016-07-05 14:09:23 -0700
commit903ce4abdf374e3365d93bcb3df56c62008835ba (patch)
tree3b7254712331dcc662a55652f068f26c5003f2e3 /drivers/net/usb/usbnet.c
parentab58298cf459fcd4f588a401d36abf0bd2215b51 (diff)
ipv6: Fix mem leak in rt6i_pcpu
It was first reported and reproduced by Petr (thanks!) in free_percpu(rt->rt6i_pcpu) used to always happen in ip6_dst_destroy(). However, after fixing a deadlock bug in commit 9c7370a166b4 ("ipv6: Fix a potential deadlock when creating pcpu rt"), free_percpu() is not called before setting non_pcpu_rt->rt6i_pcpu to NULL. It is worth to note that rt6i_pcpu is protected by table->tb6_lock. kmemleak somehow did not report it. We nailed it down by observing the pcpu entries in /proc/vmallocinfo (first suggested by Hannes, thanks!). Signed-off-by: Martin KaFai Lau <> Fixes: 9c7370a166b4 ("ipv6: Fix a potential deadlock when creating pcpu rt") Reported-by: Petr Novopashenniy <> Tested-by: Petr Novopashenniy <> Acked-by: Hannes Frederic Sowa <> Cc: Hannes Frederic Sowa <> Cc: Petr Novopashenniy <> Signed-off-by: David S. Miller <>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
0 files changed, 0 insertions, 0 deletions