]> git.baikalelectronics.ru Git - kernel.git/commit
vsprintf: Turn kptr_restrict off by default
authorIngo Molnar <mingo@elte.hu>
Thu, 12 May 2011 21:00:28 +0000 (23:00 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 May 2011 22:18:16 +0000 (15:18 -0700)
commit0615e7c6231db9fde8e6de6ad817b33c4af35aa4
tree63fa10cd8d895c36bbbacd8c5b38b25e3e1f3448
parent8170eb010e52443d2e6c7cc2cf3250c5524808ac
vsprintf: Turn kptr_restrict off by default

kptr_restrict has been triggering bugs in apps such as perf, and it also makes
the system less useful by default, so turn it off by default.

This is how we generally handle security features that remove functionality,
such as firewall code or SELinux - they have to be configured and activated
from user-space.

Distributions can turn kptr_restrict on again via this line in
/etc/sysctrl.conf:

kernel.kptr_restrict = 1

( Also mark the variable __read_mostly while at it, as it's typically modified
  only once per bootup, or not at all. )

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c