kpatch/test/integration/centos-7/fixup-section.patch
Artem Savkov 5dfe17cb02 Update fixup-section patches
These patches previously would try to dereference a userspace pointer
directly which can cause issue on some systems. Since the aim of these
patches is to check fixup section changes we can don't need to do any
meaningful changes to the function, so change the patches to just add
asm("nop") instead.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
2019-05-15 10:28:45 +02:00

13 lines
384 B
Diff

diff --git a/fs/readdir.c b/fs/readdir.c
index febd02dfbe2d..064db7bd70d0 100644
--- a/fs/readdir.c
+++ b/fs/readdir.c
@@ -176,6 +176,7 @@ static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
goto efault;
}
dirent = buf->current_dir;
+ asm("nop");
if (__put_user(d_ino, &dirent->d_ino))
goto efault;
if (__put_user(reclen, &dirent->d_reclen))