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  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, 8 Nov 2017 12:11:01 -0800
From:   Dave Hansen <>
To:     Linus Torvalds <>
Cc:     Linux Kernel Mailing List <>,
        linux-mm <>,
        Thomas Gleixner <>,,
        Daniel Gruss <>,,,
        Andrew Lutomirski <>,
        Kees Cook <>,
        Hugh Dickins <>,
        the arch/x86 maintainers <>
Subject: Re: [PATCH 01/30] x86, mm: do not set _PAGE_USER for init_mm page

On 11/08/2017 11:52 AM, Linus Torvalds wrote:
> On Wed, Nov 8, 2017 at 11:46 AM, Dave Hansen
> <> wrote:
>> +
>>  static inline void pmd_populate_kernel(struct mm_struct *mm,
>>                                        pmd_t *pmd, pte_t *pte)
>>  {
>> +       pteval_t pgtable_flags = mm_pgtable_flags(mm);
> Why is "pmd_populate_kernel()" using mm_pgtable_flags(mm)?
> It should just use _KERNPG_TABLE unconditionally, shouldn't it?
> Nothing to do with init_mm, it's populating a _kernel_ page table
> regardless, no?

The end result is probably the same since a quick grep shows it only
ever getting called with init_mm or NULL.  But, yeah, it should probably
just be _PAGE_KERNEL directly.

I'll update it.

Powered by blists - more mailing lists