From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752808AbbBXLF2 (ORCPT ); Tue, 24 Feb 2015 06:05:28 -0500 Received: from mail.skyhub.de ([78.46.96.112]:58227 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751856AbbBXLF1 (ORCPT ); Tue, 24 Feb 2015 06:05:27 -0500 Date: Tue, 24 Feb 2015 12:04:55 +0100 From: Borislav Petkov To: Ingo Molnar Cc: X86 ML , LKML Subject: Re: [PATCH v1 00/12] x86, alternatives: Instruction padding and more robust JMPs Message-ID: <20150224110455.GD3420@pd.tnic> References: <1422987390-17878-1-git-send-email-bp@alien8.de> <20150218212013.GB22696@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150218212013.GB22696@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 18, 2015 at 10:20:13PM +0100, Ingo Molnar wrote: > Do you have any stats about how many such (affected) patch > sites we have in say the 64-bit defconfig kernel? It is a good thing I have a tool to dump the alternatives patch sites and what gets replaced by what. Because now I can create such stats just like that! And hpa was questioning that tool's justification at the time :-) Anyway, here are the stats: x86_64 defconfig: Alternatives sites total: 2478 Total padding added (in Bytes): 6051 The padding is currently done for: X86_FEATURE_ALWAYS X86_FEATURE_ERMS X86_FEATURE_LFENCE_RDTSC X86_FEATURE_MFENCE_RDTSC X86_FEATURE_SMAP This is with the latest version of the patchset. Of course, on each machine the alternatives sites actually being patched are a subset of the total number. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --