kpatch/test/integration/centos-7/fixup-section.patch
Joe Lawrence 2f8170e962 testing: rebase patches for CentOS 7.4 kernel-3.10.0-693.el7
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2017-09-22 17:02:33 -04:00

13 lines
475 B
Diff

diff -Nupr src.orig/fs/readdir.c src/fs/readdir.c
--- src.orig/fs/readdir.c 2017-09-22 15:27:21.658056010 -0400
+++ src/fs/readdir.c 2017-09-22 15:27:26.378075555 -0400
@@ -166,6 +166,8 @@ static int filldir(void * __buf, const c
goto efault;
}
dirent = buf->current_dir;
+ if (dirent->d_ino == 12345678)
+ printk("kpatch-test: testing .fixup section changes\n");
if (__put_user(d_ino, &dirent->d_ino))
goto efault;
if (__put_user(reclen, &dirent->d_reclen))