From: Stephen Rothwell on 4 Jul 2010 19:30 Hi all, Today's linux-next merge of the omap tree got a conflict in arch/arm/kernel/entry-armv.S between commit df0698be14c6683606d5df2d83e3ae40f85ed0d9 ("ARM: stack protector: change the canary value per task") from the arm tree and commit 4481d0c7d25c9de9a3986c8b4c52389ca8bbf929 ("arm: Replace CONFIG_HAS_TLS_REG with HWCAP_TLS and check for it on V6") from the omap tree. Just context changes (I think). I fixed it up (see below) and can carry the fix as necessary. -- Cheers, Stephen Rothwell sfr(a)canb.auug.org.au diff --cc arch/arm/kernel/entry-armv.S index 2d14081,a6cfb17..0000000 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S @@@ -739,17 -740,7 +740,12 @@@ ENTRY(__switch_to #ifdef CONFIG_MMU ldr r6, [r2, #TI_CPU_DOMAIN] #endif - #if defined(CONFIG_HAS_TLS_REG) - mcr p15, 0, r3, c13, c0, 3 @ set TLS register - #elif !defined(CONFIG_TLS_REG_EMUL) - mov r4, #0xffff0fff - str r3, [r4, #-15] @ TLS val at 0xffff0ff0 - #endif + set_tls r3, r4, r5 +#if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) + ldr r7, [r2, #TI_TASK] + ldr r8, =__stack_chk_guard + ldr r7, [r7, #TSK_STACK_CANARY] +#endif #ifdef CONFIG_MMU mcr p15, 0, r6, c3, c0, 0 @ Set domain register #endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Nicolas Pitre on 4 Jul 2010 21:50 On Mon, 5 Jul 2010, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the omap tree got a conflict in > arch/arm/kernel/entry-armv.S between commit > df0698be14c6683606d5df2d83e3ae40f85ed0d9 ("ARM: stack protector: change > the canary value per task") from the arm tree and commit > 4481d0c7d25c9de9a3986c8b4c52389ca8bbf929 ("arm: Replace > CONFIG_HAS_TLS_REG with HWCAP_TLS and check for it on V6") from the omap > tree. > > Just context changes (I think). I fixed it up (see below) and can carry > the fix as necessary. Yes, the fix is fine. If you can carry it until either of those is merged upstream that would be great. > -- > Cheers, > Stephen Rothwell sfr(a)canb.auug.org.au > > diff --cc arch/arm/kernel/entry-armv.S > index 2d14081,a6cfb17..0000000 > --- a/arch/arm/kernel/entry-armv.S > +++ b/arch/arm/kernel/entry-armv.S > @@@ -739,17 -740,7 +740,12 @@@ ENTRY(__switch_to > #ifdef CONFIG_MMU > ldr r6, [r2, #TI_CPU_DOMAIN] > #endif > - #if defined(CONFIG_HAS_TLS_REG) > - mcr p15, 0, r3, c13, c0, 3 @ set TLS register > - #elif !defined(CONFIG_TLS_REG_EMUL) > - mov r4, #0xffff0fff > - str r3, [r4, #-15] @ TLS val at 0xffff0ff0 > - #endif > + set_tls r3, r4, r5 > +#if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) > + ldr r7, [r2, #TI_TASK] > + ldr r8, =__stack_chk_guard > + ldr r7, [r7, #TSK_STACK_CANARY] > +#endif > #ifdef CONFIG_MMU > mcr p15, 0, r6, c3, c0, 0 @ Set domain register > #endif > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo(a)vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Stephen Rothwell on 5 Jul 2010 03:20 Hi Nicolas, On Sun, 04 Jul 2010 21:46:27 -0400 (EDT) Nicolas Pitre <nico(a)fluxnic.net> wrote: > > Yes, the fix is fine. If you can carry it until either of those is > merged upstream that would be great. Thanks for the confirmation. I can carry the merge fix as long as necessary. -- Cheers, Stephen Rothwell sfr(a)canb.auug.org.au http://www.canb.auug.org.au/~sfr/
From: Tony Lindgren on 5 Jul 2010 09:50 * Stephen Rothwell <sfr(a)canb.auug.org.au> [100705 10:08]: > Hi Nicolas, > > On Sun, 04 Jul 2010 21:46:27 -0400 (EDT) Nicolas Pitre <nico(a)fluxnic.net> wrote: > > > > Yes, the fix is fine. If you can carry it until either of those is > > merged upstream that would be great. > > Thanks for the confirmation. I can carry the merge fix as long as > necessary. Thanks, I've dropped this patch from omap for-next branch, I'll send it into Russell's patch system. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: MTD: Nand: Add JZ4740 NAND Next: linux-next: build warning after merge of the vfs tree |