linux-kernel-module-cheat
linux-kernel-module-cheat copied to clipboard
gem5 syscall emulation does not implement /proc/self/statm
As of LKMC 6936bd6ba996dee40f7cd826e5cf01ef39c2cabf and gem5 master 8549ee4a6dfc86a941cee0a478c01f6f2c146c3c:
./run -u userland/linux/mmap_anonymous_touch.c --emulator gem5 --gem5-worktree master --static
fails in our abort() call after our perror prints:
/proc/self/statm: No such file or directory
The abort() then makes the simulation fail slightly weirdly just as for failed asserts: https://github.com/cirosantilli/linux-kernel-module-cheat/issues/101