diff options
| author | Zixuan Chai <petalzu987@gmail.com> | 2026-09-27 01:04:39 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2026-10-05 03:29:53 +0100 |
| commit | 5158353121bae4f552cb677ce8c5c3ef52f93a0d (patch) | |
| tree | 4dde29f6e87532f7eca2cf26ad0d635b1aa63b80 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 6dc989ea46b96ce170840174b4a38c4a387fb005 (diff) | |
| download | linux-5158353121bae4f552cb677ce8c5c3ef52f93a0d.tar.gz linux-5158353121bae4f552cb677ce8c5c3ef52f93a0d.zip | |
net: bridge: avoid recursive multicast port cleanup
br_multicast_sg_del_exclude_ports() removes automatically added STAR_EXCL
port groups by calling br_multicast_del_pg(). For S,G entries, that
deletion calls back into br_multicast_sg_del_exclude_ports(), so a large
number of STAR_EXCL ports consumes one kernel stack frame per port and can
hit the stack guard page.
Keep the complete port-group deletion path for cleanup, but suppress the
S,G exclude-port cleanup while that helper is already walking the same
entry. Normal deletion callers retain the existing behavior.
Fixes: 8266a0491e92 ("net: bridge: mcast: handle port group filter modes")
Cc: stable@vger.kernel.org
Reported-by: Vega <vega@nebusec.ai>
Assisted-by: LLM
Signed-off-by: Zixuan Chai <petalzu987@gmail.com>
Signed-off-by: Ren Wei <weir@nebusec.ai>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
