mirror of
				https://github.com/speed47/spectre-meltdown-checker.git
				synced 2025-10-31 20:50:55 +01:00 
			
		
		
		
	fix(retpoline): remove the "retpoline enabled" test
This test worked for some early versions of the retpoline implementation in vanilla kernels, but the corresponding flag has been removed from /proc/cpuinfo in latest kernels. The full information is available in /sys instead, which was already implemented in the script.
This commit is contained in:
		| @@ -1583,19 +1583,6 @@ check_variant2() | ||||
| 				pstatus red NO | ||||
| 			fi | ||||
| 		fi | ||||
|  | ||||
| 		_info_nol "  * Retpoline enabled: " | ||||
| 		if [ "$opt_live" = 1 ]; then | ||||
| 			# kernel adds this flag when retpoline is supported and enabled, | ||||
| 			# regardless of the fact that it's minimal / full and generic / amd | ||||
| 			if grep -qw retpoline /proc/cpuinfo; then | ||||
| 				pstatus green YES | ||||
| 			else | ||||
| 				pstatus red NO | ||||
| 			fi | ||||
| 		else | ||||
| 			pstatus blue N/A "can't check this in offline mode" | ||||
| 		fi | ||||
| 	elif [ "$sys_interface_available" = 0 ]; then | ||||
| 		# we have no sysfs but were asked to use it only! | ||||
| 		msg="/sys vulnerability interface use forced, but it's not available!" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user