andresriancho / pico

Tool to identify and exploit timing attacks
GNU General Public License v3.0
10 stars 6 forks source link

No scaling_governor on virtualized environments #49

Open localh0t opened 8 years ago

localh0t commented 8 years ago

scaling_governor files under certain VMware environments seems to not exist:

# l "/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"
ls: cannot access '/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor': No such file or directory

My configuration:

# python timing-collector.py testTiming1
Traceback (most recent call last):
  File "timing-collector.py", line 197, in <module>
    clear_os_settings(tcpts_previous)
  File "timing-collector.py", line 169, in clear_os_settings
    setPowersave(True)
  File "/tmp/pico/utils/os_utils.py", line 75, in setPowersave
    'r+b')
IOError: [Errno 2] No such file or directory: '/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor'

Should there be a check if the files exist first?

andresriancho commented 8 years ago

@localh0t you rock :+1: , this tool isn't even released and you're already reporting issues. I agree, there should be a check, thanks for noticing.

If you're interested in helping with the development and tests of this tool let me know. I'll be spending considerable time on it