1Overall: (6 cases) 2 3- Test method 4 * Add cases/soft-inj/panic_ucr/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_ucr/cases.sh 9 101. s0_ar1 11 12- Objective: 13 * Test MSR read logic of MCE handler 14 * Test synchronization between monarch and subject 15- Code path tested: 16 * do_machine_check() 17 * mce_start() 18 * mce_timeout() except if (*t <= 0) branch 19 * mce_log() 20 * mce_end() 21 * mce_severity() 22 * mce_reign() until mce_panic("Fatal Machine check",) 23 * mce_panic() 24 * print_mce() 25- Reference: 26 * Inject data file: cases/soft-inj/panic_ucr/data/s0_ar1 27- Expected result: 28 * No warning or bug during kernel processing. 29 * MCE records collected via kernel panic log is same as reference ones. 30 * Kernel panic message is "Fatal Machine check" 31 * Exception message is "Illegal combination (UCNA with AR=1)" 32 33 342. srar_over 35 36- Objective: 37 * Test logic of timeout during monarch/subject synchronization 38- Code path tested: 39 * do_machine_check() 40 * mce_start() 41 * mce_timeout() except if (*t <= 0) branch 42 * mce_log() 43 * mce_end() 44 * mce_severity() 45 * mce_reign() until mce_panic("Fatal Machine check",) 46 * mce_panic(); 47 * print_mce() 48- Reference: 49 * Inject data file: cases/soft-inj/panic_ucr/data/srar_over 50- Expected result: 51 * No warning or bug during kernel processing. 52 * MCE records collected via kernel panic log is same as reference ones. 53 * Kernel panic message is "Fatal Machine check" 54 * Exception message is "Action required with lost events" 55 56 573. srar_unknown 58 59- Objective: 60 * Test fatal MCE occur in IRQ context 61- Code path tested: 62 * do_machine_check() 63 * mce_start() 64 * mce_timeout() except if (*t <= 0) branch 65 * mce_log() 66 * mce_end() 67 * mce_severity() 68 * mce_reign() until mce_panic("Fatal Machine check",) 69 * mce_panic() 70 * print_mce() 71- Reference: 72 * Inject data file: cases/soft-inj/panic_ucr/data/srar_unknown 73- Expected result: 74 * No warning or bug during kernel processing. 75 * MCE records collected via kernel panic log is same as reference ones. 76 * Kernel panic message is "Fatal Machine check" 77 * Exception message is "Action required; unknown MCACOD" 78 79 804. srar_no_en 81 82- Objective: 83 * Test fatal MCE occur 84- Code path tested: 85 * do_machine_check() 86 * mce_start() 87 * mce_timeout() except if (*t <= 0) branch 88 * mce_log() 89 * mce_end() 90 * mce_severity() 91 * mce_reign() until mce_panic("Machine check from unknown source",) 92 * mce_panic() 93 * print_mce() 94- Reference: 95 * Inject data file: cases/soft-inj/panic_ucr/data/srar_no_en 96 * Reference MCE records: cases/soft-inj/panic_ucr/refer/srar_no_en 97- Expected result: 98 * No warning or bug during kernel processing. 99 * MCE records collected via kernel panic log is same as reference ones. 100 * Kernel panic message is "Machine check from unknown source" 101 1025.srao_ewb_noripv 103- Objective: 104 * Test MCE handler logic for EIPV and RIPV MCE in kernel space 105- Code path tested: 106 * do_machine_check() 107 * mce_start() 108 * mce_end() 109 * mce_severity() 110 * mce_regin() for_each_possible_loops loops(check mce-severity message) 111 * mce_panic() 112 * mce_log() 113 * print_mce() 114- Reference: 115 * Inject data file: cases/soft-inj/recoverable_ucr/data/srao_ewb_noripv 116- Expected result: 117 * No warning or bug during kernel processing. 118 * MCE records collected via kernel panic log is same as reference ones. 119 * Kernel panic message is "Fatal Machine check" 120 * Exception message is "Neither restart nor error IP" 121 1226.srao_mem_scrub_noripv 123- Objective: 124 * Test MCE handler logic for EIPV and RIPV MCE in kernel space 125- Code path tested: 126 * the same as srao_ewb_noripv 127- Reference: 128 * Inject data file: 129 * cases/soft-inj/recoverable_ucr/data/srao_mem_scrub_noripv 130- Expected result: 131 * No warning or bug during kernel processing. 132 * MCE records collected via kernel panic log is same as reference ones. 133 * Kernel panic message is "Fatal Machine check" 134 * Exception message is "Neither restart nor error IP" 135 136