Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAG48ez1VMPLasTypDX5QnZnYprbCXfG9ZP9jQvPpS=HCpgvHvQ@mail.gmail.com>
Date: Mon, 5 Jun 2017 22:24:20 +0200
From: Jann Horn <jannh@...gle.com>
To: Igor Stoppa <igor.stoppa@...wei.com>
Cc: Kees Cook <keescook@...omium.org>, mhocko@...nel.org, jmorris@...ei.org, 
	penguin-kernel@...ove.sakura.ne.jp, Paul Moore <paul@...l-moore.com>, 
	Stephen Smalley <sds@...ho.nsa.gov>, casey@...aufler-ca.com, 
	Christoph Hellwig <hch@...radead.org>, labbott@...hat.com, linux-mm@...ck.org, 
	kernel list <linux-kernel@...r.kernel.org>, 
	Kernel Hardening <kernel-hardening@...ts.openwall.com>
Subject: Re: [PATCH 3/5] Protectable Memory Allocator -
 Debug interface

On Mon, Jun 5, 2017 at 9:22 PM, Igor Stoppa <igor.stoppa@...wei.com> wrote:
> Debugfs interface: it creates a file
>
> /sys/kernel/debug/pmalloc/pools
>
> which exposes statistics about all the pools and memory nodes in use.
>
> Signed-off-by: Igor Stoppa <igor.stoppa@...wei.com>
[...]
> +       seq_printf(s, " - node:\t\t%p\n", node);
> +       seq_printf(s, "   - start of data ptr:\t%p\n", node->data);
> +       seq_printf(s, "   - end of node ptr:\t%p\n", (void *)end_of_node);
[...]
> +       seq_printf(s, "pool:\t\t\t%p\n", pool);
[...]
> +       debugfs_create_file("pools", 0644, pmalloc_root, NULL,
> +                           &pmalloc_file_ops);

You should probably be using %pK to hide the kernel pointers.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.