Re: Potential info leak: Kernel pointer leak?

From: Marc Gonzalez
Date: Wed Jan 23 2019 - 10:01:29 EST


On 23/01/2019 13:24, Vinod Koul wrote:

> On 22-01-19, 21:25, Fuqian Huang wrote:
>
>> Recently I came across some code and it seems to be able to leak kernel address?
>> Is the following code cause info leak in the Linux kernel?
>> linux-4.14.90
>
> Doesn't %p not print kernel addresses anymore, see
> Documentation/core-api/printk-formats.rst

Commit ad67b74d2469d9b82aaa ("printk: hash addresses printed with %p")
was merged in v4.15-rc2 and not backported to v4.14 AFAICT.

Regards.