Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1965372ybl; Tue, 3 Dec 2019 15:50:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxdeQPpaYx8kXSLetDwX/LiW1F/sU8GZO6kn7k3w3qSvSFJk1G2A3GAf0RxJgSk9sHa+7gg X-Received: by 2002:aca:dd84:: with SMTP id u126mr243775oig.90.1575417012201; Tue, 03 Dec 2019 15:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575417012; cv=none; d=google.com; s=arc-20160816; b=yhyIjlKoYpcohXZLsqNEcOzcpSXlXEhXvLs4JXSnegVDdmVbSebrZmqMD/sXFLwxRk kchxZ1ckMrfOdCYGcuOP/F9bjPM4F8LteJ105c+mYNn4lNa/x0W1bW76o1GFpDZGlqtS pHcfraAS3kpD4CyuqfuOtqyls5BSxHk2TDDWhsIm0sgQPW4TPMBFICy4gC7psmkJDSOA K9X34ybRLMeTF9B2tcUlL6r1R8aLg/AEykuaYZGmI7XCL85aGsHxSdGBJKuUTgjOj/cQ QmBZTxDmWX5p5OeUWySSrHrbxs5PXBPhR+lg17ePS81JkHK3S1XGBrHrQmZCz8PQITYE kL5A== 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:references:to:from:subject; bh=MUfFMTTZpzvTTmue2NEQkmQ8jCfNpMtyK6rQVmbHK5E=; b=K1oWItIuUoSSCozMC3oRvFMxJLlN259SjzXC0D3uioe0sbM6pMYQD6m09Y37mjYZWN PkYb9aXN6mKKajfx3JYk6INtOR7bP8v6cVwv+bMF46YYv6eKKEl+yVfTGsawYN1lHXD1 CtX521dPXMMEVCTV++07ROvIMOK6qOJuJuT2EzObptHxlrRVN3v6IPG3U4lZlIpTi1Kl nt7YcKdqvoscG+y8haJxcYwfKQvNt8Ze0TUcZxdtdbm7icK47JO8uF8Ojc2rdkOE2957 qEHqeAEz+kGp9Qvvz2ePPamav8t7c3v4gIJ5R9s3FsmT1wvbL82iMJJRnG0P4cwvHmWH Buzg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i198si2259899oib.111.2019.12.03.15.49.58; Tue, 03 Dec 2019 15:50:12 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbfLCXtW (ORCPT + 99 others); Tue, 3 Dec 2019 18:49:22 -0500 Received: from foss.arm.com ([217.140.110.172]:50758 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbfLCXtW (ORCPT ); Tue, 3 Dec 2019 18:49:22 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 50FC130E; Tue, 3 Dec 2019 15:49:21 -0800 (PST) Received: from [10.0.2.15] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EAD213F718; Tue, 3 Dec 2019 15:49:19 -0800 (PST) Subject: Re: Null pointer crash at find_idlest_group on db845c w/ linus/master From: Valentin Schneider To: John Stultz , Vincent Guittot , Quentin Perret , Peter Zijlstra , Dietmar Eggemann , Juri Lelli , Patrick Bellasi , Ingo Molnar , lkml References: Message-ID: <14a8e456-1f89-0dff-ae89-61e8b6d5593b@arm.com> Date: Tue, 3 Dec 2019 23:49:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 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 On 03/12/2019 23:20, Valentin Schneider wrote: > Looking at the code, I think I got it. In find_idlest_group() we do > initialize 'idlest_sgs' (just like busiest_stat in LB) but 'idlest' is just > NULL. The latter is dereferenced in update_pick_idlest() just for the misfit > case, which goes boom. And I reviewed the damn thing... Bleh. > > Fixup looks easy enough, lemme write one up. > Wait no, that can't be right. We can only get in there if both 'group' and 'idlest' have the same group_type, which can't be true on the first pass. So if we go through the misfit stuff, idlest *has* to be set to something. Bah.