diff options
author | Horatiu Vultur <[email protected]> | 2020-05-25 09:55:41 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-05-25 18:09:26 -0700 |
commit | 617504c67e01d30310558442777a4112ea6d587d (patch) | |
tree | f1b8a0e03ddac483345cec7e9588abbfe26c79e4 /tools/perf/scripts/python/stackcollapse.py | |
parent | 07153961f82878dee73717f64761d67dff9546c1 (diff) |
bridge: mrp: Fix out-of-bounds read in br_mrp_parse
The issue was reported by syzbot. When the function br_mrp_parse was
called with a valid net_bridge_port, the net_bridge was an invalid
pointer. Therefore the check br->stp_enabled could pass/fail
depending where it was pointing in memory.
The fix consists of setting the net_bridge pointer if the port is a
valid pointer.
Reported-by: [email protected]
Fixes: 6536993371fa ("bridge: mrp: Integrate MRP into the bridge")
Signed-off-by: Horatiu Vultur <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions