]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux: stop trying to use getname/putname
authorJeff Layton <jlayton@redhat.com>
Fri, 6 Dec 2013 18:34:04 +0000 (13:34 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 18 Dec 2013 16:01:49 +0000 (08:01 -0800)
commitd68e6c24f53b6878733e28909e23e44a0fdfae1d
treeac246cb215418f6628c0f69bcc91eb3b022b96d7
parentd6b6cd5a170f650fcbffcbb8f6bd9a54852ebabb
Linux: stop trying to use getname/putname

The current code has afs_putname defined as

    kmem_cache_free (names_cachep, (void *) name);

This is wrong and will cause a double -free when syscall auditing is
enabled. Fix it to call putname properly.

Instead of that, just create a new afs_getname function that doesn't
bother with struct filename at all, and use that unconditionally.

Signed-off-by:Jeff Layton <jlayton@redhat.com>

Reviewed-on: http://gerrit.openafs.org/10547
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeff Layton <jlayton@poochiereds.net>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit d40ed7391670010db0df2202d770341b2ca82f32)

Change-Id: I860366b5ad3ce43cbade0ddfb8bed5ba5e7908a8
Reviewed-on: http://gerrit.openafs.org/10578
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
acinclude.m4
src/afs/LINUX/osi_compat.h
src/afs/LINUX/osi_misc.c