Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys_sbrk does not match semantics of sbrk call #563

Open
cahirwpz opened this issue Oct 16, 2019 · 0 comments
Open

sys_sbrk does not match semantics of sbrk call #563

cahirwpz opened this issue Oct 16, 2019 · 0 comments

Comments

@cahirwpz
Copy link
Owner

cahirwpz commented Oct 16, 2019

sbrk should extend .bss segment instead of being kept in a separate vm_segment.
Moreover one cannot extend program's break above _etext + RLIMIT_DATA on one hand, and cannot shrink below _etext.

Can we drop a support for sbrk in the kernel altogether? Could we emulate it with mmap?

@cahirwpz cahirwpz added the accepted accepted by the maintainer for code review label Oct 16, 2019
@cahirwpz cahirwpz removed the accepted accepted by the maintainer for code review label Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant