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: <alpine.DEB.2.00.0908071113420.10926@gandalf.stny.rr.com>
Date:	Fri, 7 Aug 2009 11:15:05 -0400 (EDT)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Eric Dumazet <eric.dumazet@...il.com>
cc:	linux kernel <linux-kernel@...r.kernel.org>, stable@...nel.org
Subject: Re: [PATCH] ring-buffer: Fix memleak in ring_buffer_free()



On Fri, 7 Aug 2009, Eric Dumazet wrote:

> I noticed oprofile memleaked in linux-2.6 current tree,
> and tracked this ring-buffer leak.
> 
> This is a stable candidate.

Thanks! I'll pull it in now.

-- Steve

> 
> [PATCH] ring-buffer: Fix memleak in ring_buffer_free()
> 
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
> ---
> diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
> index bf27bb7..c1d874e 100644
> --- a/kernel/trace/ring_buffer.c
> +++ b/kernel/trace/ring_buffer.c
> @@ -735,6 +735,7 @@ ring_buffer_free(struct ring_buffer *buffer)
>  
>  	put_online_cpus();
>  
> +	kfree(buffer->buffers);
>  	free_cpumask_var(buffer->cpumask);
>  
>  	kfree(buffer);
> 
--
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