aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-10-12 14:29:17 -0700
committerOliver O'Halloran <oohall@gmail.com>2020-10-15 13:35:16 +1100
commit47005e8d4c9aeda5826c17c4a013cfbda1a3f2de (patch)
treefe1e52cc95293236fe521bab629180e988fd57b4 /platforms
parentf4c2dae830ed3dca39562b96ff0231001c802ef5 (diff)
downloadskiboot-47005e8d4c9aeda5826c17c4a013cfbda1a3f2de.zip
skiboot-47005e8d4c9aeda5826c17c4a013cfbda1a3f2de.tar.gz
skiboot-47005e8d4c9aeda5826c17c4a013cfbda1a3f2de.tar.bz2
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@gentoo.org> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [oliver: whitespace fix, add a comment, reflow commit message] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'platforms')
0 files changed, 0 insertions, 0 deletions