Possible memory leak of flow_block_cb
Bug #1934822 reported by
Bodong Wang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-bluefield (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Bodong Wang |
Bug Description
* Explain the bug(s)
When cleaning up the nf_table in tcf_ct_
there is no guarantee that the callback list, added to by
nf_flow_
possible that the flow_block_cb memory allocated will be lost.
* brief explanation of fixes
Fix this by iterating the list and freeing the flow_block_cb entries
before freeing the nf_table entry (via freeing ct_ft).
* How to test
With mlx5 driver registers flow block callback, cleaning up rule with action ct
frees the ct_ft but with memory leak.
* What it could break.
Nothing breaks, memory leak is fixed.
Changed in linux-bluefield (Ubuntu): | |
assignee: | nobody → Bodong Wang (bodong-wang) |
status: | New → In Progress |
Changed in linux-bluefield (Ubuntu Focal): | |
assignee: | nobody → Bodong Wang (bodong-wang) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in linux-bluefield (Ubuntu): | |
assignee: | Bodong Wang (bodong-wang) → nobody |
status: | In Progress → Invalid |
Changed in linux-bluefield (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-focal removed: verification-needed-focal |
To post a comment you must log in.
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- focal' to 'verification- done-focal' . If the problem still exists, change the tag 'verification- needed- focal' to 'verification- failed- focal'.
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!