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: <20101223.093544.71126698.davem@davemloft.net>
Date:	Thu, 23 Dec 2010 09:35:44 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	ying.huang@...el.com
Cc:	akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
	andi@...stfloor.org, peterz@...radead.org,
	torvalds@...ux-foundation.org, mingo@...e.hu, rth@...ddle.net,
	linux@....linux.org.uk, starvik@...s.com, dhowells@...hat.com,
	ysato@...rs.sourceforge.jp, tony.luck@...el.com,
	takata@...ux-m32r.org, geert@...ux-m68k.org, monstr@...str.eu,
	ralf@...ux-mips.org, kyle@...artin.ca, schwidefsky@...ibm.com,
	liqin.chen@...plusct.com, mingo@...hat.com, chris@...kel.net
Subject: Re: [RFC -v9 1/4] Add Kconfig option ARCH_HAVE_NMI_SAFE_CMPXCHG

From: Huang Ying <ying.huang@...el.com>
Date: Thu, 23 Dec 2010 13:43:20 +0800

> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -22,6 +22,7 @@ config SPARC
>  	select RTC_CLASS
>  	select RTC_DRV_M48T59
>  	select HAVE_IRQ_WORK
> +	select ARCH_HAVE_NMI_SAFE_CMPXCHG
>  	select HAVE_DMA_ATTRS
>  	select HAVE_DMA_API_DEBUG
>  	select HAVE_ARCH_JUMP_LABEL

This should only be set for "SPARC64".  SPARC32's cmpxchg uses spinlocks and
IRQ disabling, which is not NMI safe.

--
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