Details

[Home]

Issue of the Implementation # K0006

Brief

(Guest Additions) Memory leak in sf_lookup

Detailed Description

A memory leak happens in the kernel module from VirtualBox Guest Additions (Linux) responsible for shared folder support (vboxsf.ko).

Consider sf_lookup() function from dirops.c (SVN: trunk/src/VBox/Additions/linux/sharedfolders/dirops.c, revision 33540).

The call to sf_path_from_dentry() allocates memory for 'path' structure and fills it appropriately. But if the call to sf_stat() located just below in sf_lookup() returns -ENOENT, that memory will never be freed.

This happens if some process tries to access a non-existent entry in the shared folders: a file that is about to be created or is simply missing, etc.

Reproducing

Mount a shared folder and copy some files to it in the guest system. The memory leak will be in that guest system.

Component

VirtualBox 3.2.10

References

Problems found by KEDR

Accepted

VirtualBox bug tracker, ticket #7705

Status

Fixed in VirtualBox 3.2.12

[Home]