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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140902235038.GA23286@roeck-us.net>
Date:	Tue, 2 Sep 2014 16:50:38 -0700
From:	Guenter Roeck <linux@...ck-us.net>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	Stephen Rothwell <sfr@...b.auug.org.au>,
	linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
	Ingo Molnar <mingo@...nel.org>,
	"David S. Miller" <davem@...emloft.net>
Subject: Re: linux-next: Tree for Aug 23

On Tue, Sep 02, 2014 at 10:21:26PM +0200, Peter Zijlstra wrote:
> On Tue, Sep 02, 2014 at 12:04:45PM -0700, Guenter Roeck wrote:
> 
> > I provided qemu images and instructions as follows.
> > 	http://server.roeck-us.net/qemu/mipsel/		MIPS 32 bit, little endian
> > 	http://server.roeck-us.net/qemu/mips64el/	MIPS 64 bit, little endian
> > 
> > Let me know if you also need big endian images.
> 
> Thanks! Does the below work? It appears to work for the mips64 build I did.
> I'll send a proper patch tomorrow; sleep time :-)
> 
Yes, this fixes the problem for both mips32 and mips64.

Guenter

> ---
> diff --git a/arch/mips/configs/malta_defconfig b/arch/mips/configs/malta_defconfig
> index e18741e..869efe7 100644
> --- a/arch/mips/configs/malta_defconfig
> +++ b/arch/mips/configs/malta_defconfig
> @@ -441,3 +441,6 @@ CONFIG_CRYPTO_TEA=m
>  CONFIG_CRYPTO_TWOFISH=m
>  # CONFIG_CRYPTO_ANSI_CPRNG is not set
>  CONFIG_CRC16=m
> +CONFIG_BLK_DEV_INITRD=y
> +CONFIG_CPU_MIPS64_R1=y
> +CONFIG_64BIT=y
> diff --git a/arch/mips/include/asm/atomic.h b/arch/mips/include/asm/atomic.h
> index 476fe3b..f3ee721 100644
> --- a/arch/mips/include/asm/atomic.h
> +++ b/arch/mips/include/asm/atomic.h
> @@ -93,7 +93,7 @@ static __inline__ int atomic_##op##_return(int i, atomic_t * v)			\
>  		"	" #asm_op " %0, %1, %3				\n"	\
>  		"	sc	%0, %2					\n"	\
>  		"	beqzl	%0, 1b					\n"	\
> -		"	addu	%0, %1, %3				\n"	\
> +		"	" #asm_op " %0, %1, %3				\n"	\
>  		"	.set	mips0					\n"	\
>  		: "=&r" (result), "=&r" (temp), "+m" (v->counter)		\
>  		: "Ir" (i));							\
> @@ -111,7 +111,7 @@ static __inline__ int atomic_##op##_return(int i, atomic_t * v)			\
>  			: "Ir" (i));						\
>  		} while (unlikely(!result));					\
>  										\
> -		result = temp + i;						\
> +		result = temp; result c_op i;					\
>  	} else {								\
>  		unsigned long flags;						\
>  										\
> @@ -387,7 +387,7 @@ static __inline__ long atomic64_##op##_return(long i, atomic64_t * v)		\
>  			: "memory");						\
>  		} while (unlikely(!result));					\
>  										\
> -		result = temp + i;						\
> +		result = temp; result c_op i;					\
>  	} else {								\
>  		unsigned long flags;						\
>  										\
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ