hyperlight-dev / hyperlight-dev/hyperlight

Self-modifying code should crash on modification

オープン
#562 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area/security lifecycle/confirmed
主要言語
Rust
スター
4.7k
フォーク
208
平均マージ
1日 7時間
マージ済み PR(30日)
47

説明

### What happened?

For defense in depth, attempts to write to code segments should abort the guest.

### What did you expect to happen?

I expected a crash, but instead the modification was successful.

### Steps to reproduce the behavior

The following test should crash when run in a guest:

```c
void victim() {}

void should_crash() {
void (*victim_ptr)() = victim;
*((char *)victim_ptr) = 0;
}
```

### Hyperlight Version

0.5.1

### OS version

```console
$ cat /etc/os-release
NAME="Microsoft Azure Linux"
VERSION="3.0.20250521"
ID=azurelinux
VERSION_ID="3.0"
PRETTY_NAME="Microsoft Azure Linux 3.0"
ANSI_COLOR="1;34"
HOME_URL="https://aka.ms/azurelinux"
BUG_REPORT_URL="https://aka.ms/azurelinux"
SUPPORT_URL="https://aka.ms/azurelinux"
$ uname -a
Linux 75b2257d5bbb 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux````

### Additional Information

_No response_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。