Skip to content

Commit 1500e44

Browse files
authored
kernel: Use more reasonable symbol name for newfstatat
1 parent 9e233aa commit 1500e44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kernel/arch.h

Lines changed: 2 additions & 2 deletions
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_NEWFSTATAT_SYMBOL "__arm64_sys_newfstat"
26+
#define SYS_FSTAT_SYMBOL "__arm64_sys_newfstat"
2727

2828
#elif defined(__x86_64__)
2929

@@ -43,7 +43,7 @@
4343
#define REBOOT_SYMBOL "__x64_sys_reboot"
4444
#define SYS_READ_SYMBOL "__x64_sys_read"
4545
#define SYS_EXECVE_SYMBOL "__x64_sys_execve"
46-
#define SYS_NEWFSTATAT_SYMBOL "__x64_sys_newfstat"
46+
#define SYS_FSTAT_SYMBOL "__x64_sys_newfstat"
4747

4848
#else
4949
#error "Unsupported arch"

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_NEWFSTATAT_SYMBOL,
585+
.kp.symbol_name = SYS_FSTAT_SYMBOL,
586586
.entry_handler = sys_fstat_handler_pre,
587587
.handler = sys_fstat_handler_post,
588588
.data_size = sizeof(void *),

0 commit comments

Comments
 (0)