summaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_string.c
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2014-09-03 00:02:49 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2014-09-09 16:31:24 +0200
commit5fcf0cf6073d4adb22e34cd1d14a6318699625a9 (patch)
treed07020081df5b3657c98b59fc8f0431f8d96f150 /net/netfilter/xt_string.c
parent3045d76070abe725dbb7fd8ff39c27b820d5a7eb (diff)
downloadlinux-5fcf0cf6073d4adb22e34cd1d14a6318699625a9.tar.gz
linux-5fcf0cf6073d4adb22e34cd1d14a6318699625a9.tar.bz2
linux-5fcf0cf6073d4adb22e34cd1d14a6318699625a9.zip
ipvs: reduce stack usage for sockopt data
Use union to reserve the required stack space for sockopt data which is less than the currently hardcoded value of 128. Now the tables for commands should be more readable. The checks added for readability are optimized by compiler, others warn at compile time if command uses too much stack or exceeds the storage of set_arglen and get_arglen. As Dan Carpenter points out, we can run for unprivileged user, so we can silent some error messages. Signed-off-by: Julian Anastasov <ja@ssi.bg> CC: Dan Carpenter <dan.carpenter@oracle.com> CC: Andrey Utkin <andrey.krieger.utkin@gmail.com> CC: David Binderman <dcb314@hotmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_string.c')
0 files changed, 0 insertions, 0 deletions