From: Jordan Niethe <hidden> Date: 2019-02-27 03:04:21
Currently the opal log is globally readable. It is kernel policy to limit
the visibility of physical addresses / kernel pointers to root.
Given this and the fact the opal log may contain this information it would
be better to limit the readability to root.
Signed-off-by: Jordan Niethe <redacted>
---
arch/powerpc/platforms/powernv/opal-msglog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Stewart Smith <hidden> Date: 2019-02-27 04:01:26
Jordan Niethe [off-list ref] writes:
Currently the opal log is globally readable. It is kernel policy to limit
the visibility of physical addresses / kernel pointers to root.
Given this and the fact the opal log may contain this information it would
be better to limit the readability to root.
Signed-off-by: Jordan Niethe <redacted>
Yeah, this is a really good idea.
Reviewed-by: Stewart Smith <redacted>
--
Stewart Smith
OPAL Architect, IBM.
From: Andrew Donnellan <hidden> Date: 2019-02-27 04:19:31
On 27/2/19 2:02 pm, Jordan Niethe wrote:
Currently the opal log is globally readable. It is kernel policy to limit
the visibility of physical addresses / kernel pointers to root.
Given this and the fact the opal log may contain this information it would
be better to limit the readability to root.
Signed-off-by: Jordan Niethe <redacted>
Guess I'll have to get used to typing sudo more often. :(
Makes sense also given that we do the same thing for exports afaict.
Reviewed-by: Andrew Donnellan <redacted>
--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan@au1.ibm.com IBM Australia Limited
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2019-02-27 11:56:53
Jordan Niethe [off-list ref] writes:
Currently the opal log is globally readable. It is kernel policy to limit
the visibility of physical addresses / kernel pointers to root.
Given this and the fact the opal log may contain this information it would
be better to limit the readability to root.
Yikes, thanks for fixing that.
I'll add a Fixes: tag and Cc stable.
I also see symbol_map is 0444, I think that should be fixed too.
cheers
From: Michael Ellerman <hidden> Date: 2019-02-28 09:35:32
On Wed, 2019-02-27 at 03:02:29 UTC, Jordan Niethe wrote:
Currently the opal log is globally readable. It is kernel policy to limit
the visibility of physical addresses / kernel pointers to root.
Given this and the fact the opal log may contain this information it would
be better to limit the readability to root.
Signed-off-by: Jordan Niethe <redacted>
Reviewed-by: Stewart Smith <redacted>
Reviewed-by: Andrew Donnellan <redacted>