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]
Date:	Thu, 08 Aug 2013 09:07:49 -0400
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Joonsoo Kim <iamjoonsoo.kim@....com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Christoph Lameeter <cl@...ux.com>,
	Wanpeng Li <liwanp@...ux.vnet.ibm.com>,
	Pekka Enberg <penberg@...nel.org>
Subject: Re: [BUG] hackbench locks up with perf in 3.11-rc1 and beyond

On Thu, 2013-08-08 at 14:04 +0900, Joonsoo Kim wrote:

> Sorry about it.
> Now, I think that this is a buggy commit, so should be reverted.
> 
> For confirm that, could I ask a question about your configuration, Steven?
> I guess, you may set 0 to all kmem caches's cpu_partial via sysfs, doesn't it?

Ah, you're right. As this box is also used to test the -rt patch,
there's a script installed to disable all cpu_partials. This is because
cpu_partials are known to cause non-deterministic behavior in -rt.

I forgot about that script, as this box is used for regular mainline
testing as well.

> 
> In this case, memory leak is possible in following case.
> Code flow of possible leak is follwing case.
> 
> * in __slab_free()
> 1. (!new.inuse || !prior) && !was_frozen
> 2. !kmem_cache_debug && !prior
> 3. new.frozen = 1
> 4. after cmpxchg_double_slab, run the (!n) case with new.frozen=1
> 5. with this patch, put_cpu_partial() doesn't do anything,
> 	because this cache's cpu_partial is 0
> 6. return
> 
> In step 5, leak occur.
> 
> I have a solution to prevent this problem, but in this stage, IMHO,
> reverting it may be better.

Yeah, I would suggest that too. As this seems to be a serious
regression.

Thanks!

-- Steve

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