Vikas Amar Tikoo

Results 19 issues of Vikas Amar Tikoo

We have a static [process_times ](https://github.com/deislabs/mystikos/blob/main/kernel/times.c#L19)variable in kernel/times.c which is tracking the time for the main process. This is insufficient after posix_spawn/fork/vfork support. This affects reporting for SYS_times, SYS_getrusage, /proc/[pid]/stat.

status/triaged
area/kernel
severity/moderate

If a program aborts or segfaults when run with mystikos, we don't get a chance to clean /tmp files.

status/triaged
type/bug
area/target
severity/moderate

``` vitikoo@vitikoo-icelake:/mnt/code/mystikos$ mkdir scratch vitikoo@vitikoo-icelake:/mnt/code/mystikos$ cd scratch/ vitikoo@vitikoo-icelake:/mnt/code/mystikos/scratch$ ../scripts/appbuilder -i ubuntu vitikoo@vitikoo-icelake:/mnt/code/mystikos/scratch$ ../build/bin/myst mkext2 appdir rootfs vitikoo@vitikoo-icelake:/mnt/code/mystikos/scratch$ ../build/bin/myst exec rootfs /bin/bash mystikos: warn: exec.c(1149): myst_exec(): The thread stack size may...

status/triaged
type/feature
area/kernel
severity/moderate

Python memory allocator usage is proportional to number of cores. With current 256m setting, this leaves insufficient memory for OpenBLAS(used by numpy) allocations on ICX machines. OpenBLAS code doesn't seem...

This test has already been disabled for cpython 3.10 in https://github.com/deislabs/mystikos/commit/d0e8f7bfe89e6ecd6673b3f872745057d76f6ea5. Similar fix is needed for cpython 3.9. ``` [2023-07-25T08:21:02.161Z] *** kernel panic: syscall.c(7828): _syscall(): unknown syscall: SYS_pidfd_open(): 434 [2023-07-25T08:21:02.161Z]...

Sometimes test_poll2 calls mmap from a child process before execve, a scenario not supported in Mystikos ``` [2023-07-25T08:31:36.429Z] *** kernel panic: syscall.c(3659): _SYS_mmap(): mmap unsupported: pseudo fork process is calling...

While running numpy_core_tests, following symbols are missing - $readelf --relocs appdir/usr/lib/x86_64-linux-gnu/libgcc_s.so.1 | grep dl_find_object 00000001f108 000e00000007 R_X86_64_JUMP_SLO 0000000000000000 **_dl_find_object@GLIBC_2.35** + 0 $readelf --relocs appdir/usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep arc4random 000000214150 000900000007 R_X86_64_JUMP_SLO...

When running numpy core tests, dynamically loading ld-linux fails with - ``` Error relocating /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2: unsupported relocation type 37 ``` Version info - ``` $strings appdir/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 | grep version |...

#### Usecase: User application wants to verify mrsigner, mrenclave information at runtime. #### High level solution: Mystikos exposes OE functions to fetch and parse raw SGX report via syscalls. SYS_myst_oe_get_report_v2...