pppoe.c: Fix kernel panic caused by __pppoe_xmit
__pppoe_xmit function return value was invalid resulting in additional call to kfree_skb on already freed skb. This resulted in memory corruption and consequent kernel panic after PPPoE peer terminated the link. This fixes commit 55c95e73. Reported-by: NGorik Van Steenberge <gvs@zemos.net> Reported-by: NDaniel Kenzelmann <kernel.bugzilla@kenzelmann.dyndns.info> Reported-by: NDenys Fedoryshchenko <nuclearcat@nuclearcat.com> Reported-by: NPawel Staszewski <pstaszewski@artcom.pl> Diagnosed-by: NAndrej Ota <andrej@ota.si> Diagnosed-by: NEric Dumazet <eric.dumazet@gmail.com> Tested-by: NDenys Fedoryshchenko <nuclearcat@nuclearcat.com> Tested-by: NPawel Staszewski <pstaszewski@artcom.pl> Signed-off-by: NJarek Poplawski <jarkao2@gmail.com> Signed-off-by: NAndrej Ota <andrej@ota.si> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录