• Peter Zijlstra's avatar
    x86/cpu: Sanitize FAM6_ATOM naming · 3ef03529
    Peter Zijlstra authored
    Going primarily by:
    
      https://en.wikipedia.org/wiki/List_of_Intel_Atom_microprocessors
    
    with additional information gleaned from other related pages; notably:
    
     - Bonnell shrink was called Saltwell
     - Moorefield is the Merriefield refresh which makes it Airmont
    
    The general naming scheme is: FAM6_ATOM_UARCH_SOCTYPE
    
      for i in `git grep -l FAM6_ATOM` ; do
    	sed -i  -e 's/ATOM_PINEVIEW/ATOM_BONNELL/g'		\
    		-e 's/ATOM_LINCROFT/ATOM_BONNELL_MID/'		\
    		-e 's/ATOM_PENWELL/ATOM_SALTWELL_MID/g'		\
    		-e 's/ATOM_CLOVERVIEW/ATOM_SALTWELL_TABLET/g'	\
    		-e 's/ATOM_CEDARVIEW/ATOM_SALTWELL/g'		\
    		-e 's/ATOM_SILVERMONT1/ATOM_SILVERMONT/g'	\
    		-e 's/ATOM_SILVERMONT2/ATOM_SILVERMONT_X/g'	\
    		-e 's/ATOM_MERRIFIELD/ATOM_SILVERMONT_MID/g'	\
    		-e 's/ATOM_MOOREFIELD/ATOM_AIRMONT_MID/g'	\
    		-e 's/ATOM_DENVERTON/ATOM_GOLDMONT_X/g'		\
    		-e 's/ATOM_GEMINI_LAKE/ATOM_GOLDMONT_PLUS/g' ${i}
      done
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vince Weaver <vincent.weaver@maine.edu>
    Cc: dave.hansen@linux.intel.com
    Cc: len.brown@intel.com
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    
    CVE-2018-12126
    CVE-2018-12127
    CVE-2018-12130
    
    (backported from commit f2c4db1b)
    [juergh:
     - Adjusted context.
     - Dropped changes to non-existing files.
     - Fixed a few more places that only exist in Xenial 4.4.
     - Ran the loop above to verify that all the old macros where replaced.]
    Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
    Acked-by: default avatarTyler Hicks <tyhicks@canonical.com>
    Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
    Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
    3ef03529
core.c 104 KB