Skip to content

Commit 46f3751

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS fix from Ralf Baechle: "Just one fix. The stack protector was loading the value of the canary instead of its address" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MIPS: stack protector: Fix per-task canary switch
2 parents cd4edf7 + 8b3c569 commit 46f3751

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arch/mips/kernel/octeon_switch.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
3:
7474

7575
#if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP)
76-
PTR_L t8, __stack_chk_guard
76+
PTR_LA t8, __stack_chk_guard
7777
LONG_L t9, TASK_STACK_CANARY(a1)
7878
LONG_S t9, 0(t8)
7979
#endif

arch/mips/kernel/r2300_switch.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ LEAF(resume)
6767
1:
6868

6969
#if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP)
70-
PTR_L t8, __stack_chk_guard
70+
PTR_LA t8, __stack_chk_guard
7171
LONG_L t9, TASK_STACK_CANARY(a1)
7272
LONG_S t9, 0(t8)
7373
#endif

arch/mips/kernel/r4k_switch.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
1:
7070

7171
#if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP)
72-
PTR_L t8, __stack_chk_guard
72+
PTR_LA t8, __stack_chk_guard
7373
LONG_L t9, TASK_STACK_CANARY(a1)
7474
LONG_S t9, 0(t8)
7575
#endif

0 commit comments

Comments
 (0)