Patch "x86/mm/dump_pagetables: Add page table directory to the debugfs VFS hierarchy" has been added to the 4.14-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
x86/mm/dump_pagetables: Add page table directory to the debugfs VFS hierarchy
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
x86-mm-dump_pagetables-add-page-table-directory-to-the-debugfs-vfs-hierarchy.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
75298aa179d56cd64f54e58a19fffc8ab922b4c0Mon Sep 17 00:00:00 2001
From: Borislav Petkov <[email protected]>
Date: Mon, 4 Dec 2017 15:08:04 +0100
Subject: x86/mm/dump_pagetables: Add page table directory to the debugfs VFS hierarchy
From: Borislav Petkov <[email protected]>
commit 75298aa179d56cd64f54e58a19fffc8ab922b4c0 upstream.
The upcoming support for dumping the kernel and the user space page tables of the current process would create more random files in the top level debugfs directory.
Add a page table directory and move the existing file to it.
--- arch/x86/mm/debug_pagetables.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
arch/x86/mm/debug_pagetables.c +10 -5
@@ -22,21 +22,26 @@ static const struct file_operations ptdu .release = single_release, }; -static struct dentry *pe; +static struct dentry *dir, *pe;static int __init pt_dump_debug_init (void ) { - pe =debugfs_create_file ("kernel_page_tables" ,S_IRUSR ,NULL ,NULL , - &ptdump_fops); -if (!pe) + dir =debugfs_create_dir ("page_tables" ,NULL ); +if (!dir)return -ENOMEM ; + pe =debugfs_create_file ("kernel" ,0400 , dir,NULL , &ptdump_fops); +if (!pe) + goto err;return 0 ; +err: +debugfs_remove_recursive (dir); +return -ENOMEM ; } static void __exit pt_dump_debug_exit(void) { -debugfs_remove_recursive (pe); +debugfs_remove_recursive (dir); }module_init (pt_dump_debug_init);
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/x86-mm-pti-allow-nx-poison-to-be-set-in-p4d-pgd.patch queue-4.14/x86-mm-pti-force-entry-through-trampoline-when-pti-active.patch queue-4.14/x86-mm-pti-disable-global-pages-if-page_table_isolation-y.patch queue-4.14/x86-mm-pti-add-infrastructure-for-page-table-isolation.patch queue-4.14/x86-mm-pti-prepare-the-x86-entry-assembly-code-for-entry-exit-cr3-switching.patch queue-4.14/x86-pti-add-the-pti-cmdline-option-and-documentation.patch queue-4.14/x86-mm-pti-allocate-a-separate-user-pgd.patch queue-4.14/x86-mm-pti-populate-user-pgd.patch queue-4.14/x86-mm-dump_pagetables-add-page-table-directory-to-the-debugfs-vfs-hierarchy.patch