Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp949714ybt; Wed, 24 Jun 2020 15:40:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw48gXal3eoKBpi9YVINOiIFi/9ao83D8w4uBKeNP0ji+qiPfCQ9Ahz4WDeDNy+yex0Lf9I X-Received: by 2002:a17:906:6a4b:: with SMTP id n11mr25969054ejs.198.1593038422246; Wed, 24 Jun 2020 15:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593038422; cv=none; d=google.com; s=arc-20160816; b=yqYusX9Fbo2KRsRL3gHI73wQUof/T5eWbuL7Iy94huo+jEDM5Wp/Tyn2wBFCOetVc3 uNP/7uY0wI3fLRmQgYs5iuXaZsUDTgIOaNiT13T0L1/tK7eqcoGm007X2D1ZkU8z2cfn n2hjww63VwGyAXnah22VJA7py7Uce/V8cx9h1iCmIjcj+S/1rPWVu4fMfW10TOBG7qP5 f4xXaqIWOT/VCTQzFjMKKTtLODkzbV8tNW+jwNPzHdpWJM39YGvOeGJ+rHFUz29RV2gd o2OZeikUDd7h9nY/VI2/zLX17wTYOWMai5hpNP1eSaoklvsske83YTEWtHNs5l+qKpmU 1ruA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IeIANak/Z3jQMzk2qZQOQZpSO7gX9e7P2MmD2swZQ1k=; b=tGUr0YJpsGvhd7ZSB2fFqpP+c4L8tgkjDFB4W8fFWLgmfcqJkyXTl66LCXPk8abapH 7KxoJfSrfRtoYoBwCMrvAe93HM73QWwdT5bYOiIeuM/BntWbp+fW2tbC+lGvRkAtId/X FHBAcwqOX8nZ1+3T1rni3nVk51KNgW3w0ZD8uMBOk2ptY/gREozxQ1gNKVyiCWxQAiNI ImSsBBw686UbR8XP/stC4IOVWSDvnO7OZwBtXZX6SzaXSqk5qeAqVbPTmr16GD2VK24o drYv8Eo80wXYbNwvy8h3Pwta0ovccX+CegPk/pKQvGpuMo860gBZd+iCKH57OtmY2tqT m2Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CcPNKzfA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si12666591ejh.665.2020.06.24.15.39.59; Wed, 24 Jun 2020 15:40:22 -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=pass header.i=@kernel.org header.s=default header.b=CcPNKzfA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389578AbgFXWhu (ORCPT + 99 others); Wed, 24 Jun 2020 18:37:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:38494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732806AbgFXWht (ORCPT ); Wed, 24 Jun 2020 18:37:49 -0400 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ACA0C2145D for ; Wed, 24 Jun 2020 22:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593038269; bh=j/JT04bUIGp1KPXmU9tBSt/XagxtgDGn8tJTtwxowlE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CcPNKzfA716pG2lRlW/5iMiAIi48GuzF32J9ROS1YCZbBJjNEo89KuaY28IBoFm9S 3fGrD7tx6vll0/sQfgJVW4Bs75aM76sRCRo0POv+9w4JsyobkVbJ9BLRzb0nWLsfoY 4APO8Pfuiv3rm95SJpHC1SKyVW0WHHe21HU0ktjU= Received: by mail-wm1-f54.google.com with SMTP id q15so3731146wmj.2 for ; Wed, 24 Jun 2020 15:37:48 -0700 (PDT) X-Gm-Message-State: AOAM532fTWNzZYMpC9/8sar8C3B3lnGgawug7UY2G3L3Ku9Dvf7LNEK+ a3xpoHqwChMVHG3rE7e4acclDkJHoUw1azQeMHPT3w== X-Received: by 2002:a1c:1b90:: with SMTP id b138mr3460wmb.21.1593038267193; Wed, 24 Jun 2020 15:37:47 -0700 (PDT) MIME-Version: 1.0 References: <20200618190207.GO576905@hirez.programming.kicks-ass.net> <257B4193-08FB-4B3E-85E9-6C512B52C2C2@amacapital.net> <20200618211823.GP576905@hirez.programming.kicks-ass.net> <20200622114713.GE577403@hirez.programming.kicks-ass.net> In-Reply-To: <20200622114713.GE577403@hirez.programming.kicks-ass.net> From: Andy Lutomirski Date: Wed, 24 Jun 2020 15:37:34 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/7] x86/entry: Fix #UD vs WARN more To: Peter Zijlstra Cc: Andy Lutomirski , Josh Poimboeuf , LKML , X86 ML , Dmitry Vyukov , Marco Elver , Andrey Konovalov , Mark Rutland , Matthew Helsley , Steven Rostedt , jthierry@redhat.com, Miroslav Benes Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 4:47 AM Peter Zijlstra wrote= : > > On Thu, Jun 18, 2020 at 11:18:23PM +0200, Peter Zijlstra wrote: > > > > So maybe also do an untraced cond_local_irq_enable()? After all, if > > > we=E2=80=99re trying to report a bug from IRQs on, it should be okay = to have > > > IRQs on while reporting it. It might even work better than having IRQ= s > > > off. > > > > Yes, very good point. Now I want to go look at the old code... I'll fro= b > > something tomorrow, brain is pretty fried by now. > > How's this then? > > --- > Subject: x86/entry: Fix #UD vs WARN more > From: Peter Zijlstra > Date: Tue Jun 16 13:28:36 CEST 2020 > > vmlinux.o: warning: objtool: exc_invalid_op()+0x47: call to probe_kernel_= read() leaves .noinstr.text section > > Since we use UD2 as a short-cut for 'CALL __WARN', treat it as such. > Have the bare exception handler do the report_bug() thing. > > Fixes: 15a416e8aaa7 ("x86/entry: Treat BUG/WARN as NMI-like entries") Acked-by: Andy Lutomirski