Re: [RFC PATCH v2 2/3] tracefs: add instances support for uprobe events
From: Aravinda Prasad
Date: Thu Aug 04 2016 - 09:46:28 EST
On Thursday 04 August 2016 06:34 AM, Steven Rostedt wrote:
> On Thu, 4 Aug 2016 01:46:04 +0530
> Aravinda Prasad <aravinda@xxxxxxxxxxxxxxxxxx> wrote:
>
>> On Thursday 04 August 2016 01:40 AM, Steven Rostedt wrote:
>>> On Thu, 4 Aug 2016 01:00:51 +0530
>>> Aravinda Prasad <aravinda@xxxxxxxxxxxxxxxxxx> wrote:
>>>
>>>>
>>>>> Can a container have its own function tracing?
>>>>
>>>> Sorry, I didn't understand that. Do you mean to have a separate
>>>> per-container trace files?
>>>
>>> Actually, it's more my ignorance of containers, as I haven't had the
>>> need to play with them. Although, I think it may be time to do so.
>>>
>>> When a container enters kernel mode, I'm assuming that it's part of the
>>> host at that moment, and the host needs to take care of separating
>>> everything? That is, there's not a "second kernel" like VMs have, right?
>>
>> Yes. The host needs to take care of separating everything. There is no
>> "second kernel".
>
> That's what I figured. Thus, my worry is that something like the
> function tracer can cause information leak to a container.
Yes and thus function tracer is currently disabled inside container
unless it is a privileged container.
> How would
> you separate functions for the container from functions for the host?
Separation is based on the context in which the function is called.
Hence, containers can see only those kernel functions that are
triggered/invoked by the processes running inside that container and
should not see other kernel functions, for example, called by RCU grace
period kthread or any other kthread.
Regards,
Aravinda
>
> -- Steve
>
--
Regards,
Aravinda