]> err.no Git - linux-2.6/commit
[IA64] prevent accidental modification of args in jprobe handler
authorZhang Yanmin <yanmin.zhang@intel.com>
Fri, 13 Jan 2006 22:45:21 +0000 (14:45 -0800)
committerTony Luck <tony.luck@intel.com>
Fri, 13 Jan 2006 22:45:21 +0000 (14:45 -0800)
commitd3ef1f5aafcf7a4129eb2078c70bc9e577bc3af1
tree619647d90b0a51d39e80bbc20b59e7e7dccbf510
parente026cca0f2c09c4c28c902db6384fd8a412671d6
[IA64] prevent accidental modification of args in jprobe handler

When jprobe is hit, the function parameters of the original function
should be saved before jprobe handler is executed, and restored it after
jprobe handler is executed, because jprobe handler might change the
register values due to tail call optimization by the gcc.

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/jprobes.S
arch/ia64/kernel/kprobes.c
include/asm-ia64/kprobes.h