aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSishuai Gong <[email protected]>2023-08-10 15:12:42 -0400
committerFlorian Westphal <[email protected]>2023-08-16 00:05:15 +0200
commit5310760af1d4fbea1452bfc77db5f9a680f7ae47 (patch)
tree52c1ffadb87df2163b19482708e37ca567bc1638 /tools/perf/scripts/python/export-to-sqlite.py
parent9bfab6d23a2865966a4f89a96536fbf23f83bc8c (diff)
ipvs: fix racy memcpy in proc_do_sync_threshold
When two threads run proc_do_sync_threshold() in parallel, data races could happen between the two memcpy(): Thread-1 Thread-2 memcpy(val, valp, sizeof(val)); memcpy(valp, val, sizeof(val)); This race might mess up the (struct ctl_table *) table->data, so we add a mutex lock to serialize them. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Link: https://lore.kernel.org/netdev/[email protected]/ Signed-off-by: Sishuai Gong <[email protected]> Acked-by: Simon Horman <[email protected]> Acked-by: Julian Anastasov <[email protected]> Signed-off-by: Florian Westphal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions