[Bug uprobes/10595] uprobe probes causes selinux failures
mjw at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Sep 14 19:51:00 GMT 2009
------- 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.
More information about the Systemtap
mailing list