Re: [PATCH] floppy: Don't print kernel addresses to log in show_floppy

From: Andy Shevchenko
Date: Wed Feb 21 2018 - 09:58:24 EST


On Wed, Feb 21, 2018 at 12:54 AM, Brian Belleville <bbellevi@xxxxxxx> wrote:
> Outputting kernel addresses will reveal the locations of kernel code
> and data. Change the cases in show_floppy that print
> fd_timer.work.func and fd_timeout.work.func to use the %pf format
> specifier, which will print the symbol name, like what is done for the
> other function pointers printed by show_floppy. No longer output the
> value of cont. The variable cont is a pointer that can hold the
> address of kernel global variables.

Perhaps you missed %px introduction and hashing pointers otherwise.

OTOH I don't give a crap about floppy.

--
With Best Regards,
Andy Shevchenko