)]}'
{
  "commit": "9401b428b5d4dfe1fd5752973fd02b4e9cd05536",
  "tree": "3313c7b2fc132418b3f0ac0258f6e7ae35289b31",
  "parents": [
    "d5e912448cd98b261eba8e35ab838f2dc69a79f5"
  ],
  "author": {
    "name": "Kuniyuki Iwashima",
    "email": "kuniyu@google.com",
    "time": "Sun Nov 01 06:35:22 2026 +0000"
  },
  "committer": {
    "name": "Paolo Abeni",
    "email": "pabeni@redhat.com",
    "time": "Wed Nov 04 15:34:50 2026 +0100"
  },
  "message": "ipv6: Flush exception route while replacing nexthop.\n\nThe following creates a cyclic reference between IPv6 route\nand nexthop:\n\n  1. create a nexthop A\n  2. create a nexthop group w/ A\n  3. create an IPv6 route with the nexthop group\n  4. create an exception route w/ A\n  5. replace A with a new nexthop B in the nexthop group\n  6. remove the IPv6 route\n  7. replace B with A in the nexthop group\n  8. remove the nexthop group\n\nThen, removing a device tied to the route gets stuck and\ntriggers the splat below. [0]\n\nAt 5., fib6_nh_release_dsts() is called, but it does not\nflush exception routes, so the nexthop A continues to grab\nthe IPv6 route reference.\n\n  nh_A-\u003ert6i_exception_bucket[] -\u003e rt6_ex-\u003ert6i-\u003efrom\n\nAt 6., fib6_purge_rt() calls rt6_flush_exceptions(), but it\nonly purges exceptions tied to nexthop B.  Also, the route is\nunlinked from the nexthop group by list_del_init(\u0026rt-\u003enh_list).\n\n  -\u003e f6i-\u003enh -\u003e nhg-\u003enh_entries[]\n\nAt 8., __remove_nexthop_fib() cannot find the IPv6 route, and\nremove_nexthop_group() calls list_del_init(\u0026nhge-\u003enh_list) to\nunlink the group from the nexthop A\u0027s nhe-\u003egrp_list.\n\n  nhg-\u003enh_entries[] -\u003e nh_A -\u003e ... -\u003e f6i\n\nHere, the nexthop A is reachable from net-\u003enexthop.devhash[],\nbut remove_nexthop_from_groups() cannot find the nexthop group,\nleaking the whole chain.\n\nLet\u0027s call fib6_nh_flush_exceptions() in fib6_nh_release_dsts().\n\n[0]:\nunregister_netdevice: waiting for gre6 to become free. Usage count \u003d 4\nref_tracker: netdev@000000009652f190 has 1/3 users at\n     dst_alloc+0x14b/0x490\n     ip6_rt_cache_alloc+0x27b/0x670\n     __ip6_rt_update_pmtu+0x572/0x850\n     ip6_tnl_xmit+0x8c5/0x1b70\n     __gre6_xmit+0x7af/0xaa0\n     ip6gre_tunnel_xmit+0x685/0xdc0\n     dev_hard_start_xmit+0x204/0x5a0\n     __dev_queue_xmit+0xe8a/0x2550\n     ip6_finish_output+0x232/0x570\n     ip6_output+0x226/0x3b0\n     ip6_send_skb+0x133/0x250\n     rawv6_push_pending_frames+0x503/0x6f0\n     rawv6_sendmsg+0xdf0/0x1310\n     sock_sendmsg_nosec+0xde/0x130\n     __sys_sendto+0x27f/0x320\n     __x64_sys_sendto+0xd9/0xf0\n\nFixes: 7bf4796dd099 (\"nexthops: add support for replace\")\nReported-by: Jason Zhang \u003cjdz@google.com\u003e\nSigned-off-by: Kuniyuki Iwashima \u003ckuniyu@google.com\u003e\nLink: https://patch.msgid.link/20261101064418.2055158-2-kuniyu@google.com\nReviewed-by: Ido Schimmel \u003cidosch@nvidia.com\u003e\nSigned-off-by: Paolo Abeni \u003cpabeni@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "616b86f89f637559745baa80393fc286975db338",
      "old_mode": 33188,
      "old_path": "net/ipv6/route.c",
      "new_id": "fae698c5522ba34a3aad611bbf45a771d6e21eef",
      "new_mode": 33188,
      "new_path": "net/ipv6/route.c"
    }
  ]
}
