Project

General

Profile

Actions

Bug #5444

closed

cannot exec from hsfs since 5405

Added by Hans Rosenfeld about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
High
Category:
kernel
Start date:
2014-12-17
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

The fix for 5405 disallowed all PROT_WRITE mappings on hsfs. When exec'ing ELF binaries, writable ELF sections are mapped with PROT_WRITE, meaning that execs will fail for binaries on hsfs.

It turns out not all PROT_WRITE mappings are problematic for hsfs. Only MAP_SHARED mappings are actually written back to the file, so only those should be refused by hsfs. The MAP_PRIVATE mappings as done by elfexec are actually harmless.

Actions #1

Updated by Electric Monk about 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 277b8dcb887b89d7465085652bc00d7842be2792

commit  277b8dcb887b89d7465085652bc00d7842be2792
Author: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Date:   2014-12-19T22:45:33.000Z

    5444 cannot exec from hsfs since 5405
    Reviewed by: Richard Lowe <richlowe@richlowe.net>
    Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
    Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF