kpatch/test/integration/fedora-25/convert-global-local.patch
Joe Lawrence 9a786313e0 testing - rebase for integration tests for Fedora 25
Kernel version 4.9.7-201.fc25.x86_64
2017-02-09 15:41:41 -05:00

17 lines
526 B
Diff

This is a test for #658: a kernel panic seen when patching an exported
function (e.g., kmalloc) which is used by patch_init().
---
diff -Nupr src.orig/mm/slub.c src/mm/slub.c
--- src.orig/mm/slub.c 2016-12-11 14:17:54.000000000 -0500
+++ src/mm/slub.c 2017-02-08 21:02:17.946870598 -0500
@@ -3719,6 +3719,9 @@ void *__kmalloc(size_t size, gfp_t flags
struct kmem_cache *s;
void *ret;
+ if (!jiffies)
+ printk("kpatch kmalloc\n");
+
if (unlikely(size > KMALLOC_MAX_CACHE_SIZE))
return kmalloc_large(size, flags);