Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1305173ybh; Thu, 16 Jul 2020 08:33:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF5DlhhmiBzBWYe9CV5vtjlYeWT2pAdCHZsn8ADmt+sI7E85EIEYiASGc6RgPbs8mnhQhD X-Received: by 2002:a17:906:a1cc:: with SMTP id bx12mr4104153ejb.461.1594913634251; Thu, 16 Jul 2020 08:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594913634; cv=none; d=google.com; s=arc-20160816; b=mUbPAHmx89ZqYhUIxj/8C3x8RPLz8uj68BJ2WDxqWqU4rp0051WQzTVj6+uIuMN4nS gRsKzwSJUUqMlKaNCWc1Wf/EflUv39XlykbnS3x/tE6RbBoue5w9sF59yE2W85SjP3hG By8SEQr8NnabEn7GhFKA+3UrSowTBr7dvMxRiXKgVmEmJNIYw2fwCXMf339Spb1Dkmwh z99AkOG3NRplxQgKjU8oLniUzkOTh4CB3nsecTK5nIygEHxWV2Q2/vlZPoiBd3JzV3DG h6bQpY2SrHIEgLxygWmlXO+bXvgxpqLHPZtiGOQhY3JV+FjRkogwpJ2y5IXRdMWg/PgA Oulg== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=4DCCK8mVk+HskFG6V++QI8sTSi5CIGdPTT0aJ5kjZzI=; b=U9k4CcWn5RaU8KsEZMSEoa0AqVdwn8KN/7JObw8lFZHJS20Ki2X5MVi2147ZR+7A1A QQE08xlGOhE6S/SSymZUSosrBMXEhu/sfxWz7RW2FVbRcmJJYMJQR32m/HuDbln2Uvuu OZk4nVptGWU6VODgJqsHNdCbXM3aEsnJLSguB+ys9xU0Rz1SpHs7LKDbUVZlOOXmJIFO MEub9E99lw+qeSIKVuSVJIJrg04ZDY8Jz+KX+OyJqZgCX/+/lqRP3Gb8qtzJ/5AKyg9B +Ip7ybYw3yrWhWoUR8YSrFswQOPJ4QshUxR45p0d+IZTnbCqkCDsCGlW99DTs1QgLfOs 1ZRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=U8EiHjVu; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si3249355ejo.267.2020.07.16.08.33.31; Thu, 16 Jul 2020 08:33:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=U8EiHjVu; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729191AbgGPPaj (ORCPT + 99 others); Thu, 16 Jul 2020 11:30:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33998 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729052AbgGPPah (ORCPT ); Thu, 16 Jul 2020 11:30:37 -0400 Date: Thu, 16 Jul 2020 15:30:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1594913435; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4DCCK8mVk+HskFG6V++QI8sTSi5CIGdPTT0aJ5kjZzI=; b=U8EiHjVunrtFn4bSMXFeAfEdJjJqVWRAXNOOpsEOvRKdOGsy2ELmV9GuB7v2b3frf7DKbF wBDTj7Y1PgvQ7o3WS2cO0BJFZvmpvHkWHTgJcvHXJE93ydlzQr558lc6ZBxY04S67IUrgM zLt01RsWpYHxtFpxncFv6A3UNJdZVjI9RkFAahdd7DGEX4LwI02x7Re9JwHr9d0m0RoM/C HU8tbJftza4l4KIYoAUEFQ/Etsj1dSFbeeGiboff9dUEa693z8AoOSIgFT+2dIKwZcukt8 I60D0dq7UzXriL5jYzbfLiA5UO71UiQp/ApEwarIoDpicMR+R5m/+kX3KDQ+ug== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1594913435; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4DCCK8mVk+HskFG6V++QI8sTSi5CIGdPTT0aJ5kjZzI=; b=Erfd0bv8OYtUWHksHjKmTDlXcTSD53S33rx0mOTAhILEgHrXaA4eaD2nM076WzKCV2dusM mvcvs/Sgm37zO0CA== From: "tip-bot2 for Jian Cai" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/entry: Add compatibility with IAS Cc: Nick Desaulniers , Sedat Dilek , Brian Gerst , Arvind Sankar , Jian Cai , Thomas Gleixner , x86 , LKML In-Reply-To: <20200714233024.1789985-1-caij2003@gmail.com> References: <20200714233024.1789985-1-caij2003@gmail.com> MIME-Version: 1.0 Message-ID: <159491343466.4006.9823116110789109364.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 6ee93f8df09c470da1a4af11e394c52d7b62418c Gitweb: https://git.kernel.org/tip/6ee93f8df09c470da1a4af11e394c52d7b62418c Author: Jian Cai AuthorDate: Tue, 14 Jul 2020 16:30:21 -07:00 Committer: Thomas Gleixner CommitterDate: Thu, 16 Jul 2020 17:25:09 +02:00 x86/entry: Add compatibility with IAS Clang's integrated assembler does not allow symbols with non-absolute values to be reassigned. Modify the interrupt entry loop macro to be compatible with IAS by using a label and an offset. Reported-by: Nick Desaulniers Reported-by: Sedat Dilek Suggested-by: Nick Desaulniers Suggested-by: Brian Gerst Suggested-by: Arvind Sankar Signed-off-by: Jian Cai Signed-off-by: Thomas Gleixner Tested-by: Sedat Dilek # Link: https://github.com/ClangBuiltLinux/linux/issues/1043 Link: https://lkml.kernel.org/r/20200714233024.1789985-1-caij2003@gmail.com --- arch/x86/include/asm/idtentry.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/x86/include/asm/idtentry.h b/arch/x86/include/asm/idtentry.h index f3d7083..5efaaed 100644 --- a/arch/x86/include/asm/idtentry.h +++ b/arch/x86/include/asm/idtentry.h @@ -469,16 +469,15 @@ __visible noinstr void func(struct pt_regs *regs, \ .align 8 SYM_CODE_START(irq_entries_start) vector=FIRST_EXTERNAL_VECTOR - pos = . .rept (FIRST_SYSTEM_VECTOR - FIRST_EXTERNAL_VECTOR) UNWIND_HINT_IRET_REGS +0 : .byte 0x6a, vector jmp asm_common_interrupt nop /* Ensure that the above is 8 bytes max */ - . = pos + 8 - pos=pos+8 - vector=vector+1 + . = 0b + 8 + vector = vector+1 .endr SYM_CODE_END(irq_entries_start) @@ -486,16 +485,15 @@ SYM_CODE_END(irq_entries_start) .align 8 SYM_CODE_START(spurious_entries_start) vector=FIRST_SYSTEM_VECTOR - pos = . .rept (NR_VECTORS - FIRST_SYSTEM_VECTOR) UNWIND_HINT_IRET_REGS +0 : .byte 0x6a, vector jmp asm_spurious_interrupt nop /* Ensure that the above is 8 bytes max */ - . = pos + 8 - pos=pos+8 - vector=vector+1 + . = 0b + 8 + vector = vector+1 .endr SYM_CODE_END(spurious_entries_start) #endif