public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/19812] New: _stp_target misdirected for pid_namespace containers
@ 2016-03-11 19:25 fche at redhat dot com
  2016-03-11 19:36 ` [Bug runtime/19812] " mcermak at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2016-03-11 19:25 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19812

            Bug ID: 19812
           Summary: _stp_target misdirected for pid_namespace containers
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: fche at redhat dot com
  Target Milestone: ---

If staprun -c CMD or -x PID is invoked from within a container (even if
privileged), but without --pid=host, the pid# passed in the STP_START message
will reflect the container's namespace.  This needs to be converted to a host
namespace pid, for inode-uprobes etc. to work.

runtime/transport/transport.c line 151

00151                 _stp_target = st->target;

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug runtime/19812] _stp_target misdirected for pid_namespace containers
  2016-03-11 19:25 [Bug runtime/19812] New: _stp_target misdirected for pid_namespace containers fche at redhat dot com
@ 2016-03-11 19:36 ` mcermak at redhat dot com
  2016-03-14 14:43 ` mcermak at redhat dot com
  2016-03-16 12:50 ` mcermak at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mcermak at redhat dot com @ 2016-03-11 19:36 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19812

Martin Cermak <mcermak at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mcermak at redhat dot com

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug runtime/19812] _stp_target misdirected for pid_namespace containers
  2016-03-11 19:25 [Bug runtime/19812] New: _stp_target misdirected for pid_namespace containers fche at redhat dot com
  2016-03-11 19:36 ` [Bug runtime/19812] " mcermak at redhat dot com
@ 2016-03-14 14:43 ` mcermak at redhat dot com
  2016-03-16 12:50 ` mcermak at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mcermak at redhat dot com @ 2016-03-14 14:43 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19812

--- Comment #1 from Martin Cermak <mcermak at redhat dot com> ---
Created attachment 9094
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9094&action=edit
unpolished patch that seems to work for me

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug runtime/19812] _stp_target misdirected for pid_namespace containers
  2016-03-11 19:25 [Bug runtime/19812] New: _stp_target misdirected for pid_namespace containers fche at redhat dot com
  2016-03-11 19:36 ` [Bug runtime/19812] " mcermak at redhat dot com
  2016-03-14 14:43 ` mcermak at redhat dot com
@ 2016-03-16 12:50 ` mcermak at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: mcermak at redhat dot com @ 2016-03-16 12:50 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=19812

Martin Cermak <mcermak at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Martin Cermak <mcermak at redhat dot com> ---
Fixed in commit 9546970a2fcc06a433ea067833ee95ff74c564ce.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-16 12:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-11 19:25 [Bug runtime/19812] New: _stp_target misdirected for pid_namespace containers fche at redhat dot com
2016-03-11 19:36 ` [Bug runtime/19812] " mcermak at redhat dot com
2016-03-14 14:43 ` mcermak at redhat dot com
2016-03-16 12:50 ` mcermak at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).