Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4117903imm; Mon, 15 Oct 2018 09:21:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV60HDdG+DdAPLuym7+D1bN2cB1Hk9toDx6M1M+X+/0gViATUWx1V3POCfA/yoW4dw4PKfE1x X-Received: by 2002:a17:902:421:: with SMTP id 30-v6mr18103853ple.184.1539620475849; Mon, 15 Oct 2018 09:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539620475; cv=none; d=google.com; s=arc-20160816; b=CiXUBcuHm9ZcBFwAh3OKK/NT6tMVlC7PWmmPZrq9eM7i/OAAzX8mjig7EOWEIjoKfg Er8V/6J29DB4bpd9rOFsHapad5aRooC/JaE1wy1PEmC5OQuu+70Z9+uijtg1/l6Upo8o APU2jztWfT3IwIEb06sCbo8viIgWn1vbaVEnGgO1VKAX4ISVEr7wbLzDYEvoYFbKBMUr 2WVMvS3CRt4U8cm4JgzI7VZJkJ8bRQK8zN8xhvUkoH8rIy2sDQ1g9v06Bz3yN+a/j1ND oE+Gqs+yoT+b44T1qtJhkeXnlqsUSEofNfpfwLRuPstwE2MLBngce7mgZrHvXIi7WH80 LlZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qC/Mv2VQ0vhGK/k9Y+84LVNduxkJwV/9wTAxmH4nJCs=; b=cJDClfsuzaaJ3SLKn84WB2SE2pgL/7HNEd/+OvwH8u3GE+Vj5U+t56k6lYbQcVDwXS 3EJ/KzfnCkjNv30sjl94d9Pb94H0Xhad/uEKAqVhTCZQi4BvHtG8z0lfKMQ8gGw3+bz/ e8fGG2YQTZQzdPFs0Grs2GWzO3bZT8XVDkvjPLlv2aGXAXLfq9hTaUwBdhFp/eb4Qvqr ZXmimhHoFmc2NcUEhiMRJkCdF4QsOEvlHgO4xtTR57ZuoL5oxSHPT3DtLk/6ivXztORc 7dyoJLkjA+VB8qHej/x4zVroQbRhMd/WApJyJTBwShxG2asPcvs1o7jUUG0AtXUOVlq9 gcyg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13-v6si10009619pgq.357.2018.10.15.09.20.59; Mon, 15 Oct 2018 09:21:15 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726815AbeJPAGU (ORCPT + 99 others); Mon, 15 Oct 2018 20:06:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52132 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbeJPAGU (ORCPT ); Mon, 15 Oct 2018 20:06:20 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F0DA27F6CE; Mon, 15 Oct 2018 16:20:25 +0000 (UTC) Received: from treble (ovpn-125-6.rdu2.redhat.com [10.10.125.6]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87AAD770F8; Mon, 15 Oct 2018 16:20:24 +0000 (UTC) Date: Mon, 15 Oct 2018 11:20:22 -0500 From: Josh Poimboeuf To: Andy Lutomirski Cc: natechancellor@gmail.com, Andrew Lutomirski , nick.desaulniers@gmail.com, Dave Hansen , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , X86 ML , LKML Subject: Re: [PATCH] x86/mm: annotate no_context with UNWIND_HINTS Message-ID: <20181015162022.jia673dbkruo7k6f@treble> References: <20181015003726.29103-1-nick.desaulniers@gmail.com> <20181015051705.GA20687@flashbox> <2CCAF5D3-1B11-43BF-93E4-72C2603A184F@amacapital.net> <20181015152221.GA16375@flashbox> <20181015153144.buuow3yof2njjzjm@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 15 Oct 2018 16:20:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 15, 2018 at 09:03:40AM -0700, Andy Lutomirski wrote: > That being said, the generic macro is: > > # define unreachable() do { annotate_reachable(); do { } while (1); } while (0) > > I'm probably missing some subtlety here, but shouldn't that be > annotate_*un*reachable()? That code should have had a comment, but that subtlety was intentional. As I mentioned earlier, that was a hack for old versions of GCC which didn't have __builtin_unreachable(). In those cases, GCC doesn't treat "ud2" as fatal, so this was a way of telling objtool that. Luckily we can get rid of this hack now that the minimum supported GCC version has gone up to 4.6. -- Josh