I found out that a simple program makes a Linux Hyper-V instance crash.
The program that crashes.
- it is simple. creates threads, sets ldt entry, stores it to fs register, and does simple work.
- you can find it on my github. (https://github.com/jonhpark7966/test_codes)
Linux versions that is installed over hyper-v
- 4.18.20 has no problem, but 4.19-rc1 crashes
- 64bit also has no probelm, but 32bit crashes
Jong Hyun Park
I tested with "nopti" option as a kernel parameter, then this problem does not happen.
I asked to Tianyu Lan <Tianyu.Lan@microsoft.com> about this issue,
because he commited some codes about hyper-v at 4.19-rc1 version.
He noticed me about this page table isolation issues. thanks to Lan.
I also tested on vmware, but it works well.
The issue has been fixed in v5.3 by commit 4030b4c58 x86/hyper-v: Fix overflow bug in fill_gva_list().
The issue has been resolved!