Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1024856ybt; Fri, 19 Jun 2020 22:01:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7p8xS71u6YBOfwtrvUt97Ez2XtemVZtD9VBLp/M4SFZkqk9oUUQp+9pOD42ClmWTPq64n X-Received: by 2002:a17:906:fc06:: with SMTP id ov6mr6897303ejb.184.1592629311978; Fri, 19 Jun 2020 22:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592629311; cv=none; d=google.com; s=arc-20160816; b=d7HbxPCtoyoNNZsx67Ab8YVBQdZlv0SWMPTQjXVre51gTOYkaIiUbwfTyalp9uR5cF FISUyUUnCv4Yx6BIOcwcjltfe/1J2WkOF1ERg11aCzkPpIMScWXW9hkncxLqYYCl+9ds LxDtjkkR7Y1GPBGLjud0c5kC5wodcdnkbHe5MWuuSXaNSTSMrDcx+wt4+NLSgtT0tdvp afQJtcZYj/fSt6+ACkfrJc2MAOOjBgc1z4T91fNfj4x6vSYNZfEtYjn5GsKYm/qUSTd2 uFZqodura0csHIBWQf3Lk6h8nx+gGzUoI8gXGtWRRYqD4GE3g0X5avNBeEFMfk46CR0r Jv5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=iKr0yZXJwHAlgItOmb/e2aMfScITjzFdf4xvbtprWlI=; b=Mh5FKdLeBj2xCY3NbMFGwBwOdTnEEREwxuI9YtGgWxjPOk90VD/HSdMkktTjyTQoT0 9PEZuDTIO7dJbnG9VS69OA7nhfoPMre3dAUWRgirHN2M/QekzREpli0JdRZV65KVnWpA WRq2N0m5Mryr/mUHM3EXiM7BIV5l2+68Yh3ogGgEnaXxpP3+LpArPjPJCCbNSwV/FkOp z5IRqwtgatdw4mV1aIPh3gFLf4HgGkblIiAGLksdXMIFZAWN/T6WNEo+PVnbjZULpFBn 8FlTjM4JsMvsBA41pL8iD+yd4QxJELgS6LR/LYu8ADBRuFI1HAzPDIzxbm+8gkCCXE2S QaKQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=inet.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si6987071edz.386.2020.06.19.22.01.29; Fri, 19 Jun 2020 22:01:51 -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; 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=NONE dis=NONE) header.from=inet.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731182AbgFTBAI (ORCPT + 99 others); Fri, 19 Jun 2020 21:00:08 -0400 Received: from mta-out1.inet.fi ([62.71.2.226]:58842 "EHLO julia1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731172AbgFTBAF (ORCPT ); Fri, 19 Jun 2020 21:00:05 -0400 X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeduhedrudejjedgfeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuuffpveftnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefklhhkkhgrucfrrhhushhiuceoihhlkhhkrgdrphhruhhsihesphhprdhinhgvthdrfhhiqeenucggtffrrghtthgvrhhnpeekgfehudetffevteelffevheefvdetveefjeffkeegveeijedutefgudduveetleenucfkphepkeegrddvhedurdduleegrdduieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdehngdpihhnvghtpeekgedrvdehuddrudelgedrudeigedpmhgrihhlfhhrohhmpeeophhruhhsihhlqddusehmsghogidrihhnvghtrdhfihequceuqfffjgepkeeukffvoffkoffgpdhrtghpthhtohepoehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgheqpdhrtghpthhtohepoehluhhtoheskhgvrhhnvghlrdhorhhgqedprhgtphhtthhopeeophgvthgvrhiisehinhhfrhgruggvrggurdhorhhgqedprhgtphhtthhopeeorhhivghlsehsuhhrrhhivghlrdgtohhmqedprhgtphhtthhopeeogiekieeskhgvrhhnvghlrdhorhhgqe Received: from [192.168.1.105] (84.251.194.164) by julia1.inet.fi (9.0.019.26-1) (authenticated as prusil-1) id 5EEA260E000BCAB2; Sat, 20 Jun 2020 03:59:44 +0300 Subject: Re: WARNING at switch_mm_irqs_off, followed by frozen machine To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, riel@surriel.com, luto@kernel.org, x86@kernel.org References: <20200618102135.GA616959@hirez.programming.kicks-ass.net> From: Ilkka Prusi Message-ID: Date: Sat, 20 Jun 2020 03:59:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200618102135.GA616959@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 18.6.2020 13.21, Peter Zijlstra wrote: > On Wed, Jun 17, 2020 at 02:32:39AM +0300, Ilkka Prusi wrote: >> Hi, >> >> Yesterday my computer with kernel version 5.7.2 was frozen badly enough that >> hard reset was necessary (did not react to SysRq keys). Upon checking logs I >> found following warning and information from the time just before resetting >> it. >> >> Computer has AMD Ryzen 7 2700, Asus B450 motherboard. >> >> 5.8-rc1 encountered BUG() and did not boot (iommu and smp_processor_id() >> called from wrong context, I'll see if I can catch log somehow). > Since you're building your own kernels, can you make sure to always > have: > > - CONFIG_DEBUG_BUGVERBOSE=y > - CONFIG_DEBUG_INFO=y > > and then when reporting, run the thing through: > > ./scripts/decode_stacktrace.sh Ok, thanks for letting me know, I'll try that. > And then pattern match that against my local defconfig build of > arch/x86/mm/tlb.o and pray my compiler did anyting like your > (unspecified) compiler. Forgot to mention that, currently it is: gcc (Debian 9.3.0-13) 9.3.0 I'll try your suggestions, sorry for not replying sooner. --  - Ilkka Prusi