Skip to content

ipv6: fix error path of inet6_init()

Sabrina Dubroca netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ipv6: fix cleanup ordering for ip6_mr failurenet/ipv6/af_inet6.c+3 -30 replies
2/3ipv6: fix cleanup ordering for pingv6 registrationnet/ipv6/af_inet6.c+2 -20 replies
3/3net: rtnl: return early from rtnl_unregister_all when protocol isn't registerednet/core/rtnetlink.c+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] ipv6: fix error path of inet6_init()

The error path of inet6_init() can trigger multiple kernel panics, mostly due to wrong ordering of cleanups. This series fixes those issues.

Sabrina Dubroca (3):
ipv6: fix cleanup ordering for ip6_mr failure
ipv6: fix cleanup ordering for pingv6 registration
net: rtnl: return early from rtnl_unregister_all when protocol isn't
registered

 net/core/rtnetlink.c |  4 ++++
 net/ipv6/af_inet6.c  | 10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
Signature · 1 line
2.18.0