[PATCH v2] bpf: fix check of allowed specifiers in bpf_trace_printk

2018-11-23 Thread Martynas Pumputis
A format string consisting of "%p" or "%s" followed by an invalid specifier (e.g. "%p%\n" or "%s%") could pass the check which would make format_decode (lib/vsprintf.c) to warn. Reported-by: syzbot+1ec5c5ec949c4adaa...@syzkaller.appspotmail.com Signed-off-

[PATCH] bpf: fix check of allowed specifiers in bpf_trace_printk

2018-11-22 Thread Martynas Pumputis
A format string consisting of "%p" or "%s" followed by an invalid specifier (e.g. "%p%\n" or "%s%") could pass the check which would make format_decode (lib/vsprintf.c) to warn. Reported-by: syzbot+1ec5c5ec949c4adaa...@syzkaller.appspotmail.com Signed-off-

[PATCH v2] vxlan: Set ports in flow key when doing route lookups

2017-01-11 Thread Martynas Pumputis
Otherwise, a xfrm policy with sport/dport being set cannot be matched. Signed-off-by: Martynas Pumputis <martynas@weave.works> --- Changes in v2: - Set the source port in the flow key. drivers/net/vxlan.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff

[PATCH] vxlan: Set flow*_dport when doing route lookups

2017-01-10 Thread Martynas Pumputis
Otherwise, no xfrm policy with dport being set can be matched. Signed-off-by: Martynas Pumputis <martynas@weave.works> --- drivers/net/vxlan.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index bb70dd5..fcfe786

[PATCH] openvswitch: do not ignore netdev errors when creating tunnel vports

2016-08-09 Thread Martynas Pumputis
is currently ignored giving the appearance that the tunnel vport creation completed successfully. Signed-off-by: Martynas Pumputis <martynas@weave.works> --- net/openvswitch/vport-geneve.c | 9 - net/openvswitch/vport-gre.c| 11 +-- net/openvswitch/vport-vxlan.c | 9 ++