Re: [PATCH net-next] ipvs: strip gre tunnel headers from icmp errors

2019-07-02 Thread Simon Horman
On Mon, Jul 01, 2019 at 10:34:15PM +0300, Julian Anastasov wrote: > Recognize GRE tunnels in received ICMP errors and > properly strip the tunnel headers. > > Signed-off-by: Julian Anastasov Thanks Julian, this looks good to me. Signed-off-by: Simon Horman Pablo, please consid

Re: [PATCH v3] ipvs: allow tunneling with gre encapsulation

2019-07-02 Thread Simon Horman
ulation with the tunneling method, thereby letting ipvs > > be load balancer for windows-based services > > > > Signed-off-by: Vadim Fedorenko > > Looks good to me, thanks! > > Acked-by: Julian Anastasov Likewise, Signed-off-by: Simon Horman Pablo, pleas

Re: [PATCH v2] ipvs: allow tunneling with gre encapsulation

2019-07-01 Thread Simon Horman
On Mon, Jul 01, 2019 at 01:28:49AM +0300, Vadim Fedorenko wrote: > windows real servers can handle gre tunnels, this patch allows > gre encapsulation with the tunneling method, thereby letting ipvs > be load balancer for windows-based services > > Signed-off-by: Vadim Fedorenko > --- > include/u

Re: [PATCH net] ipvs: defer hook registration to avoid leaks

2019-06-20 Thread Simon Horman
cess kernel/fork.c:1800 [inline] >[<c344af7c>] _do_fork+0x121/0x4f0 kernel/fork.c:2369 > > Reported-by: syzbot+722da59ccb264bc19...@syzkaller.appspotmail.com > Fixes: 719c7d563c17 ("ipvs: Fix use-after-free in ip_vs_in") > Signed-off-by: Julian Anastasov Thanks Julian. Pablo, please consider applying this to nf. Acked-by: Simon Horman

Re: [PATCH net] ipvs: fix tinfo memory leak in start_sync_thread

2019-06-20 Thread Simon Horman
x44/0xa9 > > Reported-by: syzbot+7e2e50c8adfccd2e5...@syzkaller.appspotmail.com > Suggested-by: Eric Biggers > Fixes: 998e7a76804b ("ipvs: Use kthread_run() instead of doing a double-fork > via kernel_thread()") > Signed-off-by: Julian Anastasov Thanks Julian. Pablo, please consider this for inclusion in nf. Acked-by: Simon Horman

Re: [PATCH nf-next 2/8] netfilter: ipvs: prefer skb_ensure_writable

2019-05-31 Thread Simon Horman
On Thu, May 23, 2019 at 03:44:06PM +0200, Florian Westphal wrote: > It does the same thing, use it instead so we can remove skb_make_writable. > > Signed-off-by: Florian Westphal Acked-by: Simon Horman

Re: [PATCHv2 net-next 0/3] Add UDP tunnel support for ICMP errors in IPVS

2019-05-07 Thread Simon Horman
CMP errors for UDP, do not do that > patch 3: add comment for fragment check > > Julian Anastasov (3): > ipvs: allow rs_table to contain different real server types > ipvs: add function to find tunnels > ipvs: strip udp tunnel headers from icmp errors Thanks Julian, this looks

Re: [PATCH net-next 3/3] ipvs: strip udp tunnel headers from icmp errors

2019-05-04 Thread Simon Horman
On Wed, May 01, 2019 at 05:07:16PM +0300, Julian Anastasov wrote: > > Hello, > > On Wed, 1 May 2019, Simon Horman wrote: > > > > > > > We can easily add simple FOU in ipvs_udp_decap() by > > > > > > returning 0 and correct *proto

Re: [PATCH net-next 3/3] ipvs: strip udp tunnel headers from icmp errors

2019-05-01 Thread Simon Horman
On Mon, Apr 08, 2019 at 01:28:26PM +0200, Simon Horman wrote: > On Sat, Apr 06, 2019 at 01:07:34PM +0300, Julian Anastasov wrote: > > > > Hello, > > > > On Thu, 4 Apr 2019, Simon Horman wrote: > > > > > On Thu, Apr 04, 2019 a

Re: [PATCH net-next 3/3] ipvs: strip udp tunnel headers from icmp errors

2019-04-08 Thread Simon Horman
On Sat, Apr 06, 2019 at 01:07:34PM +0300, Julian Anastasov wrote: > > Hello, > > On Thu, 4 Apr 2019, Simon Horman wrote: > > > On Thu, Apr 04, 2019 at 12:18:08AM +0300, Julian Anastasov wrote: > > > > > > We can easily add simple FOU in ipvs_udp_d

Re: [PATCH net-next 3/3] ipvs: strip udp tunnel headers from icmp errors

2019-04-04 Thread Simon Horman
On Thu, Apr 04, 2019 at 12:18:08AM +0300, Julian Anastasov wrote: > > Hello, > > On Wed, 3 Apr 2019, Simon Horman wrote: > > > On Sun, Mar 31, 2019 at 01:26:21PM +0300, Julian Anastasov wrote: > > > Recognize UDP tunnels in received ICMP errors and > >

Re: [PATCH net-next 2/3] ipvs: add function to find tunnels

2019-04-04 Thread Simon Horman
On Wed, Apr 03, 2019 at 11:52:37PM +0300, Julian Anastasov wrote: > > Hello, > > On Wed, 3 Apr 2019, Simon Horman wrote: > > > On Sun, Mar 31, 2019 at 01:26:20PM +0300, Julian Anastasov wrote: > > > > > diff --git a/net/netfilter/ipvs/ip_vs_core.c >

Re: [PATCH net-next 1/3] ipvs: allow rs_table to contain different real server types

2019-04-03 Thread Simon Horman
Hi Julian, On Sun, Mar 31, 2019 at 01:26:19PM +0300, Julian Anastasov wrote: > Before now rs_table was used only for NAT real servers. > Change it to allow TUN real severs from different types, > possibly hashed with different port key. > > Signed-off-by: Julian Anastasov This looks good to me,

Re: [PATCH net-next 3/3] ipvs: strip udp tunnel headers from icmp errors

2019-04-03 Thread Simon Horman
Hi Julian, On Sun, Mar 31, 2019 at 01:26:21PM +0300, Julian Anastasov wrote: > Recognize UDP tunnels in received ICMP errors and > properly strip the tunnel headers. GUE is what we > have for now. > > Signed-off-by: Julian Anastasov > --- > net/netfilter/ipvs/ip_vs_core.c | 58 +

Re: [PATCH net-next 2/3] ipvs: add function to find tunnels

2019-04-03 Thread Simon Horman
On Sun, Mar 31, 2019 at 01:26:20PM +0300, Julian Anastasov wrote: > Add ip_vs_find_tunnel() to match tunnel headers > by family, address and optional port. Use it to > properly find the tunnel real server used in > received ICMP errors. > > Signed-off-by: Julian Anastasov > --- > include/net/ip_

Re: [PATCH net] ipvs: do not schedule icmp errors from tunnels

2019-04-03 Thread Simon Horman
ection is found. > > Fixes: 6044eeffafbe ("ipvs: attempt to schedule icmp packets") > Signed-off-by: Julian Anastasov Thanks Julian, I assume this is also relevant to -stable. Pablo, please consider applying this to nf. Signed-off-by: Simon Horman > --- > net/netfilter/ip

Re: [PATCH nf-next] ipvs: change some data types from int to bool

2019-02-27 Thread Simon Horman
ollowing functions to use bool full_entry param > instead of int: > > - ip_vs_genl_parse_dest() > - ip_vs_genl_parse_service() > > This patch does not change any functionality but makes the source > code slightly easier to read. > > Signed-off-by: Andrea Claudi Acked-by: S

Re: [PATCH net] ipvs: get sctphdr by sctphoff in sctp_csum_check

2019-02-27 Thread Simon Horman
k(). > > Signed-off-by: Xin Long Acked-by: Simon Horman Pablo, please consider applying this to nf-next. > --- > net/netfilter/ipvs/ip_vs_proto_sctp.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/net/netfilter/ipvs/ip_vs_proto_sctp.c

Re: [PATCH nf v2] ipvs: fix dependency on nf_defrag_ipv6

2019-02-12 Thread Simon Horman
Thanks, Pablo could you consider applying this to nf? Acked-by: Simon Horman > --- > Changes since v1: > - Move nf_defrag_ipv6_enable() call from __ip_vs_init() to > ip_vs_new_dest() and ip_vs_add_service() for further optimization. > --- > net/netfilter/ipvs/Kconf

Re: [PATCH net-next] ipvs: Use struct_size() helper

2019-02-08 Thread Simon Horman
) helper: > > size = struct_size(instance, entry, count); > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Acked-by: Simon Horman Pablo, could you consider applying this? > --- > net/netfilter/ipvs/ip_vs_ctl.c | 6 ++

Re: [PATCH ipvs-next] ipvs: avoid indirect calls when calculating checksums

2019-01-23 Thread Simon Horman
Croce > > Looks good to me, thanks! > > Acked-by: Julian Anastasov Likewise, Pablo could you consider applying this to nf-next? Acked-by: Simon Horman > > > --- > > include/net/ip_vs.h | 3 --- > > net/netfilter/ipvs/ip_vs_proto_

Re: [PATCH ipvs-next] ipvs: use indirect call wrappers

2019-01-23 Thread Simon Horman
direct calls in IPVS, and reduces the performance > > impact of the Spectre mitigation. > > > > Signed-off-by: Matteo Croce > > Looks good to me, thanks! > > Acked-by: Julian Anastasov Likewise, Pablo could you consider applying this to nf-next? Acked-by:

Re: [PATCHv2 net] ipvs: call ip_vs_dst_notifier earlier than ipv6_dev_notf

2018-11-19 Thread Simon Horman
On Sat, Nov 17, 2018 at 07:14:57PM +0100, Pablo Neira Ayuso wrote: > On Sat, Nov 17, 2018 at 09:19:52PM +0900, Xin Long wrote: > > On Sat, Nov 17, 2018 at 8:15 PM Pablo Neira Ayuso > > wrote: > > > > > > On Fri, Nov 16, 2018 at 06:37:19AM -0800, Simon Horman wr

Re: [PATCHv2 net] ipvs: call ip_vs_dst_notifier earlier than ipv6_dev_notf

2018-11-16 Thread Simon Horman
esn't set dst's > > dev to lo in NETDEV_DOWN event, so this fix is only needed when > > IP_VS_IPV6 is defined. > > > > v1->v2: > > - apply it only when CONFIG_IP_VS_IPV6 is defined. > > > > Fixes: 7a4f0761fce3 ("IPVS: init and clean

Re: [PATCH v3] ipvs: fix race between ip_vs_conn_new() and ip_vs_del_dest()

2018-07-31 Thread Simon Horman
link_dest() > >~IP_VS_DEST_F_AVAILABLE > > cp->dest && !IP_VS_DEST_F_AVAILABLE > > __ip_vs_conn_put > > ... > > cleanup_net ---> infinite looping > > > > Fix this by checking whether the

Re: [PATCH net v2 0/2] fix glitch in IPVS /proc handlers

2018-07-31 Thread Simon Horman
on't show negative times in ip_vs_conn Acked-by: Simon Horman Pablo, please consider taking these via the nf tree. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/4] treewide: convert ISO_8859-1 text comments to utf-8

2018-07-24 Thread Simon Horman
| 8 +- > net/netfilter/ipvs/ip_vs_mh.c | 4 +- IPVS portion: Acked-by: Simon Horman > tools/power/cpupower/po/de.po | 44 +++ > tools/power/cpupower/po/fr.po | 120 +- > 12 files changed, 103 insertions(

Re: [PATCHv2 net-next 0/3] Drop IPVS conn templates under attack

2018-07-18 Thread Simon Horman
On Tue, Jul 17, 2018 at 03:09:02PM +0200, Pablo Neira Ayuso wrote: > On Fri, Jul 06, 2018 at 08:25:51AM +0300, Julian Anastasov wrote: > > This patchset changes how templates are dropped under attack. > > > > Patch 1 changes ip_vs_state_name arguments, so that we can > > print in followup patch in

Re: [PATCHv2 net-next 0/3] Drop IPVS conn templates under attack

2018-07-17 Thread Simon Horman
nown bits in the state received by backup server Sorry for the delay. This looks good to me. Reviewed-by: Simon Horman Pablo, could you take this through nf-next? -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH net] ipvs: fix check on xmit to non-local addresses

2018-06-04 Thread Simon Horman
ll out crosses_local_route_boundary logic") > Signed-off-by: Julian Anastasov Acked-by: Simon Horman Pablo, if its not too much trouble please take this into nf. > --- > net/netfilter/ipvs/ip_vs_xmit.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/n

Re: [PATCH net] ipvs: register conntrack hooks for ftp

2018-06-01 Thread Simon Horman
The hooks will be registered while the service is > present. > > Fixes: 0c66dc1ea3f0 ("netfilter: conntrack: register hooks in netns when > needed by ruleset") > Signed-off-by: Julian Anastasov Acked-by: Simon Horman Pablo, please take this into nf if it is not to

Re: [PATCHv2 net-next 0/2] Add IPv6 support to IPVS FTP-NAT

2018-06-01 Thread Simon Horman
cond patch changes ip_vs_ftp.c to support EPRT and EPSV > commands with extended format (RFC 2428) which supports both > IPv4 and IPv6 addresses. > > v1->v2: two places were missing the (void *) cast for cp->app_data, > reported by kbuild test robot Acked-by: Simon Horman

Re: [PATCH net] ipvs: fix buffer overflow with sync daemon and service

2018-05-23 Thread Simon Horman
dd f3 f9 <0f> 0b 90 90 > 90 90 90 90 90 90 90 90 90 55 48 89 e5 41 57 41 56 > RIP: fortify_panic+0x13/0x20 lib/string.c:1051 RSP: 8801c976f800 > > Reported-and-tested-by: syzbot+aac887f7731986864...@syzkaller.appspotmail.com > Fixes: e4ff67513096 ("ipvs: add sync_maxlen pa

Re: [PATCH net] ipvs: fix refcount usage for conns in ops mode

2018-05-08 Thread Simon Horman
On Tue, May 08, 2018 at 02:16:23PM +0200, Pablo Neira Ayuso wrote: > On Mon, May 07, 2018 at 01:18:53PM +0200, Simon Horman wrote: > > On Mon, May 07, 2018 at 01:17:40PM +0200, Simon Horman wrote: > > > On Thu, May 03, 2018 at 10:01:40PM +0300, Julian Anastasov wrote: > >

Re: [PATCH net] ipvs: fix refcount usage for conns in ops mode

2018-05-07 Thread Simon Horman
On Mon, May 07, 2018 at 01:17:40PM +0200, Simon Horman wrote: > On Thu, May 03, 2018 at 10:01:40PM +0300, Julian Anastasov wrote: > > Connections in One-packet scheduling mode (-o, --ops) are > > removed with refcnt=0 because they are not hashed in conn table. > > To avoid r

Re: [PATCH net] ipvs: fix stats update from local clients

2018-05-07 Thread Simon Horman
elp us debug this: > Possible unsafe locking scenario: > > CPU0 > > lock(&syncp->seq#6); > >lock(&syncp->seq#6); > > *** DEADLOCK *** > > Fixes: ac69269a45e8 ("ipvs: do not disable bh for long time") > Signed-off-by:

Re: [PATCH net] ipvs: fix refcount usage for conns in ops mode

2018-05-07 Thread Simon Horman
8 R11: 025f942d R12: 025f940e > R13: 7fc9d1301e20 R14: 025f9408 R15: 7fc9d1302720 > Code: 48 8b 95 80 00 00 00 41 55 49 8d 8c 24 e0 05 00 > 00 45 8b 84 24 38 04 00 00 41 89 c1 48 89 de 48 c7 c7 a8 2f f2 92 e8 > 7c fa ff ff <0f> 0b 58 5b 5d 41 5c 41 5d

Re: [Patch nf] ipvs: initialize tbl->entries in ip_vs_lblc_init_svc()

2018-04-26 Thread Simon Horman
e(), > > as reported by syzbot. > > > > Reported-by: > > Cc: Simon Horman > > Cc: Julian Anastasov > > Cc: Pablo Neira Ayuso > > Signed-off-by: Cong Wang > > Thanks! > > Acked-by: Julian Anastasov Thanks. Pablo, could you take thi

Re: [Patch nf] ipvs: initialize tbl->entries after allocation

2018-04-26 Thread Simon Horman
re() > > as reported by syzbot. > > > > Reported-by: > > Cc: Simon Horman > > Cc: Julian Anastasov > > Cc: Pablo Neira Ayuso > > Signed-off-by: Cong Wang > > Thanks! > > Acked-by: Julian Anastasov Thanks. Pablo, could you take this into nf? Ac

[PATCH 2/5] netfilter: ipvs: Keep latest weight of destination

2018-04-19 Thread Simon Horman
Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h| 1 + net/netfilter/ipvs/ip_vs_ctl.c | 4 2 files changed, 5 insertions(+) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index eb0bec043c96..0ac795b41ab8 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h

[PATCH 1/5] netfilter: ipvs: Fix space before '[' error.

2018-04-19 Thread Simon Horman
From: Arvind Yadav Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_proto_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netf

[GIT PULL 0/5] IPVS Updates for v4.18

2018-04-19 Thread Simon Horman
Hi Pablo, please consider these IPVS enhancements for v4.18. * Whitepace cleanup * Add Maglev hashing algorithm as a IPVS scheduler Inju Song says "Implements the Google's Maglev hashing algorithm as a IPVS scheduler. Basically it provides consistent hashing but offers some special featu

[PATCH 3/5] netfilter: ipvs: Add Maglev hashing scheduler

2018-04-19 Thread Simon Horman
Song Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_mh.c | 540 ++ 1 file changed, 540 insertions(+) create mode 100644 net/netfilter/ipvs/ip_vs_mh.c diff --git a/net/netfilter/ipvs/ip_vs_mh.c b/net/netfilter

[PATCH 4/5] netfilter: ipvs: Add configurations of Maglev hashing

2018-04-19 Thread Simon Horman
From: Inju Song To build the maglev hashing scheduler, add some configuration to Kconfig and Makefile. - The compile configurations of MH are added to the Kconfig. - The MH build rule is added to the Makefile. Signed-off-by: Inju Song Signed-off-by: Julian Anastasov Signed-off-by: Simon

[PATCH 5/5] ipvs: fix multiplicative hashing in sh/dh/lblc/lblcr algorithms

2018-04-19 Thread Simon Horman
ernat Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_dh.c| 3 ++- net/netfilter/ipvs/ip_vs_lblc.c | 3 ++- net/netfilter/ipvs/ip_vs_lblcr.c | 3 ++- net/netfilter/ipvs/ip_vs_sh.c| 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/net

Re: [PATCH net] ipvs: fix rtnl_lock lockups caused by start_sync_thread

2018-04-09 Thread Simon Horman
On Mon, Apr 09, 2018 at 04:53:22PM +0200, Pablo Neira Ayuso wrote: > On Mon, Apr 09, 2018 at 10:20:18AM +0300, Simon Horman wrote: > > On Sat, Apr 07, 2018 at 03:50:47PM +0300, Julian Anastasov wrote: > > > syzkaller reports for wrong rtnl_lock usage in sync code [1] and [2] >

Re: [PATCH net] ipvs: fix rtnl_lock lockups caused by start_sync_thread

2018-04-09 Thread Simon Horman
reads that execute > sock_release when they are stopped by stop_sync_thread. ... > Reported-and-tested-by: syzbot+a46d6abf9d56b1365...@syzkaller.appspotmail.com > Reported-and-tested-by: syzbot+5fe074c01b2032ce9...@syzkaller.appspotmail.com > Fixes: e0b26cc997d5 ("ipvs: call rtnl_loc

Re: [PATCH] ipvs: use true and false for boolean values

2018-03-06 Thread Simon Horman
On Mon, Mar 05, 2018 at 03:35:57PM -0600, Gustavo A. R. Silva wrote: > Assign true or false to boolean variables instead of an integer value. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Signed-off-by: Simon Horman Pablo, coul

Re: [PATCH net] ipvs: remove IPS_NAT_MASK check to fix passive FTP

2018-02-28 Thread Simon Horman
Li Shuang > Fixes: be7be6e161a2 ("netfilter: ipvs: fix incorrect conflict resolution") > Signed-off-by: Julian Anastasov Acked-by: Simon Horman -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2] netfilter: delete /proc THIS_MODULE references

2018-01-16 Thread Simon Horman
> VFS stopped pinning module at this point. > > # ipvs > Acked-by: Julian Anastasov Likewise, the IPVS portion looks good to me. Acked-by: Simon Horman > Signed-off-by: Alexey Dobriyan -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH nf-next] netfilter: ipvs: Remove useless ipvsh param of frag_safe_skb_hp

2017-11-22 Thread Simon Horman
patch to netfilter group Acked-by: Simon Horman Pablo, can you take this through the nf-next tree? -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2] netfilter: mark expected switch fall-throughs

2017-11-13 Thread Simon Horman
115120 > Addresses-Coverity-ID: 115121 > Signed-off-by: Gustavo A. R. Silva Signed-off-by: Simon Horman Pablo, could you take this one directly? -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majord...@vger.kerne

Re: [PATCH] netfilter: ipvs: Convert timers to use timer_setup()

2017-11-02 Thread Simon Horman
p() and from_timer() > > to pass the timer pointer explicitly. > > > > Cc: Wensong Zhang > > Cc: Simon Horman > > Cc: Julian Anastasov > > Cc: Pablo Neira Ayuso > > Cc: Jozsef Kadlecsik > > Cc: Florian Westphal > > Cc: "David S. Mille

Re: [PATCH 13/14] netfilter/ipvs: Use %pS printk format for direct addresses

2017-10-08 Thread Simon Horman
parisc64 > architectures. > > Signed-off-by: Helge Deller > Cc: Wensong Zhang > Cc: net...@vger.kernel.org > Cc: lvs-de...@vger.kernel.org > Cc: netfilter-devel@vger.kernel.org Sorry for the delay in processing this. Acked-by: Simon Horman Pablo, could you take this thr

Re: [PATCH net 0/2] netfilter: ipvs: some fixes in sctp_conn_schedule

2017-08-31 Thread Simon Horman
for Julian and Simon to tell me what I should do with this. Hi Pablo, could you take these directly with Julian's Ack and the following? Signed-off-by: Simon Horman -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majord...

Re: [PATCH] netfilter: ipvs: Fix space before '[' error.

2017-07-31 Thread Simon Horman
On Sun, Jul 30, 2017 at 12:29:25PM +0530, Arvind Yadav wrote: > Fix checkpatch.pl error: > ERROR: space prohibited before open square bracket '['. > > Signed-off-by: Arvind Yadav Thanks, applied for v4.14. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body

Re: [PATCH -stable 0/3] ipvs: patches for stable

2017-05-08 Thread Simon Horman
On Thu, May 04, 2017 at 09:48:08PM +0300, Julian Anastasov wrote: > > Hello, > > On Thu, 4 May 2017, Pablo Neira Ayuso wrote: > > > On Mon, May 01, 2017 at 04:45:34PM +0300, Julian Anastasov wrote: > > > Hello, > > > > > > The following patches are rediffs for "ipvs: SNAT packet replies

[GIT PULL 0/1] IPVS Fixes for v4.12

2017-05-08 Thread Simon Horman
Hi Pablo, please consider this fix to IPVS for v4.12. * It is a fix from Julian Anastasov to only SNAT SNAT packet replies only for NATed connections My understanding is that this fix is appropriate for 4.9.25, 4.10.13, 4.11 as well as the nf tree. Julian has separately posted backports for o

[PATCH] ipvs: SNAT packet replies only for NATed connections

2017-05-08 Thread Simon Horman
r to be more precise for the reply traffic. As replies are not expected for DR/TUN connections, better to not touch them. Reported-by: Nick Moriarty Tested-by: Nick Moriarty Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 19 ++- 1

[PATCH 2/2] ipvs: change comparison on sync_refresh_period

2017-04-28 Thread Simon Horman
From: Aaron Conole The sync_refresh_period variable is unsigned, so it can never be < 0. Signed-off-by: Aaron Conole Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/

[PATCH 1/2] ipvs: remove unused function ip_vs_set_state_timeout

2017-04-28 Thread Simon Horman
From: Aaron Conole There are no in-tree callers of this function and it isn't exported. Signed-off-by: Aaron Conole Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 -- net/netfilter/ipvs/ip_vs_proto.c | 22 -- 2 files changed, 24 deletions(-)

[PATCH 1/1] ipvs: explicitly forbid ipv6 service/dest creation if ipv6 mod is disabled

2017-04-28 Thread Simon Horman
termine if IPv6 address is local") Signed-off-by: Paolo Abeni Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ip

[GIT PULL 0/2] Third Round of IPVS Updates for v4.12

2017-04-28 Thread Simon Horman
Hi Pablo, please consider these enhancements to IPVS for v4.12. If it is too late for v4.12 then please consider them for v4.13. * Remove unused function * Correct comparison of unsigned value The following changes since commit 9a08ecfe74d7796ddc92ec312d3b7eaeba5a7c22: netfilter: don't attach

[GIT PULL v2 0/1] IPVS Fixes for v4.11

2017-04-28 Thread Simon Horman
Hi Pablo, please consider this fix to IPVS for v4.11. Or if it is too late for v4.11 please consider it for v4.12. I would also like it considered for stable. * Explicitly forbid ipv6 service/dest creation if ipv6 mod is disabled to avoid oops caused by IPVS accesing IPv6 routing code in such

Re: [GIT 0/1] IPVS Fixes for v4.11

2017-04-28 Thread Simon Horman
Sorry, I messed this up. I will repost. On Fri, Apr 28, 2017 at 11:58:15AM +0200, Simon Horman wrote: > Hi Pablo, > > please consider this fix to IPVS for v4.11. > Or if it is too late for v4.11 please consider it for v4.12. > I would also like it considered for stable. > >

[GIT 0/1] IPVS Fixes for v4.11

2017-04-28 Thread Simon Horman
Hi Pablo, please consider this fix to IPVS for v4.11. Or if it is too late for v4.11 please consider it for v4.12. I would also like it considered for stable. * Explicitly forbid ipv6 service/dest creation if ipv6 mod is disabled to avoid oops caused by IPVS accesing IPv6 routing code in such

[PATCH 1/1] ipvs: explicitly forbid ipv6 service/dest creation if ipv6 mod is disabled

2017-04-28 Thread Simon Horman
termine if IPv6 address is local") Signed-off-by: Paolo Abeni Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ip

Re: [PATCH] ipvs: explicitly forbid ipv6 service/dest creation if ipv6 mod is disabled

2017-04-24 Thread Simon Horman
On Mon, Apr 24, 2017 at 10:21:30AM +0300, Julian Anastasov wrote: > > Hello, > > On Mon, 24 Apr 2017, Paolo Abeni wrote: > > > Hi, > > > > The problem with the patched code is that it tries to resolve ipv6 > > addresses that are not created/validated by the kernel. > > OK. Simon, p

Re: [PATCH nf-next] ipvs: remove unused function ip_vs_set_state_timeout

2017-04-16 Thread Simon Horman
On vr, apr 14, 2017 at 02:13:09 +0200, Pablo Neira Ayuso wrote: > On Mon, Apr 10, 2017 at 03:50:44PM -0400, Aaron Conole wrote: > > There are no in-tree callers of this function and it isn't exported. > > Simon, let me know if you want to take this, or just add your > Signed-off-by. Hi Pablo, I

Re: [GIT 0/3] Second Round of IPVS Updates for v4.12

2017-04-13 Thread Simon Horman
On Fri, Apr 14, 2017 at 01:01:34AM +0200, Pablo Neira Ayuso wrote: > Hi Simon, > > On Mon, Apr 10, 2017 at 09:58:32AM -0700, Simon Horman wrote: > > Hi Pablo, > > > > please consider these clean-ups and enhancements to IPVS for v4.12. > > > > * Removal

Re: [PATCH nf-next] ip_vs_sync: change comparison on sync_refresh_period

2017-04-12 Thread Simon Horman
On Wed, Apr 12, 2017 at 04:38:12PM -0400, Aaron Conole wrote: > The sync_refresh_period variable is unsigned, so it can never be < 0. > > Signed-off-by: Aaron Conole Thanks Aaron, I have applied this to ipvs-next after updating the prefix to "ipvs:". -- To unsubscribe from this list: send the l

Re: [PATCH nf-next] ipvs: remove unused function ip_vs_set_state_timeout

2017-04-11 Thread Simon Horman
On Mon, Apr 10, 2017 at 03:50:44PM -0400, Aaron Conole wrote: > There are no in-tree callers of this function and it isn't exported. > > Signed-off-by: Aaron Conole Thanks, applied to ipvs-next. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a messag

[PATCH 2/3] netfilter: ipvs: Replace kzalloc with kcalloc.

2017-04-10 Thread Simon Horman
From: Varsha Rao Replace kzalloc with kcalloc. As kcalloc is preferred for allocating an array instead of kzalloc. This patch fixes the checkpatch issue. Signed-off-by: Varsha Rao --- net/netfilter/ipvs/ip_vs_sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ne

[PATCH 1/3] netfilter: ipvs: don't check for presence of nat extension

2017-04-10 Thread Simon Horman
From: Florian Westphal Check for the NAT status bits, they are set once conntrack needs NAT in source or reply direction, this is slightly faster than nfct_nat() as that has to check the extension area. Signed-off-by: Florian Westphal --- net/netfilter/ipvs/ip_vs_ftp.c | 2 +- 1 file changed

[PATCH 3/3] ipvs: remove unused variable

2017-04-10 Thread Simon Horman
; Signed-off-by: Arushi Singhal Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ftp.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ftp.c b/net/netfilter/ipvs/ip_vs_ftp.c index 2e2bf7428cd1..6caf4459e981 100644 --- a/net/netfilter/ipvs

[GIT 0/3] Second Round of IPVS Updates for v4.12

2017-04-10 Thread Simon Horman
Hi Pablo, please consider these clean-ups and enhancements to IPVS for v4.12. * Removal unused variable * Use kzalloc where appropriate * More efficient detection of presence of NAT extension The following changes since commit 592d42ac7fd36408979e09bf2f170f2595dab7b8: Merge branch 'qed-IOV-c

Re: [PATCH] net: netfilter: Use seq_puts()/seq_putc() where possible

2017-04-04 Thread Simon Horman
- Simran, I would be happy to pick up the IPVS version if it was posted as a separate patch. Alternative, Pablo, if you would like to take this patch feel free to add: Acked-by: Simon Horman -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the bod

Re: [PATCH] net: netfilters: Remove unnecessary parenthesis

2017-04-04 Thread Simon Horman
On Tue, Mar 28, 2017 at 06:56:48PM +0530, Arushi Singhal wrote: > Rmoved parentheses on the right hand side of assignment, as they are > not required. The following coccinelle script was used to fix this > issue: > > @@ > local idexpression id; > expression e; > @@ > > id = > -( > e > -) > > Sig

Re: [PATCH] net: netfilter: Replace explicit NULL comparison with ! operator

2017-04-04 Thread Simon Horman
On Wed, Mar 29, 2017 at 03:45:01PM +0530, Arushi Singhal wrote: > Replace explicit NULL comparison with ! operator to simplify code. > > Signed-off-by: Arushi Singhal > --- > net/netfilter/ipvs/ip_vs_ctl.c | 8 ++--- > net/netfilter/ipvs/ip_vs_proto.c | 8 ++--- I count 18 instan

Re: [PATCH v2] net: netfilter: remove unused variable

2017-03-30 Thread Simon Horman
On Wed, Mar 29, 2017 at 08:27:52PM +0530, Arushi Singhal wrote: > This patch uses the following coccinelle script to remove > a variable that was simply used to store the return > value of a function call before returning it: > > @@ > identifier len,f; > @@ > > -int len; > ... when != len >

Re: [PATCH nf-next] netfilter: ipvs: don't check for presence of nat extension

2017-03-30 Thread Simon Horman
On Tue, Mar 28, 2017 at 10:31:20AM +0200, Florian Westphal wrote: > Check for the NAT status bits, they are set once conntrack needs NAT in > source or > reply direction, this is slightly faster than nfct_nat() as that has to check > the > extension area. > > Signed-off-by: Florian Westphal Th

[PATCH 1/5] ipvs: remove an annoying printk in netns init

2017-03-16 Thread Simon Horman
From: Cong Wang At most it is used for debugging purpose, but I don't think it is even useful for debugging, just remove it. Signed-off-by: Cong Wang Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/netfilter

[PATCH 5/5] ipvs: Document sysctl pmtu_disc

2017-03-16 Thread Simon Horman
From: Hangbin Liu Document sysctl pmtu_disc based on commit 3654e61137db ("ipvs: add pmtu_disc option to disable IP DF for TUN packets"). Signed-off-by: Hangbin Liu Signed-off-by: Simon Horman --- Documentation/networking/ipvs-sysctl.txt | 8 1 file changed, 8 insertion

[GIT PULL 0/5] IPVS Updates for v4.12

2017-03-16 Thread Simon Horman
Hi Pablo, please consider these enhancements to the IPVS for v4.12. * Update sysctl documentation * Remove unnecessary printk in __ip_vs_init The following changes since commit 03e5fd0e9bcc1f34b7a542786b34b8f771e7c260: netfilter: nft_set_rbtree: use per-set rwlock to improve the scalability

[PATCH 3/5] ipvs: Document sysctl sync_qlen_max and sync_sock_size

2017-03-16 Thread Simon Horman
From: Hangbin Liu Document sysctl sync_qlen_max and sync_sock_size based on commit 1c003b1580e2 ("ipvs: wakeup master thread"). Signed-off-by: Hangbin Liu Signed-off-by: Simon Horman --- Documentation/networking/ipvs-sysctl.txt | 14 ++ 1 file changed, 14 insertion

[PATCH 4/5] ipvs: Document sysctl sync_ports

2017-03-16 Thread Simon Horman
From: Hangbin Liu Document sysctl sync_ports based on commit f73181c8288f ("ipvs: add support for sync threads"). Signed-off-by: Hangbin Liu Signed-off-by: Simon Horman --- Documentation/networking/ipvs-sysctl.txt | 8 1 file changed, 8 insertions(+) diff --git a/Doc

[PATCH 2/5] ipvs: fix sync_threshold description and add sync_refresh_period, sync_retries

2017-03-16 Thread Simon Horman
From: Hangbin Liu Fix sync_threshold description which should have two values. Also add sync_refresh_period and sync_retries based on commit 749c42b620a9 ("ipvs: reduce sync rate with time thresholds"). Signed-off-by: Hangbin Liu Signed-off-by: Simon Horman --- Documentation/netwo

Re: [PATCH v2 net] net: free ip_vs_dest structs when refcnt=0

2017-01-27 Thread Simon Horman
On Fri, Jan 27, 2017 at 01:21:11PM +0100, Pablo Neira Ayuso wrote: > On Fri, Jan 27, 2017 at 09:07:38AM +0100, Simon Horman wrote: > > On Thu, Jan 26, 2017 at 10:49:10PM +0200, Julian Anastasov wrote: > > > > > > Hello, > > > > >

Re: [PATCH v2 net] net: free ip_vs_dest structs when refcnt=0

2017-01-27 Thread Simon Horman
n Anastasov > > Simon and Pablo, this is more appropriate for > ipvs-next/nf-next. Please apply! Pablo, would you mind taking this one directly into nf-next? Signed-off-by: Simon Horman > > > --- > > include/net/ip_vs.h| 2 +- > > net/netfilter/

[GIT PULL nf-next 0/2] IPVS Updates for v4.10

2016-11-15 Thread Simon Horman
Hi Pablo, please consider these enhancements to the IPVS for v4.10. * Decrement the IP ttl in all the modes in order to prevent infinite route loops. Thanks to Dwip Banerjee. * Use IS_ERR_OR_NULL macro. Clean-up from Gao Feng. The following changes since commit 7d384846b9987f7b611357adf3cdfec

[PATCH nf-next 1/2] ipvs: Use IS_ERR_OR_NULL(svc) instead of IS_ERR(svc) || svc == NULL

2016-11-15 Thread Simon Horman
From: Gao Feng This minor refactoring does not change the logic of function ip_vs_genl_dump_dests. Signed-off-by: Gao Feng Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net

[PATCH nf-next 2/2] ipvs: Decrement ttl

2016-11-15 Thread Simon Horman
nd in __ip_vs_get_out_rt_v6(), for the IPv6 case. decrement_ttl() implements the actual functionality for the two cases. Signed-off-by: Dwip Banerjee Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_xmit.c | 54 + 1 file changed, 54 inser

Re: [Patch net] ipvs: use IPVS_CMD_ATTR_MAX for family.maxattr

2016-11-04 Thread Simon Horman
Wang Signed-off-by: Simon Horman Pablo, can you take this one into nf? > --- > net/netfilter/ipvs/ip_vs_ctl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c > index c3c809b..a6

Re: [PATCH] netfilter: ip_vs_sync: fix bogus maybe-uninitialized warning

2016-10-28 Thread Simon Horman
ks because > > > the layout is identical, but seems error-prone, so I'm changing > > > this in the process to directly copy the two members. This change > > > seemed to have no effect on the object code or the warning, but > > > it deals with the same data,

Re: [PATCH nf-next v2] ipvs: use nf_ct_kill helper

2016-08-12 Thread Simon Horman
Hi Pablo, On Fri, Aug 12, 2016 at 12:24:43PM +0200, Pablo Neira Ayuso wrote: > On Wed, Aug 03, 2016 at 03:21:28PM +0200, Florian Westphal wrote: > > Once timer is removed from nf_conn struct we cannot open-code > > the removal sequence anymore. > > @Simon and other IPVS folks: I'm going to take t

[PATCH nf-next] ipvs: count pre-established TCP states as active

2016-07-07 Thread Simon Horman
ot; quickly but at that time, all of them are already assigned to one real server (or few), resulting in highly unbalanced distribution. Address this by counting the "pre-established" states as "active". Signed-off-by: Michal Kubecek Acked-by: Julian Anastasov Signed-off

[GIT PULL nf-next] IPVS Updates for v4.8

2016-07-07 Thread Simon Horman
Hi Pablo, please consider these enhancements to the IPVS. This alters the behaviour of the "least connection" schedulers such that pre-established connections are included in the active connection count. This avoids overloading servers when a large number of new connections arrive in a short space

[PATCH nf] ipvs: fix bind to link-local mcast IPv6 address in backup

2016-07-07 Thread Simon Horman
>sk_bound_dev_if on the socket before calling inet6_bind() resolves the issue. Fixes: d33288172e72 ("ipvs: add more mcast parameters for the sync daemon") Signed-off-by: Quentin Armitage Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 6 ++

[GIT PULL nf] Second Round of IPVS Fixes for v4.7

2016-07-07 Thread Simon Horman
Hi Pablo, please consider this IPVS fix for v4.7. The fix from Quentin Armitage allows the backup sync daemon to be bound to a link-local mcast IPv6 address as is already the case for IPv4. The following changes since commit 62131e5d735226074cba53095545d76b491e5003: netfilter: nft_meta: set s

Re: [PATCH v4 net] ipvs: fix bind to link-local mcast IPv6 address in backup

2016-06-22 Thread Simon Horman
On Fri, Jun 17, 2016 at 09:42:49AM +0300, Julian Anastasov wrote: > > Hello, > > On Thu, 16 Jun 2016, Quentin Armitage wrote: > > > When using HEAD from > > https://git.kernel.org/cgit/utils/kernel/ipvsadm/ipvsadm.git/, > > the command: > > ipvsadm --start-daemon backup --mcast-interface e

  1   2   >