• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Overall:(8 cases)
2
3- Test method
4  * Preparation
5    + Disable mcelog cron job
6  * Add cases/soft-inj/panic_npcc/cases.sh into configuration file, and invoke
7    a test driver on it.
8- Common
9  * Test script of test cases in this file can be found in
10    cases/soft-inj/panic_npcc/cases.sh
11
12
131. fatal severity
14
15- Objective:
16  * Test severity comparison logic of MCE handler
17- Code path tested:
18  * do_machine_check()
19  * mce_start()
20  * mce_end()
21  * mce_severity()
22  * mce_regin() for_each_possible_loops loops(check mce-severity message)
23  * mce_panic()
24  * mce_log()
25  * print_mce()
26- Reference:
27  * Inject data file: cases/soft-inj/panic_npcc/data/fatal_severity
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 "Processor context corrupt"
33
34
352. uncorrected
36
37- Objective:
38  * Test MCE handler logic for EIPV MCE in kernel space
39- Code path tested:
40  * Same as falta severity
41- Reference:
42  * Inject data file: cases/soft-inj/panic_npcc/data/uncorrected
43- Expected result:
44  * No warning or bug during kernel processing.
45  * MCE records collected via kernel panic log is same as reference ones.
46  * Kernel panic message is "Fatal Machine check"
47  * Exception message is "In kernel and no restart IP"
48
49
503. uncorrected timeout
51
52- Objective:
53  * Test MCE handler timeout logic for EIPV MCE in kernel space
54- Code path tested:
55  * do_machine_check()
56  * mce_start() until timeout
57  * mce_severity()
58  * mce_panic("Fatal machine check on current CPU", )
59  * mce_log()
60  * print_mce()
61- Reference:
62  * Inject data file: cases/soft-inj/panic_npcc/data/uncorrected_timeout
63- Expected result:
64  * No warning or bug during kernel processing.
65  * MCE records collected via kernel panic log is same as reference ones.
66  * Kernel panic message is "Fatal machine check on current CPU"
67  * Exception message is "In kernel and no restart IP"
68  * Timeout message is "Some CPUs didn't answer in synchronization"
69
70
714. uncorrected without MCIP
72
73- Objective:
74  * Test MCE handler logic for MCE without PCC, MCIP, EIPV and RIPV
75- Code path tested:
76  * Same as fatal severity
77- Reference:
78  * Inject data file: cases/soft-inj/panic_npcc/data/uncorrected_no_mcip
79- Expected result:
80  * No warning or bug during kernel processing.
81  * MCE records collected via kernel panic log is same as reference ones.
82  * Kernel panic message is "Fatal Machine check"
83  * Exception message is "MCIP not set in MCA handler"
84
85
865. uncorrect timeout without MCIP
87
88- Objective:
89  * Test MCE handler timeout logic for MCE without PCC, MCIP, EIPV and RIPV
90- Code path tested:
91  * Same as uncorrected timeout
92- Reference:
93  * Inject data file: cases/soft-inj/panic_npcc/data/uncorrected_no_mcip_timeout
94- Expected result:
95  * No warning or bug during kernel processing.
96  * MCE records collected via kernel panic log is same as reference ones.
97  * Kernel panic message is "Fatal machine check on current CPU"
98  * Kernel panic message is "MCIP not set in MCA handler"
99  * Timeout message is "Some CPUs didn't answer in synchronization"
100
101
1026. uncorrected without EIPV and RIPV
103
104- Objective:
105  * Test MCE handler logic for EIPV and RIPV MCE in kernel space
106- Code path tested:
107  * Same as uncorrected
108- Reference:
109  * Inject data file: cases/soft-inj/panic_npcc/data/uncorrected_no_eripv
110- Expected result:
111  * No warning or bug during kernel processing.
112  * MCE records collected via kernel panic log is same as reference ones.
113  * Kernel panic message is "Fatal Machine check"
114  * Exception message is "Neither restart nor error IP"
115
116
1177. uncorrected timeout without EIPV and RIPV
118
119- Objective:
120  * Test MCE handler timout logic for EIPV|RIPV MCE in kernel space
121- Code path tested:
122  * Same as uncorrected timeout
123- Reference:
124  * Inject data file: cases/soft-inj/panic_npcc/data/uncorrected_no_eripv_timeout
125- Expected result:
126  * No warning or bug during kernel processing.
127  * MCE records collected via kernel panic log is same as reference ones.
128  * Kernel panic message is "Fatal Machine check"
129  * Exception message is "In kernel and no restart IP"
130  * Timeout message is "Some CPUs didn't answer in synchronization"
131
132
1338. unknown
134
135- Objective:
136  * Test logic for MCE from unknown source (external?)
137- Code path tested:
138  * mce_reign(), mce_panic("Machine check from unknown source") branch
139  * Others are same as fatal severity
140- Reference:
141  * Inject data file: cases/soft-inj/panic_npcc/data/unknown
142- Expected result:
143  * No warning or bug during kernel processing.
144  * Kernel panic message is "Machine check from unknown source"
145  * No exception and timeout message.
146