Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Commit 6144751

Browse files
dvyukovshentubot
authored andcommitted
runsc/boot/filter: permit SYS_TIME for race
glibc's malloc also uses SYS_TIME. Permit it. #0 0x0000000000de6267 in time () #1 0x0000000000db19d8 in get_nprocs () #2 0x0000000000d8a31a in arena_get2.part () #3 0x0000000000d8ab4a in malloc () google#4 0x0000000000d3c6b5 in __sanitizer::InternalAlloc(unsigned long, __sanitizer::SizeClassAllocatorLocalCache<__sanitizer::SizeClassAllocator32<0ul, 140737488355328ull, 0ul, __sanitizer::SizeClassMap<3ul, 4ul, 8ul, 17ul, 64ul, 14ul>, 20ul, __sanitizer::TwoLevelByteMap<32768ull, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback> >*, unsigned long) () google#5 0x0000000000d4cd70 in __tsan_go_start () google#6 0x00000000004617a3 in racecall () google#7 0x00000000010f4ea0 in runtime.findfunctab () google#8 0x000000000043f193 in runtime.racegostart () Signed-off-by: Dmitry Vyukov <[email protected]> [[email protected]: updated comments and commit message] Signed-off-by: Michael Pratt <[email protected]> Change-Id: Ibe2d0dc3035bf5052d5fb802cfaa37c5e0e7a09a PiperOrigin-RevId: 203042627
1 parent 2821dfe commit 6144751

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runsc/boot/filter/extra_filters_race.go

+2
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ func instrumentationFilters() seccomp.SyscallRules {
3434
syscall.SYS_NANOSLEEP: {},
3535
syscall.SYS_OPEN: {},
3636
syscall.SYS_SET_ROBUST_LIST: {},
37+
// Used within glibc's malloc.
38+
syscall.SYS_TIME: {},
3739
}
3840
}

0 commit comments

Comments
 (0)