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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 20 Feb 2019 04:35:11 -0700
From:   William Kucharski <>
To:     Steven Price <>
Cc:     Linux-MM <>, Andy Lutomirski <>,
        Ard Biesheuvel <>,
        Arnd Bergmann <>, Borislav Petkov <>,
        Catalin Marinas <>,
        Dave Hansen <>,
        Ingo Molnar <>,
        James Morse <>,
        Jérôme Glisse <>,
        Peter Zijlstra <>,
        Thomas Gleixner <>,
        Will Deacon <>,
        "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <>,
        "H. Peter Anvin" <>,,
        linux-kernel <>
Subject: Re: [PATCH 06/13] mm: pagewalk: Add 'depth' parameter to pte_hole

> On Feb 15, 2019, at 10:02 AM, Steven Price <> wrote:
> The pte_hole() callback is called at multiple levels of the page tables.
> Code dumping the kernel page tables needs to know what at what depth
> the missing entry is. Add this is an extra parameter to pte_hole().
> When the depth isn't know (e.g. processing a vma) then -1 is passed.
> Note that depth starts at 0 for a PGD so that PUD/PMD/PTE retain their
> natural numbers as levels 2/3/4.

Nit: Could you add a comment noting this for anyone wondering how to
calculate the level numbers in the future?


Powered by blists - more mailing lists