summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSishuai Gong <sishuai.system@gmail.com>2023-08-10 21:12:42 +0200
committerFlorian Westphal <fw@strlen.de>2023-08-16 00:05:15 +0200
commit5310760af1d4fbea1452bfc77db5f9a680f7ae47 (patch)
tree52c1ffadb87df2163b19482708e37ca567bc1638 /scripts
parentnetfilter: set default timeout to 3 secs for sctp shutdown send and recv state (diff)
downloadlinux-5310760af1d4fbea1452bfc77db5f9a680f7ae47.tar.xz
linux-5310760af1d4fbea1452bfc77db5f9a680f7ae47.zip
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/B6988E90-0A1E-4B85-BF26-2DAF6D482433@gmail.com/ Signed-off-by: Sishuai Gong <sishuai.system@gmail.com> Acked-by: Simon Horman <horms@kernel.org> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions