OSDN Git Service

powerpc/powernv: Restrict OPAL symbol map to only be readable by root
authorAndrew Donnellan <ajd@linux.ibm.com>
Fri, 3 May 2019 07:52:53 +0000 (17:52 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2019 20:40:53 +0000 (13:40 -0700)
commitcc5d103da4446aa95630d906f4e16fe703d78114
treea7919712939d5b2780148da43cdfc537c9fa49f6
parentd4a8a6d767cecd4d637e061e6baabcf2e6c89c20
powerpc/powernv: Restrict OPAL symbol map to only be readable by root

commit e7de4f7b64c23e503a8c42af98d56f2a7462bd6d upstream.

Currently the OPAL symbol map is globally readable, which seems bad as
it contains physical addresses.

Restrict it to root.

Fixes: c8742f85125d ("powerpc/powernv: Expose OPAL firmware symbol map")
Cc: stable@vger.kernel.org # v3.19+
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190503075253.22798-1-ajd@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/opal.c