commit | bcd9e3c1656d0f7dd9743598c65c3ae24efb38d0 | [log] [tgz] |
---|---|---|
author | Felix Fietkau <nbd@nbd.name> | Mon Nov 21 19:26:15 2022 +0100 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Tue Nov 22 22:17:12 2022 +0100 |
tree | b3503770b7ed644c786a86fa12a7247ffd81c0b7 | |
parent | 6a66ce44a51bdfc47721f0c591137df2d4b21247 [diff] |
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>