As equested by several reviewers. Fixes: ca646ac417b8 ("x86/mm/debug_pagetables: Allow dumping current pagetables") Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> --- arch/x86/mm/debug_pagetables.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/x86/mm/debug_pagetables.c +++ b/arch/x86/mm/debug_pagetables.c @@ -81,18 +81,18 @@ static void pt_dump_debug_remove_files(v static int __init pt_dump_debug_init(void) { - pe_knl = debugfs_create_file("kernel_page_tables", S_IRUSR, NULL, NULL, + pe_knl = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL, &ptdump_fops); if (!pe_knl) return -ENOMEM; - pe_curknl = debugfs_create_file("current_page_tables_knl", S_IRUSR, + pe_curknl = debugfs_create_file("current_page_tables_knl", 0400, NULL, NULL, &ptdump_curknl_fops); if (!pe_curknl) goto err; #ifdef CONFIG_KAISER - pe_curusr = debugfs_create_file("current_page_tables_usr", S_IRUSR, + pe_curusr = debugfs_create_file("current_page_tables_usr", 0400, NULL, NULL, &ptdump_curusr_fops); if (!pe_curusr) goto err; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>