fork and fork bomb moved in from cpp-cheat

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-11-12 00:00:00 +00:00
parent 762cd8d601
commit ca47a77676
4 changed files with 191 additions and 6 deletions

View File

@@ -127,6 +127,27 @@ class PathProperties:
},
}
# TODO wire up.
unimplemented_userland_syscalls = {
'gem5': {
'all': {
'wait',
},
'arm': {
},
'x86_64': {
},
},
'qemu': {
'all': {
},
'arm': {
},
'x86_64': {
},
},
}
'''
Encodes properties of userland and baremetal paths.
For directories, it applies to all files under the directory.
@@ -620,6 +641,14 @@ path_properties_tuples = (
'baremetal': True,
'signal_received': signal.Signals.SIGHUP,
},
'fork.c': {
# wait
'gem5_unimplemented_syscall': True
},
'mmap_file.c': {
# https://github.com/cirosantilli/linux-kernel-module-cheat/issues/102
'gem5_unimplemented_syscall': True
},
'pthread_count.c': {
'more_than_1s': True,
'test_run_args': {'cpus': 2},
@@ -627,12 +656,8 @@ path_properties_tuples = (
'pthread_self.c': {
'test_run_args': {'cpus': 2},
},
'mmap_file.c': {
# https://github.com/cirosantilli/linux-kernel-module-cheat/issues/102
'gem5_unimplemented_syscall': True
},
'wget.c': {'requires_internet': True},
'sleep_forever.c': {'more_than_1s': True},
'wget.c': {'requires_internet': True},
'virt_to_phys_test.c': {'more_than_1s': True},
}
),