mirror of
https://github.com/dynup/kpatch
synced 2024-12-12 00:14:35 +00:00
401680a7c9
The current approach of trying to include the tracepoint-related sections doesn't work at all. The new tracepoints don't show up in "perf list". And also, with one patch (issue #219) I've seen a panic in jump_label_del_module(). I suspect it's because the kernel is confused by dynamic relocations' changing of the jump table after it was registered with the jump table code. I think the best approach for now is to just always exclude these sections. It should be harmless, with the only consequence being that tracepoints and jump labels can't be enabled in patched functions (which is already the case with the current code anyway). Fixes #221.
13 lines
263 B
Diff
13 lines
263 B
Diff
Index: src/net/core/dev.c
|
|
===================================================================
|
|
--- src.orig/net/core/dev.c
|
|
+++ src/net/core/dev.c
|
|
@@ -3609,6 +3609,7 @@ ncls:
|
|
case RX_HANDLER_PASS:
|
|
break;
|
|
default:
|
|
+ printk("BUG!\n");
|
|
BUG();
|
|
}
|
|
}
|