ARM: kprobes: disallow probing stack consuming instructions
This patch prohibits probing instructions for which the stack requirements are unable to be determined statically. Some test cases are found not work again after the modification, this patch also removes them. Signed-off-by: Wang Nan <wangnan0@huawei.com> Reviewed-by: Jon Medhurst <tixy@linaro.org> Signed-off-by: Jon Medhurst <tixy@linaro.org>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
#include "entry-header.S"
|
||||
#include <asm/entry-macro-multi.S>
|
||||
#include <asm/probes.h>
|
||||
|
||||
/*
|
||||
* Interrupt handling.
|
||||
@@ -249,7 +250,7 @@ __und_svc:
|
||||
@ If a kprobe is about to simulate a "stmdb sp..." instruction,
|
||||
@ it obviously needs free stack space which then will belong to
|
||||
@ the saved context.
|
||||
svc_entry 64
|
||||
svc_entry MAX_STACK_SIZE
|
||||
#else
|
||||
svc_entry
|
||||
#endif
|
||||
|
Viittaa uudesa ongelmassa
Block a user