projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3b5d35
)
stackprotector: Increase the per-task stack canary's random range from 32 bits to...
author
Daniel Micay
<
[email protected]
>
Thu, 4 May 2017 13:32:09 +0000
(09:32 -0400)
committer
Ingo Molnar
<
[email protected]
>
Fri, 5 May 2017 06:05:13 +0000
(08:05 +0200)
The stack canary is an 'unsigned long' and should be fully initialized to
random data rather than only 32 bits of random data.
Signed-off-by: Daniel Micay <
[email protected]
>
Acked-by: Arjan van de Ven <
[email protected]
>
Acked-by: Rik van Riel <
[email protected]
>
Acked-by: Kees Cook <
[email protected]
>
Cc: Arjan van Ven <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/fork.c
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index 3a4343cdfe9043ef9afef33c761ab37ecf2d83e6..d681f8f10d2d9aa27fd2294b5a7943dfc01e880c 100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-536,7
+536,7
@@
static struct task_struct *dup_task_struct(struct task_struct *orig, int node)
set_task_stack_end_magic(tsk);
#ifdef CONFIG_CC_STACKPROTECTOR
- tsk->stack_canary = get_random_
int
();
+ tsk->stack_canary = get_random_
long
();
#endif
/*