• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Overall: (3 cases)
2
3- Test method
4  * Add cases/soft-inj/panic_noser/cases.sh into configuration file, and invoke
5    a test driver on it.
6- Common
7  * Test script of test cases in this file can be found in
8    cases/soft-inj/panic_noser/cases.sh
9
101. uc_over
11
12- Objective:
13  * Test MSR read logic of MCE handler
14  * Test synchronization between monarch and subject
15  * Test logic of uncorrected with UC and OVER
16- Code path tested:
17  * do_machine_check()
18  * mce_start()
19  * mce_timeout() except if (*t <= 0) branch
20  * mce_log()
21  * mce_end()
22  * mce_severity()
23  * mce_reign() until mce_panic("Fatal Machine check",)
24  * mce_panic()
25  * print_mce()
26- Reference:
27  * Inject data file: cases/soft-inj/panic_noser/data/uc_over
28- Expected result:
29  * No warning or bug during kernel processing.
30  * MCE records collected via kernel panic log is same as reference ones.
31  * Kernel panic message is "Fatal Machine check"
32  * Exception message is "Overflowed uncorrected"
33
34
352. uc_over_corrected
36
37- Objective:
38  * Test synchronization between monarch and subject
39  * Test logic of uncorrected and corrected
40  * Test logic of uncorrected with UC and OVER
41  * Test logic of corrected with EXCP
42- Code path tested:
43  * do_machine_check()
44  * mce_start()
45  * mce_timeout() except if (*t <= 0) branch
46  * mce_log()
47  * mce_end()
48  * mce_severity()
49  * mce_reign() until mce_panic("Fatal Machine check",)
50  * mce_panic()
51  * print_mce()
52- Reference:
53  * Inject data file: cases/soft-inj/panic_noser/data/uc_over_corrected
54- Expected result:
55  * No warning or bug during kernel processing.
56  * MCE records collected via kernel panic log is same as reference ones.
57  * Kernel panic message is "Fatal Machine check"
58  * Exception message is "Overflowed uncorrected"
59
60
613. uc_over_timeout
62
63- Objective:
64  * Test logic of timeout during monarch/subject synchronization
65  * Test logic of uncorrected with UC and OVER
66- Code path tested:
67  * do_machine_check()
68  * mce_start()
69  * mce_timeout() if (*t <= 0) branch
70  * mce_log()
71  * mce_severity()
72  * mce_panic("Fatal machine check on current CPU",)
73  * print_mce()
74- Reference:
75  * Inject data file: cases/soft-inj/panic_noser/data/uc_over_timeout
76- Expected result:
77  * No warning or bug during kernel processing.
78  * MCE records collected via kernel panic log is same as reference ones.
79  * Kernel panic message is "Fatal machine check on current CPU"
80  * Exception message is "Overflowed uncorrected"
81  * Timeout message is "Some CPUs didn't answer in synchronization"
82
83
84