)]}'
{
  "commit": "ce0791c3406eebf7e969c635da3b2feb30c302b5",
  "tree": "09c7c5b46399787461d730e33c32c068a35fe313",
  "parents": [
    "a459df8f58b768e97b3916c2fe1b448c423ed46f"
  ],
  "author": {
    "name": "Tariq Toukan",
    "email": "tariqt@nvidia.com",
    "time": "Thu Nov 26 14:23:16 2026 +0200"
  },
  "committer": {
    "name": "Willem de Bruijn",
    "email": "willemb@google.com",
    "time": "Tue Dec 01 21:06:20 2026 -0500"
  },
  "message": "net/mlx5e: TC, Fix parse_attr leak on branch attr alloc failure\n\nalloc_branch_attr() gets the branch attribute from\nmlx5e_clone_flow_attr_for_post_act(), which also allocates its\nparse_attr. When the branch action cannot be offloaded, the error path\nfrees the attribute but not its parse_attr, leaking it.\n\nThis happens, for example, when a police action\u0027s conform and exceed\nactions are both jumps: the exceed action fails with \"Cannot offload\nflows with nested jumps\".\n\nFree the parse_attr too.\n\nFound by LLM-assisted code inspection, while reviewing a fix for a\ndouble free on the same error path.\n\nReproduced on ConnectX-6 Dx in switchdev mode, with kmemleak, by\nfailing 50 times to offload such a filter on the uplink representor:\n\n  tc filter add dev $UPLINK ingress protocol ip flower skip_sw \\\n          dst_ip 192.0.2.2 action police rate 1mbit burst 20k \\\n          conform-exceed jump 1 / jump 1 action pass action drop\n\nWithout this patch, kmemleak reported 29 unreferenced 4096-byte\nobjects, all allocated by mlx5e_clone_flow_attr_for_post_act() from\nalloc_branch_attr(). With it, kmemleak reported none.\n\nFixes: f86488cb4685 (\"net/mlx5e: TC, initialize branch flow attributes\")\nSigned-off-by: Tariq Toukan \u003ctariqt@nvidia.com\u003e\nReviewed-by: Jianbo Liu \u003cjianbol@nvidia.com\u003e\nLink: https://patch.msgid.link/20261126122316.599831-1-tariqt@nvidia.com\nSigned-off-by: Willem de Bruijn \u003cwillemb@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "011741553f5b9437e7b093685741b47ff4a4c69f",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/mellanox/mlx5/core/en_tc.c",
      "new_id": "142cccba907e033cb0290380ffc499a2049cac10",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/mellanox/mlx5/core/en_tc.c"
    }
  ]
}
