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

[P3] Stack corruption for parent process when fork() syscall is called #79

Closed
aperdeus opened this issue Jul 7, 2023 · 3 comments
Closed

Comments

@aperdeus
Copy link

aperdeus commented Jul 7, 2023

The following test which checks if the stack has been properly copied for the child process created by fork() should not fail.
It fails on gcc and clang.

#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

#include "../../../common/syscalls/syscalls.h"

#define assert(x) if (!(x)) { asm(".byte 0x00"); asm(".byte 0x00"); asm(".byte 0x00"); asm(".byte 0x00"); }
int main() {
  int valOnStack = 1;
  rev_fork();
  assert(valOnStack==1);
  valOnStack = 0;

  return 0;
}
@rkabrick
Copy link
Collaborator

We are working on architecting a new SMT implementation which will fix this

@aperdeus aperdeus changed the title Stack corruption for parent process when fork() syscall is called [P1] Stack corruption for parent process when fork() syscall is called Aug 1, 2023
@aperdeus aperdeus changed the title [P1] Stack corruption for parent process when fork() syscall is called [P3] Stack corruption for parent process when fork() syscall is called Aug 1, 2023
@jleidel
Copy link
Contributor

jleidel commented Sep 28, 2023

is this still an issue?

@jleidel
Copy link
Contributor

jleidel commented Oct 25, 2023

closing due to no response

@jleidel jleidel closed this as completed Oct 25, 2023
leekillough pushed a commit to leekillough/rev that referenced this issue Apr 26, 2024
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

3 participants