Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

linux: make stack non-executable #7542

Closed
@bnoordhuis

Description

@bnoordhuis
$ grep stack /proc/$(pgrep node)/maps
7f8b0c120000-7f8b0c920000 rwxp 00000000 00:00 0                          [stack:19393]
7f8b0dcf4000-7f8b0dd04000 rwxp 00000000 00:00 0                          [stack:19397]
7f8b0dd05000-7f8b0dd15000 rwxp 00000000 00:00 0                          [stack:19396]
7f8b0dd16000-7f8b0dd26000 rwxp 00000000 00:00 0                          [stack:19395]
7f8b0dd27000-7f8b0dd3d000 rwxp 00000000 00:00 0                          [stack:19394]
7fffa3a0a000-7fffa3a2b000 rwxp 00000000 00:00 0                          [stack]

All threads seem to have executable stacks for no good reason as far as I can tell. Suggestion: link with -Wl,-z,noexecstack.

Affects v0.10 and master. Possibly affects other platforms as well, didn't check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions