aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/ia32/ia32_binfmt.c30
-rw-r--r--arch/x86_64/kernel/vsyscall.c6
-rw-r--r--arch/x86_64/mm/init.c24
3 files changed, 40 insertions, 20 deletions
diff --git a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c
index 6efe04f3cbca..071100ea1251 100644
--- a/arch/x86_64/ia32/ia32_binfmt.c
+++ b/arch/x86_64/ia32/ia32_binfmt.c
@@ -344,20 +344,30 @@ EXPORT_SYMBOL(ia32_setup_arg_pages);
344#include <linux/sysctl.h> 344#include <linux/sysctl.h>
345 345
346static ctl_table abi_table2[] = { 346static ctl_table abi_table2[] = {
347 { 99, "vsyscall32", &sysctl_vsyscall32, sizeof(int), 0644, NULL, 347 {
348 proc_dointvec }, 348 .ctl_name = 99,
349 { 0, } 349 .procname = "vsyscall32",
350}; 350 .data = &sysctl_vsyscall32,
351 .maxlen = sizeof(int),
352 .mode = 0644,
353 .proc_handler = proc_dointvec
354 },
355 {}
356};
351 357
352static ctl_table abi_root_table2[] = { 358static ctl_table abi_root_table2[] = {
353 { .ctl_name = CTL_ABI, .procname = "abi", .mode = 0555, 359 {
354 .child = abi_table2 }, 360 .ctl_name = CTL_ABI,
355 { 0 }, 361 .procname = "abi",
356}; 362 .mode = 0555,
363 .child = abi_table2
364 },
365 {}
366};
357 367
358static __init int ia32_binfmt_init(void) 368static __init int ia32_binfmt_init(void)
359{ 369{
360 register_sysctl_table(abi_root_table2, 1); 370 register_sysctl_table(abi_root_table2);
361 return 0; 371 return 0;
362} 372}
363__initcall(ia32_binfmt_init); 373__initcall(ia32_binfmt_init);
diff --git a/arch/x86_64/kernel/vsyscall.c b/arch/x86_64/kernel/vsyscall.c
index 2433d6fc68b1..313dc6ad780b 100644
--- a/arch/x86_64/kernel/vsyscall.c
+++ b/arch/x86_64/kernel/vsyscall.c
@@ -235,13 +235,13 @@ static ctl_table kernel_table2[] = {
235 .data = &sysctl_vsyscall, .maxlen = sizeof(int), .mode = 0644, 235 .data = &sysctl_vsyscall, .maxlen = sizeof(int), .mode = 0644,
236 .strategy = vsyscall_sysctl_nostrat, 236 .strategy = vsyscall_sysctl_nostrat,
237 .proc_handler = vsyscall_sysctl_change }, 237 .proc_handler = vsyscall_sysctl_change },
238 { 0, } 238 {}
239}; 239};
240 240
241static ctl_table kernel_root_table2[] = { 241static ctl_table kernel_root_table2[] = {
242 { .ctl_name = CTL_KERN, .procname = "kernel", .mode = 0555, 242 { .ctl_name = CTL_KERN, .procname = "kernel", .mode = 0555,
243 .child = kernel_table2 }, 243 .child = kernel_table2 },
244 { 0 }, 244 {}
245}; 245};
246 246
247#endif 247#endif
@@ -301,7 +301,7 @@ static int __init vsyscall_init(void)
301 BUG_ON((unsigned long) &vgetcpu != VSYSCALL_ADDR(__NR_vgetcpu)); 301 BUG_ON((unsigned long) &vgetcpu != VSYSCALL_ADDR(__NR_vgetcpu));
302 map_vsyscall(); 302 map_vsyscall();
303#ifdef CONFIG_SYSCTL 303#ifdef CONFIG_SYSCTL
304 register_sysctl_table(kernel_root_table2, 0); 304 register_sysctl_table(kernel_root_table2);
305#endif 305#endif
306 on_each_cpu(cpu_vsyscall_init, NULL, 0, 1); 306 on_each_cpu(cpu_vsyscall_init, NULL, 0, 1);
307 hotcpu_notifier(cpu_vsyscall_notifier, 0); 307 hotcpu_notifier(cpu_vsyscall_notifier, 0);
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c
index 2968b90ef8ad..ec31534eb104 100644
--- a/arch/x86_64/mm/init.c
+++ b/arch/x86_64/mm/init.c
@@ -711,20 +711,30 @@ int kern_addr_valid(unsigned long addr)
711extern int exception_trace, page_fault_trace; 711extern int exception_trace, page_fault_trace;
712 712
713static ctl_table debug_table2[] = { 713static ctl_table debug_table2[] = {
714 { 99, "exception-trace", &exception_trace, sizeof(int), 0644, NULL, 714 {
715 proc_dointvec }, 715 .ctl_name = 99,
716 { 0, } 716 .procname = "exception-trace",
717 .data = &exception_trace,
718 .maxlen = sizeof(int),
719 .mode = 0644,
720 .proc_handler = proc_dointvec
721 },
722 {}
717}; 723};
718 724
719static ctl_table debug_root_table2[] = { 725static ctl_table debug_root_table2[] = {
720 { .ctl_name = CTL_DEBUG, .procname = "debug", .mode = 0555, 726 {
721 .child = debug_table2 }, 727 .ctl_name = CTL_DEBUG,
722 { 0 }, 728 .procname = "debug",
729 .mode = 0555,
730 .child = debug_table2
731 },
732 {}
723}; 733};
724 734
725static __init int x8664_sysctl_init(void) 735static __init int x8664_sysctl_init(void)
726{ 736{
727 register_sysctl_table(debug_root_table2, 1); 737 register_sysctl_table(debug_root_table2);
728 return 0; 738 return 0;
729} 739}
730__initcall(x8664_sysctl_init); 740__initcall(x8664_sysctl_init);