]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
powerpc/rtas: Fix typo of ibm,open-errinjct in RTAS filter
authorTyrel Datwyler <tyreld@linux.ibm.com>
Tue, 8 Dec 2020 19:54:34 +0000 (13:54 -0600)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 20 Jan 2021 13:26:26 +0000 (14:26 +0100)
commitc88871d71a4302945ce76b2ff5a4df6185b89a17
tree36819057427a25c8dc542c13a9207942132d521b
parent96a247441c34526f052fc63f57051652c4f3f429
powerpc/rtas: Fix typo of ibm,open-errinjct in RTAS filter

BugLink: https://bugs.launchpad.net/bugs/1910822
commit f10881a46f8914428110d110140a455c66bdf27b upstream.

Commit bd59380c5ba4 ("powerpc/rtas: Restrict RTAS requests from userspace")
introduced the following error when invoking the errinjct userspace
tool:

  [root@ltcalpine2-lp5 librtas]# errinjct open
  [327884.071171] sys_rtas: RTAS call blocked - exploit attempt?
  [327884.071186] sys_rtas: token=0x26, nargs=0 (called by errinjct)
  errinjct: Could not open RTAS error injection facility
  errinjct: librtas: open: Unexpected I/O error

The entry for ibm,open-errinjct in rtas_filter array has a typo where
the "j" is omitted in the rtas call name. After fixing this typo the
errinjct tool functions again as expected.

  [root@ltcalpine2-lp5 linux]# errinjct open
  RTAS error injection facility open, token = 1

Fixes: bd59380c5ba4 ("powerpc/rtas: Restrict RTAS requests from userspace")
Cc: stable@vger.kernel.org
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201208195434.8289-1-tyreld@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/powerpc/kernel/rtas.c