Re: [kernel-hardening] Re: [PATCH] checkpatch: Add ability to find bad uses of vsprintf %p<foo> extensions

From: Joe Perches
Date: Tue Feb 28 2017 - 20:22:32 EST


On Tue, 2017-02-28 at 16:11 -0800, Kees Cook wrote:
> On Tue, Feb 28, 2017 at 4:06 PM, Andrew Morton
> <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> > On Mon, 27 Feb 2017 12:54:55 -0800 Joe Perches <joe@xxxxxxxxxxx> wrote:
> >
> > > %pK was at least once misused at %pk in an out-of-tree module.
> > > This lead to some security concerns. Add the ability to track
> > > single and multiple line statements for misuses of %p<foo>.
> >
> > Should we also do this?
>
> Ah yes, good idea. Maybe "...when adding/removing new conversion..." ?

Deleting conversions seems unlikely.