Re: [PATCH V2 2/2] mm/migration: Add trace events for base page and HugeTLB migrations

From: Steven Rostedt
Date: Tue Jan 25 2022 - 10:19:08 EST


On Tue, 25 Jan 2022 13:28:49 +0000
Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:

> On Tue, Jan 25, 2022 at 08:38:25AM +0530, Anshuman Khandual wrote:
> > + TP_printk("addr=%lx, pte=%lx order=%d", __entry->addr, __entry->pte, __entry->order)
>
> In these days of increasingly advanced Rowhammer attacks, is it wise
> to let userspace know exactly which physical addresses are being
> used for virtual addresses?

Is it an issue if this is only available for privileged users?

With tracing, you can just create a kprobe to get the same information for
you as well, so this isn't giving a user anything they do not already have.

-- Steve