diff --git a/test/integration/centos-7/gcc-static-local-var-6.patch b/test/integration/centos-7/gcc-static-local-var-6.patch new file mode 100644 index 000000000..d04679d95 --- /dev/null +++ b/test/integration/centos-7/gcc-static-local-var-6.patch @@ -0,0 +1,14 @@ +diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c +index a9d587a..23336ed 100644 +--- a/net/ipv6/netfilter.c ++++ b/net/ipv6/netfilter.c +@@ -119,6 +121,9 @@ static int nf_ip6_route(struct net *net, struct dst_entry **dst, + struct dst_entry *result; + int err; + ++ if (!jiffies) ++ printk("kpatch nf_ip6_route foo\n"); ++ + result = ip6_route_output(net, sk, &fl->u.ip6); + err = result->error; + if (err) diff --git a/test/integration/fedora-27/gcc-static-local-var-6.patch b/test/integration/fedora-27/gcc-static-local-var-6.patch new file mode 100644 index 000000000..1e068014c --- /dev/null +++ b/test/integration/fedora-27/gcc-static-local-var-6.patch @@ -0,0 +1,14 @@ +diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c +index 9bf2604..026ac6c 100644 +--- a/net/ipv6/netfilter.c ++++ b/net/ipv6/netfilter.c +@@ -122,6 +124,9 @@ static int nf_ip6_route(struct net *net, struct dst_entry **dst, + struct dst_entry *result; + int err; + ++ if (!jiffies) ++ printk("kpatch nf_ip6_route foo\n"); ++ + result = ip6_route_output(net, sk, &fl->u.ip6); + err = result->error; + if (err) diff --git a/test/integration/ubuntu-16.04/gcc-static-local-var-6.patch b/test/integration/ubuntu-16.04/gcc-static-local-var-6.patch new file mode 100644 index 000000000..9be90bab4 --- /dev/null +++ b/test/integration/ubuntu-16.04/gcc-static-local-var-6.patch @@ -0,0 +1,14 @@ +diff --git a/net/ipv6/netfilter.c b/net/ipv6/netfilter.c +index 39970e2..85e750d 100644 +--- a/net/ipv6/netfilter.c ++++ b/net/ipv6/netfilter.c +@@ -121,6 +123,9 @@ static int nf_ip6_route(struct net *net, struct dst_entry **dst, + struct dst_entry *result; + int err; + ++ if (!jiffies) ++ printk("kpatch nf_ip6_route foo\n"); ++ + result = ip6_route_output(net, sk, &fl->u.ip6); + err = result->error; + if (err)