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: <20061017185828.82631.qmail@web55615.mail.re4.yahoo.com>
Date:	Tue, 17 Oct 2006 11:58:28 -0700 (PDT)
From:	Amit Choudhary <amit2030@...oo.com>
To:	Jarek Poplawski <jarkao2@...pl>,
	Amit Choudhary <amit2030@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: potential mem leak when system is low on memory


> > func()
> > {
> >    for (i = 0; i < LENGTH; i++) {
> >            var1[i] = kmalloc(size);
> >            if (!var1[i])
> >                 return -ENOMEM;
> > 
> > /* mem leak as var1[0] to var1[i - 1] is not freed */
> > 
> >    }
> > }
> > 
> > So, already the system is running low on memory and on top of it there
> > are leaks.
> 
> So you've found elementary programming bugs and it would
> be nice to point this places.
> 

As of now, when I come across such a leak, I fix it. But if I am unable to do so, I will
definitely send out a mail.

Regards,
Amit Choudhary
 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
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