x86/fault: Make fault messages more succinct
authorBorislav Petkov <bp@suse.de>
Sun, 21 Apr 2019 18:35:24 +0000 (20:35 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 21 Apr 2019 18:48:51 +0000 (20:48 +0200)
commitea2f8d60603efbd1cb4e193a593945a2fe24d264
tree0f5050212fe4a52ff097ace44aee62da6c498007
parent18ea35c5ed9921867194a8efc2a0ac2d5a3c7d2a
x86/fault: Make fault messages more succinct

So we are going to be staring at those in the next years, let's make
them more succinct. In particular:

 - change "address = " to "address: "

 - "-privileged" reads funny. It should be simply "kernel" or "user"

 - "from kernel code" reads funny too. "kernel mode" or "user mode" is
   more natural.

An actual example says more than 1000 words, of course:

  [    0.248370] BUG: kernel NULL pointer dereference, address: 00000000000005b8
  [    0.249120] #PF: supervisor write access in kernel mode
  [    0.249717] #PF: error_code(0x0002) - not-present page

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: dave.hansen@linux.intel.com
Cc: luto@kernel.org
Cc: riel@surriel.com
Cc: sean.j.christopherson@intel.com
Cc: yu-cheng.yu@intel.com
Link: http://lkml.kernel.org/r/20190421183524.GC6048@zn.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/fault.c