diff options
author | Felix Fietkau <nbd@nbd.name> | 2022-11-21 21:26:15 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-11-23 00:17:12 +0300 |
commit | bcd9e3c1656d0f7dd9743598c65c3ae24efb38d0 (patch) | |
tree | b3503770b7ed644c786a86fa12a7247ffd81c0b7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6a66ce44a51bdfc47721f0c591137df2d4b21247 (diff) | |
download | linux-bcd9e3c1656d0f7dd9743598c65c3ae24efb38d0.tar.xz |
netfilter: flowtable_offload: add missing locking
nf_flow_table_block_setup and the driver TC_SETUP_FT call can modify the flow
block cb list while they are being traversed elsewhere, causing a crash.
Add a write lock around the calls to protect readers
Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Reported-by: Chad Monroe <chad.monroe@smartrg.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions