mirror of
https://github.com/dynup/kpatch
synced 2025-01-04 20:19:36 +00:00
5dfe17cb02
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>
13 lines
379 B
Diff
13 lines
379 B
Diff
diff --git a/fs/readdir.c b/fs/readdir.c
|
|
index ced679179cac..7fb338324582 100644
|
|
--- a/fs/readdir.c
|
|
+++ b/fs/readdir.c
|
|
@@ -173,6 +173,7 @@ static int filldir(struct dir_context *ctx, const char *name, int namlen,
|
|
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))
|