Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp4129472pxp; Tue, 15 Mar 2022 13:15:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5STUGGrEi3qXg5dQgNkvxFwLOImNT1PV+v93aB54P+NYHMNah4101rik26qJjhWckZ5+j X-Received: by 2002:a17:906:2646:b0:6d5:d889:c92b with SMTP id i6-20020a170906264600b006d5d889c92bmr24619169ejc.696.1647375358260; Tue, 15 Mar 2022 13:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647375358; cv=none; d=google.com; s=arc-20160816; b=rpnfSiftdpXyPpQS81BbXoWSkvd2bgV3hwtCiDvzWoXZ1NQ/dIGE47k73nURpjETc6 oghoY8ltEUoO/Vd5Bo232TzByjYlE+8bZ2uBk4odSghMcN243kHr00yZ7lrlvrFVpXEi Mw1sD3mlSaboqsEt7YpNT91iPTmjN9su9rHMi1i+GWJBmCEBVqg9n4TZ7sg4QZYdqECM HGgV1vKoLeoq8xuAMrIXdJHxTJBUWZtK56i3NTfV/yrX7jgD+xazhnqA6Dg2G7EXjzRl Nr/keVFiv9Iw7SzewQsK13Ni6xKio7uVxIrtJzoq5lH2U8IfV05YUBEwOS+xhSH0Snzq +Zkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=syG+zqh4Q+3vlw+qKBz98+af1fOexGGxDC8UCaFHYcQ=; b=taAXVh/xOgQNfHQFu4XcMT0jAP2/HZrsfnvA0te0DuhBU/wIhJQ68FCuM5SCq2Jd6x vCWUwu9nS4wo/BSUuSOMj5I7ZqzfkFEhBJLd3u1zznbIrIpHXyJ8uGkRcFNPFwzHkw2r pAgQnWraAfsEdZNJR7cT6K0nvQ5wUsWSfcQnGKwxS5muiZzHBXeUrAqFai9pKNRa1+SH H4K/GLCtAaddXLWoxttonN/6lFf/p+1JFVYq3ZeH1y9gnNEA+S1zKei5B8MqIPO0otpc 2IUyk5xYkWLHpWvNZe8NdcxqYtiRMfuGVpcH9sW1xsm9afh+8gc0eo50KL+r71olXKlk 14ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lAeH6VWQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=275fFMT8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr4-20020a1709073f8400b006d62d9d91b7si13762229ejc.608.2022.03.15.13.15.33; Tue, 15 Mar 2022 13:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lAeH6VWQ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=275fFMT8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347286AbiCOKpZ (ORCPT + 99 others); Tue, 15 Mar 2022 06:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347224AbiCOKo5 (ORCPT ); Tue, 15 Mar 2022 06:44:57 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D678C2F028; Tue, 15 Mar 2022 03:43:45 -0700 (PDT) Date: Tue, 15 Mar 2022 10:43:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647341024; 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=syG+zqh4Q+3vlw+qKBz98+af1fOexGGxDC8UCaFHYcQ=; b=lAeH6VWQyN6PLvVfZVc89hm/mb3ZGQYHrJ1HfOB6R7OeS2az93Bs+eIQQHoXME7EF0FhRI HSY8t051FPLmEiLkk8l9TuuzOyaZ5a3hpSSE7zY+T4MWu4ocTeSrXiVtcJOjx5pUKeGjVq 0052mr9/82FyjLwtDUa1xrCkYEEdYaBjGXE6pAe3Mf0LGG9THaYQyFDVnmD+5ITSgm/48m dXRXrv54Oe/NZKxXyOSkvs5RTU4nyrpRbtsnmzjLcTG+2g3j++QZHJvWlgO5hlyPnlUJg6 hBnxmGwT5VMREOMyg2ua/X1GTNBt04XNqL1pdlUjGEIzFiBG2jFcQTKvox9JgQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647341024; 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=syG+zqh4Q+3vlw+qKBz98+af1fOexGGxDC8UCaFHYcQ=; b=275fFMT8+OFPgj54EOXLaHV+AyRzUOAcIzeg/wGKvk4v8jaQnVj+xDXtaXn/C2SSoAdxWl aNM5SHlMIq3nywCw== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] x86: Annotate idtentry_df() Cc: "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: MIME-Version: 1.0 Message-ID: <164734102342.16921.2650710011277528758.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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/core branch of tip: Commit-ID: 3515899bef545fc5b5f6b865e080bfe4c9a92a41 Gitweb: https://git.kernel.org/tip/3515899bef545fc5b5f6b865e080bfe4c9a92a41 Author: Peter Zijlstra AuthorDate: Mon, 14 Mar 2022 18:07:30 +01:00 Committer: Peter Zijlstra CommitterDate: Tue, 15 Mar 2022 10:32:45 +01:00 x86: Annotate idtentry_df() Without CONFIG_X86_ESPFIX64 exc_double_fault() is noreturn and objtool is clever enough to figure that out. vmlinux.o: warning: objtool: asm_exc_double_fault()+0x22: unreachable instruction 0000000000001260 : 1260: f3 0f 1e fa endbr64 1264: 90 nop 1265: 90 nop 1266: 90 nop 1267: e8 84 03 00 00 call 15f0 126c: 48 89 e7 mov %rsp,%rdi 126f: 48 8b 74 24 78 mov 0x78(%rsp),%rsi 1274: 48 c7 44 24 78 ff ff ff ff movq $0xffffffffffffffff,0x78(%rsp) 127d: e8 00 00 00 00 call 1282 127e: R_X86_64_PLT32 exc_double_fault-0x4 1282: e9 09 04 00 00 jmp 1690 Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/Yi9gOW9f1GGwwUD6@hirez.programming.kicks-ass.net --- arch/x86/entry/entry_64.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index 6e53991..4faac48 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -551,6 +551,9 @@ SYM_CODE_START(\asmsym) movq $-1, ORIG_RAX(%rsp) /* no syscall to restart */ call \cfunc + /* For some configurations \cfunc ends up being a noreturn. */ + REACHABLE + jmp paranoid_exit _ASM_NOKPROBE(\asmsym)