Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp506944ybz; Wed, 22 Apr 2020 02:34:26 -0700 (PDT) X-Google-Smtp-Source: APiQypJIcfO3P3cq3gyiectfbMy2t7nK5p/+TqBuTUYX2wfYi+/Ep8MR+MOVgy9aJgpsEfICJCDv X-Received: by 2002:a17:906:9482:: with SMTP id t2mr24560336ejx.241.1587548066337; Wed, 22 Apr 2020 02:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587548066; cv=none; d=google.com; s=arc-20160816; b=LtWF/vOWhYDgstOvTtW73spMqz3gub1bGCAZqqqTfPVnlVdWeKOuL0H80gMm4022pM 0m69JpiDPuC5GR1jQ97d54/lXa6hR4ZqbhSaGF02/raHjGE9eEJ3TeOlczELIAZBfmfV /e6KFd+EHoiFaETwwoKqABfN94tOsJNeEYMLRMjgftUGexZ5sACQmmdYK9T9YHyJtd2D hFhGjwdNHu/C/3fN/sony8nSTPK1MNzaHMtO//58s4jZf8lAtPQ5NA+ggYfknLVSKwSi ZbijR22sJ8uIAiEmAaY4sD45FPaZFq/3UlVUIpUrcErC23nst/4D0rA20eD9sY1zF+pm G8kg== 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; bh=iEdwfLPox7oZxLW8B0dEMX68Aup6NCI3jJ4OA1EvO08=; b=eiScAKeu5KMZbQ+S5JzFtb24Owc3RajK5sQQKCLJ9AI/VBfng+Hfvby7V4Nop7Dsl5 yEk911H4bwwRwMOrpBvcouzza6Molx0cg8R0jsg8PFiU2o2N897InbxXqFjvSH9/C57a 0dRkllvX0e203PsP3kQgkx7I3gf9JaYrsZ+QHETTLj5HNzLgFbvUgBLBp9EIjvIx8cKf JnaSHGcKf1OhDAgMsyfFT/JTZYBCGNvrA9XPP8BD/n/3Sj8B8piIjPyyh74AAic+QYwk DcupI7i3wYzZ67Z3mnCMGG6i8BV/unGJYKgJ+P0znEMY0TqxXAAWWUiSpP8ngmRSlb6m C76g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@skogtun.org header.s=ds201912 header.b=bPE7bNu2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si2700168ejk.339.2020.04.22.02.34.02; Wed, 22 Apr 2020 02:34:26 -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=fail header.i=@skogtun.org header.s=ds201912 header.b=bPE7bNu2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726054AbgDVJdB (ORCPT + 99 others); Wed, 22 Apr 2020 05:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725912AbgDVJdB (ORCPT ); Wed, 22 Apr 2020 05:33:01 -0400 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B935C03C1A8 for ; Wed, 22 Apr 2020 02:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=skogtun.org ; s=ds201912; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iEdwfLPox7oZxLW8B0dEMX68Aup6NCI3jJ4OA1EvO08=; b=bPE7bNu2dmhnJKpN4BIFbCHyqu 1qH0uDzyHhMtwgcI5ekXwk5+C+WobT2ROdwCHeZuIKLddReop2g2S5AL8PenCOsWQOWqRckZLUpu0 xdbK6C3lUPuU9Idk4hQjQGEVJJrlScVTlUyOwnJCvOaR/YSEkV5R6fCrBGb6XJ4LYuk6ldcQrUpcH AGpTbIonvDa4rrmjgiuzrpmUkBuA0Gb30oJZ6hy1lCUfs5p+cIqzDrsOlJHfnp1Cc02/PJIyB5qBJ a+feCFWdtof/tjV59+ULOEGCj0nuGmwT3VEEUMD2nPk+fOU8lEXoQPbn5GlCrkf03V+szXGicWh28 jFoCdJfA==; Received: from [2a01:79c:cebf:7fb0:d967:6cf9:736f:4613] (port=42882) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jRBkZ-0000F6-Jj; Wed, 22 Apr 2020 11:32:59 +0200 Subject: Re: [BISECTED]: Kernel panic (was: Linux 5.7-rc2) To: Linus Torvalds , Peter Zijlstra , Ingo Molnar , "Rafael J. Wysocki" Cc: Linux Kernel Mailing List , Giovanni Gherdovich References: <428bac87-b6dd-0867-c8f8-622cd606de3e@skogtun.org> From: Harald Arnesen Message-ID: <395f63b5-a24b-0eb9-4cb2-06057c1882d8@skogtun.org> Date: Wed, 22 Apr 2020 11:32:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 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 Linus Torvalds [21.04.2020 21:03]: > On Mon, Apr 20, 2020 at 1:52 AM Harald Arnesen wrote: >> >> Neither rc1 nor rc2 will boot on my laptop. The attached picture is all >> I have been able to capture. > > I know you saw the reply about this probably being fixed by > > https://lore.kernel.org/lkml/20200416054745.740-1-ggherdovich@suse.cz/ > > but it would be lovely if you could actually verify that that series > of four patches does indeed fix it for you. > > Your oops is on that divide instruction: > > freq_scale = div64_u64(acnt, mcnt); > > and while we had a check for mcnt not being zero earlier, we did > > mcnt *= arch_max_freq_ratio; > > after that check. I could see it becoming zero either due to an > overflow, or due to arch_max_freq_ratio being 0. > > I think the first commit in that series is supposed to fix that > arch_max_freq_ratio being 0 case, but it still feels like the code > that does the divide is checking for zero in the wrong place... > > Linus I will try the patches today, and report back. -- Hilsen Harald