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: <20150618094014.GC1094@gmail.com>
Date:	Thu, 18 Jun 2015 11:40:14 +0200
From:	Ingo Molnar <mingo@...nel.org>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
	umgwanakikbuti@...il.com, mingo@...e.hu, ktkhai@...allels.com,
	rostedt@...dmis.org, tglx@...utronix.de, juri.lelli@...il.com,
	pang.xunlei@...aro.org, oleg@...hat.com,
	wanpeng.li@...ux.intel.com, linux-kernel@...r.kernel.org,
	Al Viro <viro@...IV.linux.org.uk>,
	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 11/18] seqcount: Introduce raw_write_seqcount_barrier()


* Peter Zijlstra <peterz@...radead.org> wrote:

> > > I doubt there's a single OS kernel (that supports SMP configurations) that 
> > > does not rely on a whole host of 'undefined' behaviour.
> > 
> > An alternative approach would be a compiler switch (or similar) that changed 
> > the default atomic access from SC to relaxed.  Then shared variables could be 
> > marked atomic, and normal C code could be used to access them, but without the 
> > compiler emitting memory barriers all over the place (yes, even on x86).
> 
> See, I don;'t think that is a realistic approach. Who is going to audit our ~16 
> million lines of code to mark all shared variables? Or all the other existing 
> code bases that rely on this behaviour?

Sidenote: we are well beyond 19 million lines meanwhile.

But generating speculative writes unless the compiler can prove it's not shared 
memory are crazy. Who on earth argues they are sane?

In what retarded use-case do unasked for speculative writes even make any sense 
beyond as a sadistic tool to make parallel, threaded code even more fragile??

Thanks,

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