)]}'
{
  "commit": "9552b11e3edabc97cfcd9f29103d5afbce7ae183",
  "tree": "37acf6f3c7c023cb7c073bd0b40677227e527e30",
  "parents": [
    "b213a4c6074fc4ee4f1cdef9a73b34732606b637"
  ],
  "author": {
    "name": "Jamal Hadi Salim",
    "email": "jhs@mojatatu.com",
    "time": "Mon May 25 08:25:51 2026 -0400"
  },
  "committer": {
    "name": "Paolo Abeni",
    "email": "pabeni@redhat.com",
    "time": "Thu May 28 12:26:36 2026 +0200"
  },
  "message": "net/sched: fix packet loop on netem when duplicate is on\n\nWhen netem duplicates a packet it re-enqueues the copy at the root qdisc.\nIf another netem sits in the tree the copy can be duplicated\nagain, recursing until the stack or memory is exhausted.\n\nThe original duplication guard temporarily zeroed q-\u003eduplicate around\nthe re-enqueue, but that does not cover all cases because it is\nper-qdisc state shared across all concurrent enqueue paths\nand is not safe without additional locking.\n\nUse the skb tc_depth field introduced in an earlier patch:\n - increment it on the duplicate before re-enqueue\n - skip duplication for any skb whose tc_depth is already non-zero.\n\nThis marks the packet itself rather than mutating qdisc state,\ntherefore it is safe regardless of tree topology or concurrency.\n\nFixes: 0afb51e72855 (\"[PKT_SCHED]: netem: reinsert for duplication\")\nReported-by: William Liu \u003cwill@willsroot.io\u003e\nReported-by: Savino Dicanosa \u003csavy@syst3mfailure.io\u003e\nCloses: https://lore.kernel.org/netdev/8DuRWwfqjoRDLDmBMlIfbrsZg9Gx50DHJc1ilxsEBNe2D6NMoigR_eIRIG0LOjMc3r10nUUZtArXx4oZBIdUfZQrwjcQhdinnMis_0G7VEk\u003d@willsroot.io/\nCo-developed-by: Victor Nogueira \u003cvictor@mojatatu.com\u003e\nSigned-off-by: Victor Nogueira \u003cvictor@mojatatu.com\u003e\nReviewed-by: William Liu \u003cwill@willsroot.io\u003e\nReviewed-by: Stephen Hemminger \u003cstephen@networkplumber.org\u003e\nSigned-off-by: Jamal Hadi Salim \u003cjhs@mojatatu.com\u003e\nLink: https://patch.msgid.link/20260525122556.973584-5-jhs@mojatatu.com\nSigned-off-by: Paolo Abeni \u003cpabeni@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d97acd2f39234644d2758f7ecbabdf221ee20395",
      "old_mode": 33188,
      "old_path": "net/sched/sch_netem.c",
      "new_id": "17a79fe2f0911d2879748cbd5ba3ab78e0230e26",
      "new_mode": 33188,
      "new_path": "net/sched/sch_netem.c"
    }
  ]
}
