Test "Error handling improvement" on arm64

The following test set:
  execve: fix memory leak
  add: NULL check for master_channel at IKC interrupt_handler.
  Fix the check routine for elf sections (Fujitsu: POSTK_TEMP_FIX_77)

Change-Id: I16c2a341c48f6df10a4839be08b93ea16bda8fbe
Refs: #727
Refs: #873
Refs: #1011
This commit is contained in:
Shiratori, Takehiro
2018-12-04 17:09:33 +09:00
committed by Masamichi Takagi
parent ec844bb6e3
commit 95e90c727e
22 changed files with 830 additions and 60 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c
index 2d0d50e..9f109aa 100644
--- a/executer/user/mcexec.c
+++ b/executer/user/mcexec.c
@@ -470,7 +470,7 @@ struct program_load_desc *load_interp(struct program_load_desc *desc0, FILE *fp)
j++;
}
}
- desc->num_sections = j;
+ desc->num_sections = -1; // Test for num_secionts check Issue#1011
desc->entry = hdr.e_entry;
desc->interp_align = align;

View File

@@ -0,0 +1,17 @@
■ Issue#1011 動作確認
1. ファイルの説明
1011.patch mcexec からmcctrl.ko に渡すprogram_load_des構造体のnum_sections に
常に-1 を設定するパッチ
2. 確認方法
1. 上記パッチを適用していない状態でMcKernelを起動する
2. mcexec hostname を実行し、ホスト名が表示されることを確認する
3. 上記パッチをMcKernelに適用後、ビルドと起動を行う
4. mcexec hostname を実行し、ホスト名が表示されず、"prepare: Invalid argument"が
コンソールに出力されることを確認する
5. /var/log/messages に"kernel: mcexec_prepare_image: ERROR: # of sections: -1"が
出力されていることを確認する
3. 確認結果
上記確認方法で期待される動作が確認できたため、問題ない。