mirror of
https://github.com/dynup/kpatch
synced 2024-12-18 11:24:33 +00:00
Add patches rebased on top of upstream 6.2.0. Integration tests for these can be ran as this: $ make PATCH_DIR="linux-6.2.0" KPATCH_BUILD_OPTS="--non-replace --sourcedir /path/to/src/linux-6.2.0" integration-slow Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
23 lines
652 B
Diff
23 lines
652 B
Diff
diff -Nupr src.orig/net/ipv6/netfilter.c src/net/ipv6/netfilter.c
|
|
--- src.orig/net/ipv6/netfilter.c 2023-01-12 11:20:07.630713207 -0500
|
|
+++ src/net/ipv6/netfilter.c 2023-01-12 11:20:29.874845095 -0500
|
|
@@ -96,6 +96,8 @@ static int nf_ip6_reroute(struct sk_buff
|
|
return 0;
|
|
}
|
|
|
|
+#include "kpatch-macros.h"
|
|
+
|
|
int __nf_ip6_route(struct net *net, struct dst_entry **dst,
|
|
struct flowi *fl, bool strict)
|
|
{
|
|
@@ -109,6 +111,9 @@ int __nf_ip6_route(struct net *net, stru
|
|
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)
|