Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix incorrect arch register use for kprobe func with more parameters
Commit 12107c6 ("use correct arch register for the 4th param of x86_64 syscalls") tries to use proper syscall specific registers on x86_64 as its 4th param for syscall is different from non-syscall. Unfortunately, the implementation also uses syscall arch. register for non-syscall kernel functions, which is incorrect. This patch fixed the issue by using syscall arch registers only for syscalls. Reported-by: zhenwei pi <[email protected]> Fixes: 12107c6 ("use correct arch register for the 4th param of x86_64 syscalls") Signed-off-by: Yonghong Song <[email protected]>
- Loading branch information