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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1311109131-sup-1906@shiny>
Date:	Tue, 19 Jul 2011 17:00:11 -0400
From:	Chris Mason <chris.mason@...cle.com>
To:	paulmck <paulmck@...ux.vnet.ibm.com>
Cc:	"Jan H. Schönherr" <schnhrr@...tu-berlin.de>,
	Dipankar Sarma <dipankar@...ibm.com>,
	Corey Minyard <minyard@....org>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] rcu: Fix wrong check in list_splice_init_rcu()

Excerpts from Paul E. McKenney's message of 2011-07-19 16:27:52 -0400:
> On Tue, Jul 19, 2011 at 09:10:26PM +0200, Jan H. Schönherr wrote:
> > Hi.
> > 
> > If I don't miss something obvious, the following patch would
> > be a good idea.
> > 
> > There are currently two users of list_splice_init_rcu(): IPMI and btrfs.
> > For these, list_splice_init_rcu() is currently a NOP.
> > 
> > If I interpret the code correctly, this fixes a memory leak for
> > IPMI and something probably worse for btrfs.
> > 
> > The call from within btrfs was introduced only after v2.6.39 with commit
> > 1f78160 ("Btrfs: using rcu lock in the reader side of devices list") by
> > converting a list_splice_init() call.
> > 
> > Therefore, this patch might be a candidate for v3.0.
> 
> Excellent catch!  This one has been around for some time, so my guess
> is that it goes into v3.1.  Either way, I have queued it, thank you!

A good catch and thanks for the cc.  The btrfs code in question here has
some other problems, and it's fine if this patch doesn't make 3.0.

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