Skip to content

Commit 9e233aa

Browse files
authored
kernel: Fixing symbol names causing x64 kernel compilation failure (#3147)
1 parent 07441ea commit 9e233aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define SYS_EXECVE_SYMBOL "__arm64_sys_execve"
2424
// https://cs.android.com/android/kernel/superproject/+/common-android-mainline:common/scripts/syscalltbl.sh;l=57;drc=9142be9e6443fd641ca37f820efe00d9cd890eb1
2525
// https://cs.android.com/android/kernel/superproject/+/common-android-mainline:common/scripts/syscall.tbl;l=104;drc=b36d4b6aa88ef039647228b98c59a875e92f8c8e
26-
#define SYS_FSTAT_SYMBOL "__arm64_sys_newfstat"
26+
#define SYS_NEWFSTATAT_SYMBOL "__arm64_sys_newfstat"
2727

2828
#elif defined(__x86_64__)
2929

kernel/ksud.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ static struct kprobe sys_read_kp = {
582582
};
583583

584584
static struct kretprobe sys_fstat_kp = {
585-
.kp.symbol_name = SYS_FSTAT_SYMBOL,
585+
.kp.symbol_name = SYS_NEWFSTATAT_SYMBOL,
586586
.entry_handler = sys_fstat_handler_pre,
587587
.handler = sys_fstat_handler_post,
588588
.data_size = sizeof(void *),

0 commit comments

Comments
 (0)