[uml-devel] [PATCH] Fix for "occasional userspace process in D/Z state" bug

2014-09-26 Thread anton . ivanov
From: Anton Ivanov This is a fix for a very old UML bug which can be triggered with stock UML. It takes a lot of effort to trigger it there because the lseek()/read() | write() mechanics of the UBD driver implicitly sync the memory all the time by hitting the appropriate barrier implementation

Re: [uml-devel] [PATCH] Fix for "occasional userspace process in D/Z state" bug

2014-09-26 Thread Richard Weinberger
Am 26.09.2014 13:49, schrieb anton.iva...@kot-begemot.co.uk: > From: Anton Ivanov > > This is a fix for a very old UML bug which can be triggered with stock > UML. It takes a lot of effort to trigger it there because the > lseek()/read() | write() mechanics of the UBD driver implicitly sync the

Re: [uml-devel] [PATCH] Fix for "occasional userspace process in D/Z state" bug

2014-09-26 Thread Anton Ivanov (antivano)
On 26/09/14 12:56, Richard Weinberger wrote: [snip] > +#ifdef CONFIG_X86_32 > + alternative("lock; addl $0,0(%%esp)", "mfence", X86_FEATURE_XMM2); > +#else > + asm volatile("mfence":::"memory"); > +#endif > Why not mb()? > I'm not sure whether this fix is correct. Looking at the actual d

Re: [uml-devel] [PATCH] Fix for "occasional userspace process in D/Z state" bug

2014-09-28 Thread Anton Ivanov
On 26/09/14 12:56, Richard Weinberger wrote: > Am 26.09.2014 13:49, schrieb anton.iva...@kot-begemot.co.uk: >> From: Anton Ivanov >> >> This is a fix for a very old UML bug which can be triggered with stock >> UML. It takes a lot of effort to trigger it there because the >> lseek()/read() | writ