Lines Matching full:bug
49 def get_sysfs(bug): argument
50 return read_file("/sys/devices/system/cpu/vulnerabilities/" + bug)
52 def sysfs_has(bug, mitigation): argument
53 status = get_sysfs(bug)
59 for bug in bugs:
61 if sysfs_has(bug, mitigation):
69 for bug in bugs:
71 if not sysfs_has(bug, mitigation):
75 def bug_check_pass(bug, found): argument
78 ksft.test_result_pass(f'{bug}: {found}')
80 def bug_check_fail(bug, found, expected): argument
84 ksft.test_result_fail(f'{bug}: {found}')
86 def bug_status_unknown(bug, found): argument
89 ksft.test_result_fail(f'{bug}: {found}')
91 def basic_checks_sufficient(bug, mitigation): argument
93 bug_status_unknown(bug, "None")
96 ksft.test_result_pass(bug)
99 if cmdline_has_either([f'{bug}=off', 'mitigations=off']):
100 bug_check_pass(bug, mitigation)