lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1602042212110.15885@tp.orcam.me.uk>
Date:	Thu, 4 Feb 2016 22:18:55 +0000
From:	"Maciej W. Rozycki" <macro@...tec.com>
To:	Paul Burton <paul.burton@...tec.com>
CC:	<linux-mips@...ux-mips.org>, <linux-kernel@...r.kernel.org>,
	James Hogan <james.hogan@...tec.com>,
	Markos Chandras <markos.chandras@...tec.com>,
	Ralf Baechle <ralf@...ux-mips.org>
Subject: Re: [PATCH v2] MIPS: Stop using dla in 32 bit kernels

On Thu, 4 Feb 2016, Paul Burton wrote:

> diff --git a/arch/mips/include/asm/hazards.h b/arch/mips/include/asm/hazards.h
> index 7b99efd..835c770 100644
> --- a/arch/mips/include/asm/hazards.h
> +++ b/arch/mips/include/asm/hazards.h
> @@ -65,8 +66,8 @@ do {									\
>  	unsigned long tmp;						\
>  									\
>  	__asm__ __volatile__(						\
> +	"	" __stringify(PTR_LA) "	%0, 1f			\n"	\
>  	"	.set "MIPS_ISA_LEVEL"				\n"	\
> -	"	dla	%0, 1f					\n"	\
>  	"	jr.hb	%0					\n"	\
>  	"	.set	mips0					\n"	\
>  	"1:							\n"	\

 This looks good to me if not obviously correct, however for consistency 
please apply the same change to the virtually the same code sequence 
further down the file, used for MIPSr1 builds.

 For the record -- it looks to me there needs to be `.insn' right after 
`1:' to ensure nothing strange happens in a microMIPS compilation.  We 
don't know for sure what GCC puts after the asm but we do want to ensure 
the target of the jump has the ISA bit set correctly.  It needs to be a 
separate change of course.

 Thanks,

  Maciej

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ