summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/kprobes.h
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2016-06-27 07:57:21 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-06-28 09:33:00 +0200
commitc3bdf2e11a10ea804d69a6d1ba1e8a061efb0fa8 (patch)
treef31b4a6b6d3fcee839a3e5b869243ca912094f0f /arch/s390/include/asm/kprobes.h
parents390: remove pointless load within __switch_to (diff)
downloadlinux-c3bdf2e11a10ea804d69a6d1ba1e8a061efb0fa8.tar.xz
linux-c3bdf2e11a10ea804d69a6d1ba1e8a061efb0fa8.zip
s390: stack address vs thread_info
Avoid using the address of a process' thread_info structure as the kernel stack address. This will break as soon as the thread_info structure will be removed from the stack, and in addition it makes the code a bit more understandable. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/kprobes.h')
-rw-r--r--arch/s390/include/asm/kprobes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/kprobes.h b/arch/s390/include/asm/kprobes.h
index b47ad3b642cc..591e5a5279b0 100644
--- a/arch/s390/include/asm/kprobes.h
+++ b/arch/s390/include/asm/kprobes.h
@@ -43,9 +43,9 @@ typedef u16 kprobe_opcode_t;
#define MAX_INSN_SIZE 0x0003
#define MAX_STACK_SIZE 64
#define MIN_STACK_SIZE(ADDR) (((MAX_STACK_SIZE) < \
- (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
+ (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR))) \
? (MAX_STACK_SIZE) \
- : (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))
+ : (((unsigned long)task_stack_page(current)) + THREAD_SIZE - (ADDR)))
#define kretprobe_blacklist_size 0