From: Gerald Schaefer <geraldsc@de.ibm.com>
To: akpm@osdl.org
Cc: jmorris@redhat.com, sds@epoch.ncsc.mil, schwidefsky@de.ibm.com,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] SELinux: memory leak in selinux_sb_copy_data()
Date: Fri, 17 Jun 2005 15:18:02 +0200 [thread overview]
Message-ID: <1119014283.7006.58.camel@thinkpad> (raw)
[PATCH 1/1] SELinux: memory leak in selinux_sb_copy_data()
There is a memory leak during mount when SELinux is active and mount options
are specified.
Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
---
diff -pruN linux-2.6-git/security/selinux/hooks.c linux-2.6-git_xxx/security/selinux/hooks.c
--- linux-2.6-git/security/selinux/hooks.c 2005-06-16 20:01:03.000000000 +0200
+++ linux-2.6-git_xxx/security/selinux/hooks.c 2005-06-17 14:38:08.000000000 +0200
@@ -1945,6 +1945,7 @@ static int selinux_sb_copy_data(struct f
} while (*in_end++);
copy_page(in_save, nosec_save);
+ free_page((unsigned long)nosec);
out:
return rc;
}
next reply other threads:[~2005-06-17 13:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-17 13:18 Gerald Schaefer [this message]
2005-06-17 15:47 ` [PATCH 1/1] SELinux: memory leak in selinux_sb_copy_data() Gerald Schaefer
2005-06-17 15:57 ` Stephen Smalley
2005-06-17 16:18 ` Gerald Schaefer
2005-06-17 17:33 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1119014283.7006.58.camel@thinkpad \
--to=geraldsc@de.ibm.com \
--cc=akpm@osdl.org \
--cc=jmorris@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=schwidefsky@de.ibm.com \
--cc=sds@epoch.ncsc.mil \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.