Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp670870iol; Thu, 9 Jun 2022 11:20:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd7voHyJidriRhgihLbkCk289jtyETMdIhhUdaH6BrwUQtr0qAdt75tenSvuhhkt9F0HVd X-Received: by 2002:a17:907:9805:b0:711:d8b7:d8b6 with SMTP id ji5-20020a170907980500b00711d8b7d8b6mr17762060ejc.234.1654798844540; Thu, 09 Jun 2022 11:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654798844; cv=none; d=google.com; s=arc-20160816; b=olGaRrn9/vqGXHufvH3k4JVlbo5Kad1Cn75hyQR1zDUwWbYI+e24sSPCDB+3lgXMTr CbtsHRG1pYciZnt1/GY5M1CmPpcxUntIacz8yfy1rSZ80FIz0smr8q8aFaeOE21TksNY +chTK+nTQ2q0R0BuUco/IzoT6faS6BUWJ4+U8Vyo7Syf07ekaf9I49hzsDZ6vlJVNdNg wM9dzO11DPm2w6IzSXFfTtVoO7ifO5NbWS4GjxEYcLBMq1vO0pGZhhG3HTPnJxD9Z1jF jCOx076z5EP0p4uwBAxEsh9BpxAdSupvCZrRF1SLUDyG3KzFe1n5mEdeugGquoMqocDF 49iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=rnz2K2i3sOABjcYz20JocfHMNMQmCmpt0izotfrjuZE=; b=ZQX82idBgVpZgOvaNo7be8ibcrkvpFF+yzd8SMl/dAHAHLzkKBgYQCesavT763JqZ/ 24JsW5pU7LBDFpigCoCkTOYLw41/NAOkomxO5Af8J6BCRCdVIsBWtH9wkNA07awpO0v3 Rp2Jyz0w7lT1jkfQnEnoDOemSKrdQkCO24yzWgiLmRCc98289YXP7aguDZKxZZzQ6XXL aG28pDAZiQs8SyeS7fqhMUFEtUdVqwnyR38f1hNQsOmwAJJHMNkYmvQPk/1o4h9ZSr9f ImZmoDCjbutUfv3TvT7gavLQK2PT7Z8bljl5jNI5jnu29hbHY6f5Pkfk7zDStcnZM9As 1K4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=j67AOKPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v17-20020a1709067d9100b006fef6d3ee02si7830841ejo.539.2022.06.09.11.20.18; Thu, 09 Jun 2022 11:20:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=j67AOKPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345219AbiFIR4Z (ORCPT + 99 others); Thu, 9 Jun 2022 13:56:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243228AbiFIR4W (ORCPT ); Thu, 9 Jun 2022 13:56:22 -0400 Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89EC064BF4; Thu, 9 Jun 2022 10:56:20 -0700 (PDT) Date: Thu, 9 Jun 2022 10:56:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1654797378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rnz2K2i3sOABjcYz20JocfHMNMQmCmpt0izotfrjuZE=; b=j67AOKPWQZyeQS+DeTeQuRDCfaY/8eqKGeUy1H2zcMJDvHMZ1bY+ozG1F+9aDgFxDAwdG3 1jmuYudpBlTmQ01sl8S/rN5C524OkNZSYC0+tRoELIWkQNNhr3oPJ4mbEHp6wXD9lnJZ8l TnTT8UgAnnC6PdJYB2XoMlkbZyQMk08= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Shakeel Butt Cc: Naresh Kamboju , Linux-Next Mailing List , open list , regressions@lists.linux.dev, lkft-triage@lists.linaro.org, Linux ARM , linux-mm , Stephen Rothwell , Andrew Morton , Ard Biesheuvel , Arnd Bergmann , Catalin Marinas , Raghuram Thammiraju , Mark Brown , Will Deacon , Vasily Averin , Qian Cai Subject: Re: [next] arm64: boot failed - next-20220606 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 09, 2022 at 10:47:35AM -0700, Shakeel Butt wrote: > On Thu, Jun 9, 2022 at 10:27 AM Roman Gushchin wrote: > > > [...] > > +struct mem_cgroup *mem_cgroup_from_obj(void *p) > > +{ > > + struct folio *folio; > > + > > + if (mem_cgroup_disabled()) > > + return NULL; > > + > > + if (unlikely(is_vmalloc_addr(p))) > > + folio = page_folio(vmalloc_to_page(p)); > > Do we need to check for NULL from vmalloc_to_page(p)? Idk, can it realistically return NULL after is_vmalloc_addr() returned true? I would be surprised, but maybe I'm missing something.