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] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.00.1012202037080.15253@tigran.mtv.corp.google.com>
Date:	Mon, 20 Dec 2010 20:46:40 -0800 (PST)
From:	Hugh Dickins <hughd@...gle.com>
To:	AJ ONeal <coolaj86@...il.com>
cc:	Tim Chen <tim.c.chen@...ux.intel.com>, linux-kernel@...r.kernel.org
Subject: Re: Memory Leak in /dev/shm on ARM 2.6.36

On Mon, 20 Dec 2010, AJ ONeal wrote:

> In my other message about SIGBUS I was mmap-ing a file in /dev/shm.
> 
> I switched my implementation to use write() instead of mmap and now it
> leaks memory very very quickly.
> 
> `df -h` shows that 80mb of memory are in use
> `du -ch /dev/shm` shows that 10mb of memory in use
> 
> After just a few minutes of creating and removing 512kb files in
> /dev/shm the program exits with a write failure.
> Unmounting and remounting /dev/shm reclaims the memory.

I'm interested, but won't have any time to investigate for several days.

The usual reason (for such a large df/du discrepancy) would be something
holding open the unlinked files; but if that were the case, then umount
would fail, complaining that the mount is busy.

Can you please try x86 and see if the same happens there with your
program?  (I've got x86 but not arm: I see no problem on x86,
but I'm probably not doing exactly what you're doing.)

Can you please try 2.6.35 and see if that behaves in the same way?
There were some shmem block accounting changes in 2.6.36, I wonder
if they're misbehaving on arm.

Thanks,
Hugh
--
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