lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJKSTDxsSH=ToKhhBizydi6KiJkSxhAcKAHOo1593p3L3At0Zg@mail.gmail.com>
Date:   Tue, 14 Jan 2020 19:50:13 +0800
From:   xuesong Chen <xuesong1977@...il.com>
To:     David Laight <David.Laight@...lab.com>
Cc:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: Question about output of kmalloc()

On Tue, Jan 14, 2020 at 6:36 PM David Laight <David.Laight@...lab.com> wrote:
>
> From:  xuesong Chen
> > Sent: 14 January 2020 07:21
> > Below code snippet in the .ko:
> >
> > unsigned long *p = (unsigned long *)kmalloc(sizeof(*p), GFP_KERNEL);
> > printk("Addr of p = 0x%p\n", p);
> >
> > The output is:
> > Addr of p = 0x0000000018606ce7
> >
> > In my mind, during the early day, the p should be 0xfffff...., can
> > anybody give some tips why the output looks like it's a physical
> > address?
>
> The printed value is hashed to avoid leaking info.
>
But '%px' can print the correct value, so seems the infoleak is still
there... BTW, kindly point me to the hashed address code part?
>
>
>         David
>
> -
> Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
> Registration No: 1397386 (Wales)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ