kpatch/test/integration/rhel-8.6/bug-table-section.patch

13 lines
505 B
Diff

diff -Nupr src.orig/fs/proc/proc_sysctl.c src/fs/proc/proc_sysctl.c
--- src.orig/fs/proc/proc_sysctl.c 2022-04-29 16:08:21.409780550 -0400
+++ src/fs/proc/proc_sysctl.c 2022-04-29 16:08:21.908782326 -0400
@@ -338,6 +338,8 @@ static void start_unregistering(struct c
static struct ctl_table_header *sysctl_head_grab(struct ctl_table_header *head)
{
+ if (jiffies == 0)
+ printk("kpatch-test: testing __bug_table section changes\n");
BUG_ON(!head);
spin_lock(&sysctl_lock);
if (!use_table(head))