This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug uprobes/10595] uprobe probes causes selinux failures
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 14 Sep 2009 19:51:34 -0000
- Subject: [Bug uprobes/10595] uprobe probes causes selinux failures
- References: <20090903122458.10595.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mjw at redhat dot com 2009-09-14 19:51 -------
(In reply to comment #14)
> (In reply to comment #13)
> > To prevent leaks, the filp created needs to be saved away, and later fput()'d
> > at deallocation time.
>
> when the vma gets deallocated the filp will be fput also, see mm/mmap.c
> remove_vma().
On irc fche pointed out that fput() just cancels the get_file() in mm/mmap.c
(mmap_region). So we probably should fput it immediately after calling
do_mmap_pgoff().
Hint: Examine the sequence and f_counts with some well placed stap
kernel.function* trace probes.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10595
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.