lkml.org 
[lkml]   [2020]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] x86/mm/init: Stop printing pgt_buf addresses
    Date
    This currently leaks kernel physical addresses into userspace.

    Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
    ---
    arch/x86/mm/init.c | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
    index e7bb483557c9..dc4711f09cdc 100644
    --- a/arch/x86/mm/init.c
    +++ b/arch/x86/mm/init.c
    @@ -121,8 +121,6 @@ __ref void *alloc_low_pages(unsigned int num)
    } else {
    pfn = pgt_buf_end;
    pgt_buf_end += num;
    - printk(KERN_DEBUG "BRK [%#010lx, %#010lx] PGTABLE\n",
    - pfn << PAGE_SHIFT, (pgt_buf_end << PAGE_SHIFT) - 1);
    }

    for (i = 0; i < num; i++) {
    --
    2.24.1
    \
     
     \ /
      Last update: 2020-03-01 00:12    [W:2.733 / U:1.896 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site