-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If something unmaps the rr page, adjust traced_syscall_ip_ to use a d…
…ifferent syscall Resolves #3629
- Loading branch information
1 parent
ea7e165
commit 30fea4d
Showing
6 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1312,6 +1312,7 @@ set(BASIC_TESTS | |
timer | ||
timerfd | ||
times | ||
tracee_unmap_vdso | ||
truncate_temp | ||
tun | ||
two_signals_with_mask | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ | ||
|
||
#include "util.h" | ||
|
||
int main(void) { | ||
char* vdso = (char*)getauxval(AT_SYSINFO_EHDR); | ||
size_t page_size = sysconf(_SC_PAGESIZE); | ||
munmap(vdso, 4*page_size); | ||
|
||
pid_t child = fork(); | ||
if (!child) { | ||
return 77; | ||
} | ||
int status; | ||
int ret = waitpid(child, &status, 0); | ||
test_assert(ret == child); | ||
test_assert(WIFEXITED(status)); | ||
test_assert(WEXITSTATUS(status) == 77); | ||
|
||
atomic_puts("EXIT-SUCCESS"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
source `dirname $0`/util.sh | ||
# Unmapping the rr page breaks ssycallbuf; we don't support that. | ||
skip_if_syscall_buf | ||
# Unmapping the VDSO breaks all syscalls on 32-bit x86. | ||
skip_if_32_bit | ||
compare_test EXIT-SUCCESS |