mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
30de14b188
s390 defines current_stack_pointer as function while all other
architectures use 'register unsigned long asm("<stackptr reg>").
This make codes like the following from check_stack_object() fail:
if (IS_ENABLED(CONFIG_STACK_GROWSUP)) {
if ((void *)current_stack_pointer < obj + len)
return BAD_STACK;
} else {
if (obj < (void *)current_stack_pointer)
return BAD_STACK;
}
because this would compare the address of current_stack_pointer() and
not the stackpointer value.
Reported-by: Karsten Graul <kgraul@linux.ibm.com>
Fixes:
|
||
---|---|---|
.. | ||
delay.c | ||
error-inject.c | ||
expoline.S | ||
find.c | ||
Makefile | ||
mem.S | ||
probes.c | ||
spinlock.c | ||
string.c | ||
test_kprobes_asm.S | ||
test_kprobes.c | ||
test_kprobes.h | ||
test_modules_helpers.c | ||
test_modules.c | ||
test_modules.h | ||
test_unwind.c | ||
uaccess.c | ||
xor.c |