for cpu_dir in /sys/devices/system/cpu/cpu[0-9]* do online_file="$cpu_dir"/online [ -f "$online_file" ] && [ "$(cat "$online_file")" -eq 0 ] && continue file="$cpu_dir"/cpufreq/scaling_governor [ -f "$file" ] && echo "$scaling_governor" > "$file" done /syzkaller/workdir/2017-06-07/crashes/d1aff78dec235a4eb72cb68afa6b2cafd363676d/repro-d1aff78d.exe