Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
autofs
autofs-5.0.4-fix-hosts-map-use-after-free.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File autofs-5.0.4-fix-hosts-map-use-after-free.patch of Package autofs
autofs-5.0.4 - fix hosts map use after free From: Ian Kent <raven@themaw.net> This patch fixed use a map entry after it has been freed in the hosts map lookup module. --- CHANGELOG | 1 + modules/lookup_hosts.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) Index: autofs-5.0.4/modules/lookup_hosts.c =================================================================== --- autofs-5.0.4.orig/modules/lookup_hosts.c +++ autofs-5.0.4/modules/lookup_hosts.c @@ -138,17 +138,19 @@ int lookup_mount(struct autofs_point *ap /* Check if we recorded a mount fail for this key anywhere */ me = lookup_source_mapent(ap, name, LKP_DISTINCT); if (me) { + struct mapent_cache *fmc = me->mc; + if (me->status >= time(NULL)) { - cache_unlock(me->mc); + cache_unlock(fmc); return NSS_STATUS_NOTFOUND; } if (!me->mapent) { - cache_delete(me->mc, name); + cache_delete(fmc, name); me = NULL; } - cache_unlock(me->mc); + cache_unlock(fmc); } cache_readlock(mc); Index: autofs-5.0.4/CHANGELOG =================================================================== --- autofs-5.0.4.orig/CHANGELOG +++ autofs-5.0.4/CHANGELOG @@ -8,6 +8,7 @@ - make hash table scale to thousands of entries (Paul Wankadia, Valerie Aurora Henson). - clear the quoted flag after each character from program map input. +- fix hosts map use after free. 4/11/2008 autofs-5.0.4 -----------------------
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor