Skip to content

brk does not count the data segment toward RLIMIT_DATA #487

Open

Description

@xalestar

Linux's check_data_rlimit holds (brk - start_brk) + (end_data - start_data) to the soft RLIMIT_DATA. elfuse (after #485) holds only brk - brk_base, because it does not record start_data/end_data. A break can then grow past the limit by up to the size of the data segment. A fix would record both values in the ELF loader and carry them through execve and the fork state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions