Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp716642iol; Thu, 9 Jun 2022 12:22:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0kFAFPH/OZ0ntNgdPfHUSrWmma7pLpekmqvWJVF7blYSwoUrZ/Rvc0YQWSDdHadnFhAsO X-Received: by 2002:a63:8541:0:b0:401:9c13:ffca with SMTP id u62-20020a638541000000b004019c13ffcamr3327712pgd.417.1654802535607; Thu, 09 Jun 2022 12:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654802535; cv=none; d=google.com; s=arc-20160816; b=0wHFuVM5mszEzlZEJGQZWTxC+hCSZHJzUlp6WmcOigkteLJJEZWJcWGapUUCIQFO2z GG64T+6oARBJvfGO4ez/5rKDj8DOf0mbjBM5wxxlcI+pk/IW07XPmpOOm2iFjl68/0Sj F+bJF1S5oPflkFiZ9uiqKGEW90MqrXlT4pk90RIfXRBCngtgD1u8u+DAM7Wx5zxCvX2G o8gkUd61A9YS6jVCWQ4xL8ViFjm5C/R86IPzpad5BrGbzmuc4WxH8UC9ofidr2B6cLCZ 7tFMcZLfOFztCWWdVGpJm1V/eYjHT7xivEo2QmDZWKxzr6jKsHlKGG8ytkPIgvnoiNx+ HsPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=FSSm+9bvhgEmW3qoBTTPNjVhREVEJPEtoEmaPEajWR0=; b=iHizRrqqfOvmDdHifyvzLwqKNV+BhK/tBQZeK2IkZ7XkYokqqlcFU8H3R6WtSk1hDn thiwEzPfaL7k9YA1npUkovtQ+gSuAAlRBsLqes4Ev0yM7Op1zwqYDbf4RZFQhZGZ4dc4 +nUq+hefUeDy6TB0XCWpmE6jFVWNdy58HjijhIcABCbqArs0JkNzgHwFpYNTOI/08rd9 tPVQQ/NI8+w91Erv296Lt73Tg0ZKASdAEgfMZda6gVhsniLnbtE/3jTdFXxljAT6hfJ9 XTs8oedtHe2kEswE6UsEDhbbJP6Vgl9dCYYJ5byOJQ55QIF1e5rQ2gIwaYlI5tur7/wl VPZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rheQX3q5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v69-20020a638948000000b003fb0b7af2d9si33102555pgd.731.2022.06.09.12.22.03; Thu, 09 Jun 2022 12:22:15 -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=@google.com header.s=20210112 header.b=rheQX3q5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233030AbiFITMb (ORCPT + 99 others); Thu, 9 Jun 2022 15:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbiFITMa (ORCPT ); Thu, 9 Jun 2022 15:12:30 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDFE52DB339 for ; Thu, 9 Jun 2022 12:12:24 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-30c9a01d1c5so209061907b3.11 for ; Thu, 09 Jun 2022 12:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=FSSm+9bvhgEmW3qoBTTPNjVhREVEJPEtoEmaPEajWR0=; b=rheQX3q5gm+JqSEPnyXRm/4V7W847eNbvPvWjho1z5A7iYu9qZG/QjrtIcm4n1niXG rJROrAAjr6HekwElPZeErWzAOok/nOt063R5M8MoppcY4F4jY+4KzKSc6gk2rAS4IuQ6 b0l47RWbk1Z/tTPflBmxlJKWLgVes51IP+opL/9jJT5IyyreMc+B5NLAjeh1RnODi91E 0xZdl4+3VAXQH7OmL+yCPxVxcx6yJ2kEGSaqY8kSJWQ7YY2h1RdKTHdEXHPeBPXQxhE9 sDpJ3yJwReNTK8lhgDhf7cTLR/6tuDelqot4KYeJjucgP8LFzBg0+UgnNy2626a5sz+U /Qfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=FSSm+9bvhgEmW3qoBTTPNjVhREVEJPEtoEmaPEajWR0=; b=yxXo5+YEEM4tLHB+0rZM/G7G/+Y7cYWf+93VHj6WyBEZOKRJmJsATkbRHDH+iAjY39 Ym/A5hM4a12o+IlRy1RQqtOp4nHLx5zdxwyfbebkQN7bD2b30H17Fz3ISGiwNL68n2nW JqEE0fnwaaVxb6ecfwz+mOoxCnG0bCkfvuEQwp8lXHkcEInD+nEoLmHvo25Y5sWvXhEn /xV/0XnNlIAYzpPq8GIriDXQy87GE/nAO6tG0I4uvtwqGgN/JzXnTrAvQljYVYhTFnQV buk2fB+NjVbTCtexRrMtHkXLU8nZBVsO7s/O0fkbJZCX75FwF9Fj0qgcyT3vYxU3dr9S 6QNQ== X-Gm-Message-State: AOAM53035wGatjA6QMqofX8aAtoof92J2P1k6+Tg0GFbHCG8uN1IzEHo IRaPXtwFuGHqD4CudmsXiuXTsQ/Uw/FkxQ== X-Received: from shakeelb.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:28b]) (user=shakeelb job=sendgmr) by 2002:a25:d803:0:b0:663:3da5:9813 with SMTP id p3-20020a25d803000000b006633da59813mr29071178ybg.530.1654801944110; Thu, 09 Jun 2022 12:12:24 -0700 (PDT) Date: Thu, 9 Jun 2022 19:12:21 +0000 In-Reply-To: Message-Id: <20220609191221.rv3lqbhipnvvzt67@google.com> Mime-Version: 1.0 References: Subject: Re: [next] arm64: boot failed - next-20220606 From: Shakeel Butt To: Roman Gushchin 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 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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:56:09AM -0700, Roman Gushchin wrote: > 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. is_vmalloc_addr() is simply checking the range and some buggy caller can provide an unmapped address within the range. Maybe VM_BUG_ON() should be good enough (though no strong opinion either way).