Received: by 10.223.164.221 with SMTP id h29csp888003wrb; Fri, 13 Oct 2017 08:00:34 -0700 (PDT) X-Received: by 10.99.96.136 with SMTP id u130mr1505571pgb.255.1507906834083; Fri, 13 Oct 2017 08:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507906834; cv=none; d=google.com; s=arc-20160816; b=OfgZeEGHOgalLEGVV2KuDY3doKMI6VPKTEiEL4b4AgkkCRd30X7pPNjZTQFGE1o6Ob TnhZ4zi/Nl7csszejPfBbvEkAE7yPH6wngOXtiLF3NGE5qL1gQgW5gYYKtQupZvXCu9b zLl4fO8rHpEhJ7CG0TqIWQGeT2Ff9q6itES/XyZ8TMz+6GyZTTP7dT6M1TyGCo0mzbl1 RNgGyck9HvbmQ5Oc3Z4guMjbNtMWypN9fGek0owxKzxUom9a1uR2pCioB7PzgsEQjcPD h/5GN3JvdiqdDn1ue3ySWuJbwzBgZ2On6m83wMrMqXX0ED3swtbge1HzZ2GaufzXx7YR bt0w== 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:dkim-signature :arc-authentication-results; bh=d+6QUl8PpBevz9cvzJ0OgqxnlB3OGXK5FFcJW2nbbWs=; b=w4U1rOt8SiTvYlNOKFwf6xpUywDPxM2i7TCLDrhwmSYQfHz+PMJLEA+aupNs4bQy5e A6o+MHbi4nALx56ydnUzup123fRThI8dzdjT9UIjAJyzIMCowQVkyFQ/aTW7akhz/O67 gFSfOGzPmQpNRVmPtGCi3uc/4+wYm4dwScPneQXa4Cv25sbZ5faeBJhxbv903ig02SA4 9IV9VtSzN2aYFmciL74dr4x8aW0ff+NxhaxLWkYpEOYBrrJLdWIlv1wWgQO3J/1f6Rx9 QZKEjjBaPs1Q8Fyuompml07rTRrN4AoeO+tIgbHfk2djZ16Yg9mAFj/cdH+j3yHnvwz5 367w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kEaC1lC/; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si686448pff.186.2017.10.13.08.00.19; Fri, 13 Oct 2017 08:00:34 -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; dkim=pass header.i=@linaro.org header.s=google header.b=kEaC1lC/; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758230AbdJMO7t (ORCPT + 99 others); Fri, 13 Oct 2017 10:59:49 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:55247 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753413AbdJMO7s (ORCPT ); Fri, 13 Oct 2017 10:59:48 -0400 Received: by mail-wm0-f42.google.com with SMTP id i124so22343515wmf.3 for ; Fri, 13 Oct 2017 07:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=d+6QUl8PpBevz9cvzJ0OgqxnlB3OGXK5FFcJW2nbbWs=; b=kEaC1lC/Mw9emkjpZMI2EMOIXsKrRtvxWxfPw0djwdQtmXJWgS9U6uHLk3sVtdxxao o4UGrUhFw2hAs1yNFtJRRuGRc6Dg7gmlWGHhP9qCS1is2Edy41DCdJ5tMXzRIXSItl0D r1zI75fJQ2F5ku4RiTTpStRpEYn0wps1rh5T8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=d+6QUl8PpBevz9cvzJ0OgqxnlB3OGXK5FFcJW2nbbWs=; b=oUN2u0w3/2vD+9EP+QFY96XkDNgQ3BuM58hfXtkPJAnK8covMo95t3fWB9qyR0VHNI 8oBInrijeyMryhoAk8aIJtKNLM3yHhrY3I5XXAu9TyrCyNJcVcCpvLyyGhHnc8N2shxz otGjTeQk/qwMWEoVFxFNKhFL5XZN9PpfgStWIBSbjov/bcy9T4zbD8+tqPLaTKTC8HSv ztCQyyjc03SV+f4RpW2/JWY/V/HKU0OJW/OpIba1kkteTSgO137cNMdpqhZEsBATf/l5 5r4yEUPLqK7TTBR9WfuYz8XOfBU5p0XhDgA+zJtKTSX1KkXPqtQLJ8wXUD0RLMcMg3Zs diEg== X-Gm-Message-State: AMCzsaWqAfiEAC8bexXONvCNS1kA1rcNbb9ss+b+CZORiLNN/GlbvRPV qtqQpqha1pgivFWURrSg1EkkNaClmfU= X-Google-Smtp-Source: ABhQp+RqedGEuk+V0uBV6Tv0Dd3+FS0QzrAHbwC0dl8bQfRsr1iXZACpgNfBXw6deJ3Mqq5V71J5Fg== X-Received: by 10.28.135.5 with SMTP id j5mr1975938wmd.21.1507906786680; Fri, 13 Oct 2017 07:59:46 -0700 (PDT) Received: from [192.168.1.191] (cpc87211-aztw31-2-0-cust196.18-1.cable.virginm.net. [82.46.60.197]) by smtp.googlemail.com with ESMTPSA id f27sm2234884wrf.63.2017.10.13.07.59.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 07:59:45 -0700 (PDT) Subject: Re: KGDB/KDB treats WARN*() as Oops on x86 since 4.12 To: Ilya Dryomov , Jason Wessel Cc: Alexander Shishkin , Peter Zijlstra , Ingo Molnar , kgdb-bugreport@lists.sourceforge.net, "linux-kernel@vger.kernel.org" References: From: Daniel Thompson Message-ID: <7d12c8e1-0389-9982-9fd8-070dc0d26bef@linaro.org> Date: Fri, 13 Oct 2017 15:59:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed 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 09/10/17 13:24, Ilya Dryomov wrote: > Hi Jason, > > Starting with 4.12, WARN*() is implemented with ud0, generating an > Invalid Opcode exception. KGDB/KDB gets entered as if it were an Oops, > making KGDB/KDB rather hard to use, particularly on testing kernels. > > Alexander posted a fix a while back, but Peter seems to be waiting for > your ack. Could you please weigh in? > > [PATCH] x86/debug: Handle warnings before the notifier chain > https://patchwork.kernel.org/patch/9859065/ Hmnnn... IIRC arm64 code has been also been blocked for a couple of releases whilst Will D. waited for an ack that never came. My own reading of the code is that the patch in question restores the status quo, that there will still be mechanisms to provoke entry to kdb/kgdb during a warning (breakpoint on __warn, engage panic_on_warn, etc) and that these are not obviously recursive[1]. Put another way I'm happy to dig the patch out of my mail archive and throw in an Acked-By: but since I have no official role within kdb/kgdb (I'm just an interested bystander) it might not be enough for Peter. Daniel. [1] I'm not a huge x86 expert so correct me if I am wrong but I think its ok for us to trap here providing its for a different reason. From 1580782752866250257@xxx Mon Oct 09 12:25:11 +0000 2017 X-GM-THRID: 1580782752866250257 X-Gmail-Labels: Inbox,Category Forums