This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug uprobes/10595] uprobe probes causes selinux failures


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]