Re: [PATCH] compat: remove compat_printk

From: Andrew Morton
Date: Tue Jun 21 2016 - 19:40:21 EST


On Fri, 17 Jun 2016 16:26:21 +0200 Arnd Bergmann <arnd@xxxxxxxx> wrote:

> After 7e8e385aaf6e ("x86/compat: Remove sys32_vm86_warning"), this
> function has become unused, so we can remove it as well.

hm,

> @@ -1077,15 +1076,6 @@ static struct ctl_table kern_table[] = {
> .extra1 = &neg_one,
> },
> #endif
> -#ifdef CONFIG_COMPAT
> - {
> - .procname = "compat-log",
> - .data = &compat_log,
> - .maxlen = sizeof (int),
> - .mode = 0644,
> - .proc_handler = proc_dointvec,
> - },
> -#endif

How do we know we can simply remove /proc/sys/kernel/compat-log without
breaking any userspace?