title: How do I disable avx instructions on a linux computer?
body: <p>Or more specifically, how do I ensure that /proc/cpuinfo and the CPUID opcode do not show that AVX is enabled?</p>
  
  <p>(For context, there is a bug on some Amazon EC2 instances, where AVX is falsely reported as active which causes programs that dynamically use AVX instructions to crash with SIGILL).</p>
  
  <p>I've seen this kernel patch: <a href="https://patchwork.kernel.org/patch/1521191/" rel="noreferrer">https://patchwork.kernel.org/patch/1521191/</a>, but I'm not sure if that affects just the kernel's avx usage or also patches up CPUID and /proc/cpuinfo. Regardless, I am hoping to find a solution that works on the linux 2.6.x kernel series.</p>