Received: by 10.192.165.148 with SMTP id m20csp276050imm; Wed, 9 May 2018 12:29:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpdTpHv0P6EU9Idmn0FHLcHfKzCo6wXIlS235Q7i0nRR8tUC8ECKrmpElckZwO9Ol+lD/WF X-Received: by 10.98.13.151 with SMTP id 23mr45358128pfn.231.1525894198531; Wed, 09 May 2018 12:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525894198; cv=none; d=google.com; s=arc-20160816; b=oN80gN+2B1DGGZ7Q3FqF6RVaGdJZP4/YTKX3IBOw6GBH7Wvz13A3f32PBgGQxAH7ky 4Af3/SvZjiysws7zBmeMz6Q/jxGUC24FXyg+mNDlU65gLmfu45ubYcgUUDpkKYxo80mm otGMznzDm4G+mdxvnn8k/SARRjqy7JkIuBilGTXDfncWSrFI9+h/qyShck3N227fA5Bu vME+/BDFh94l6NN4kMHPSUKtklnFWqMUWG1ux6v4BO5mfV6YPq/I/d3VNYIklI6LGDy9 GCSwW2YH+Xbpvmc5B+Zb+k4P7hYub+Fcd6j7KXKmwZMNbpZocLin1YSbyIHNBfdwiWN3 cX8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=kOZRvVCnflU4jpXF52pvc9u/Kke9m0Erdoh3hUlHbt0=; b=gSdWHIW3ryAnwOLNwsDhAyvaGpUDrndcwhRherl2V4kf/eOctw/cNJ+i+7D0bOD6XU YOuKGK9sYLqt7ASpJ1rNeXnIi6c7u8pJSx7vM1MPnQh1CnEvUT7BvImozpieiKxmf3lo i2SPTq90tIiGvY9G9E9pXsXj+qYEvp4Y3s9tv12DWWHHsd7CAfP/wweqhw6DrK4C+pXU sriW/uEMB+WbIhysIBZ8QOro8Wb6eYqFTECqr6PoQ/KnjyPdaC7qu7qkwtojCSm53AUX eXIvY3zWT1eXrD52jS4gLu5qiDfjBEK4O9ZcG6NYgJZb/fYD1qFi2yAR/ednyVmlCxDt boXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5-v6si20752930plr.247.2018.05.09.12.29.40; Wed, 09 May 2018 12:29:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965454AbeEIT3H (ORCPT + 99 others); Wed, 9 May 2018 15:29:07 -0400 Received: from terminus.zytor.com ([198.137.202.136]:41221 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964931AbeEIT3G (ORCPT ); Wed, 9 May 2018 15:29:06 -0400 Received: from hanvin-mobl2.amr.corp.intel.com ([192.55.54.44]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id w49JSutg3092094 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 9 May 2018 12:28:56 -0700 Subject: Re: [PATCH] x86: pad assembly functions with INT3 To: Alexey Dobriyan Cc: tglx@linutronix.de, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org References: <20180507213755.GA32406@avx2> <20180509165517.GD16034@avx2> From: "H. Peter Anvin" Message-ID: <5682ec5f-5d95-4028-ecc5-99f92bcadd14@zytor.com> Date: Wed, 9 May 2018 12:28:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180509165517.GD16034@avx2> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/09/18 09:55, Alexey Dobriyan wrote: > On Mon, May 07, 2018 at 02:41:14PM -0700, hpa@zytor.com wrote: >>> -#define __ALIGN .p2align 4, 0x90 >>> +#define __ALIGN .p2align 4, 0xCC >> >> Acked-by: H. Peter Anvin > > Thanks! > > If someone knows how to control _compiler_ inter-function padding, > please tell. > I think I have a gcc feature enhancement request for that. It can't be done without gcc's knowledge of when a fallthrough is happening (I presume you took that into account in your patch set.) -hpa