[Bug 1905393] [NEW] Ubuntu 20.04: opal-prd fails to start on 20.04
Launchpad Bug Tracker
1905393 at bugs.launchpad.net
Fri Dec 11 21:42:03 UTC 2020
You have been subscribed to a public bug by Matthieu Clemenceau (mclemenceau):
== Comment: #0 - VASANT HEGDE <hegdevasant at in.ibm.com> - 2020-11-23 23:23:22 ==
---Problem Description---
opal-prd fails to start on 20.04
Contact Information = Vasant hegde <hegdevasant at linux.vnet.ibm.com>
---uname output---
Ubuntu 20.04
Machine Type = All Power System
---Steps to Reproduce---
opal-prd fails to start on 20.04
Userspace tool common name: opal-prd
The userspace tool has the following bit modes: 64bit
Userspace rpm: opal-prd
This is fixed in upstream by below commit. Please backport this patch to
20.04 LTS release. Also applicable for 20.10.
commit 47005e8d4c9aeda5826c17c4a013cfbda1a3f2de
Author: Georgy Yakovlev <gyakovlev at gentoo.org>
Date: Mon Oct 12 14:29:17 2020 -0700
opal-prd: handle devtmpfs mounted with noexec
On systems using recent versions of systemd /dev (devtmpfs) is mounted with
noexec option. Such mount prevents mapping HBRT image code region as RWX
from /dev. This commit, as suggested in github PR linked below, attempts to
work around the situation by copying HBRT image to anon mmaped memory
region and sets mprotect rwx on it, allowing opal-prd to sucessfully
execute the code region.
Having memory region set as RWX is not ideal for security, but fixing that
is a separate and hard to solve problem. Original code also mmaped region
as RWX, so this PR does not make things worse at least.
Closes: https://github.com/open-power/skiboot/issues/258
Signed-off-by: Georgy Yakovlev <gyakovlev at gentoo.org>
Reviewed-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
[oliver: whitespace fix, add a comment, reflow commit message]
Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
-Vasant
** Affects: ubuntu-power-systems
Importance: Critical
Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Status: Triaged
** Affects: skiboot (Ubuntu)
Importance: Undecided
Assignee: Matthieu Clemenceau (mclemenceau)
Status: In Progress
** Affects: skiboot (Ubuntu Focal)
Importance: Undecided
Assignee: Matthieu Clemenceau (mclemenceau)
Status: New
** Affects: skiboot (Ubuntu Groovy)
Importance: Undecided
Assignee: Matthieu Clemenceau (mclemenceau)
Status: New
** Affects: skiboot (Ubuntu Hirsute)
Importance: Undecided
Assignee: Matthieu Clemenceau (mclemenceau)
Status: In Progress
** Tags: architecture-ppc64le bugnameltc-189959 fr-965 severity-critical targetmilestone-inin20041
--
Ubuntu 20.04: opal-prd fails to start on 20.04
https://bugs.launchpad.net/bugs/1905393
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list