Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp268448rwb; Mon, 26 Sep 2022 12:05:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6T9PTZjkJmP+Vk3hgioQEniDlUJ48v+5LAejOoLvlo3ehxdfaqx+AVEgcxCCr0rqbN3kbq X-Received: by 2002:a17:902:f816:b0:178:3bc6:dfd with SMTP id ix22-20020a170902f81600b001783bc60dfdmr23148244plb.10.1664219117234; Mon, 26 Sep 2022 12:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664219117; cv=none; d=google.com; s=arc-20160816; b=nB0yKmSJQm7Wj01rWOVbH3hAv7Kj+yu+RkZ/G4CR20uHPL4+zBufWVeIIbIbBfYTQ5 FuXCKofOVTMvnqXiWjA2pNvsQHaSRZAfJBo0/E4WBuNTS9b6C+fx3nkAVZvs5NamP4Nj uawzVxDi6wM4nDpNCrpSFOWcXwSiE+P+lZ1u6TGodEhE1uMrkvrrcUBvzuoNhUnBXAf1 bM02sW66Ky0pzD0ynW7M8LIjr7DRCQ9mHPD2RNwV8SZHJCIEyS6F0zaQhEhE2Onam5I1 PLGkUnMvBrZEGtpevKBAQcZEHEahBnEbF7ik1hO8yZQYM6W0r/Tbd61PFndvcySjwPK4 a5gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TOL7/M5VC7IyaSB3mrG/Ev31pWD9V/lWqppYMcTBfKM=; b=Ni7KmbSm4wLTqy4aACvJPKpulYGwl69mvYVcdbOo6GyHGNL60YyPrGWmbP8r9sXQs9 8LcdFVeSMujh30KLHVQipKHzQNGMpXj6QS0cnQ3ExsfAR6LSUIyf02ChAkID5aXhetR5 /Cql/CIYnmKcmIZMAQTaD8hJZlatt1nw9/0MmnV/Syqi3fZDZxtLZUfLc2+xOBrmO6wv kzp0LUhOtNmpPUW929RZMUiwWu+hneoAcFg/5r7RHWBdM3BjQogpY8ZRk6GA89bSq4Dr tfUuqmQPlYsItgmUOiMjMB80JWeaBG0tFtcBFMdq4hs9zqZHmsHkLvH1phkL3taDGaD3 uMTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="p6wexZ/Y"; 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 b14-20020a170903228e00b00176a0d8780csi14522796plh.285.2022.09.26.12.04.59; Mon, 26 Sep 2022 12:05:17 -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="p6wexZ/Y"; 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 S229968AbiIZR4U (ORCPT + 99 others); Mon, 26 Sep 2022 13:56:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiIZRzj (ORCPT ); Mon, 26 Sep 2022 13:55:39 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A56FF642F9 for ; Mon, 26 Sep 2022 10:33:01 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id p69so9383273yba.0 for ; Mon, 26 Sep 2022 10:33:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=TOL7/M5VC7IyaSB3mrG/Ev31pWD9V/lWqppYMcTBfKM=; b=p6wexZ/Y0XqAhWAhWQ77q6u0CZ18nCzFEAe4bvVo7S0nEW6WuU84QbuIrXyLDHCaTI 3KVY8/kPjnuU77CzmlnP2RX4B3VTuD+DX8rWAEp9ezkmsub624war7PTzocq0HhayQIP GMxA2Fj0qaw1SQGShM7S0FWzngjRfNeVBrilh6JsDYrekTU3j+x+9dO9Jg8FhujrX5gZ /TgpCO0SU+Id76XQMhc88uxX0Gxua10lmdNBqa+I4rCCzSzqO6kIbK1MKmXUlUBcdR1P LOKdsKRMbjEv0YfhCObzK+sUJ9DWdA8R5U5Pli/Q77cTZRdgCOChdjHXdIV50NkngFID P8Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=TOL7/M5VC7IyaSB3mrG/Ev31pWD9V/lWqppYMcTBfKM=; b=mFg/M6efY959xHIazyTfaHojo3Pe5tD04/rRVoUSm/4La6e79GlOo1ayK2GdxJwKtr OWiGd7I77l9IIuCvMLhZ7+zpxhWKROqr4O8Sw+VQcylaXMAQ+MqjD/TnYk4KhEgbp3cS Aqz2nueIzO7qBnAqACMzRL2hpQFUCOLoFHdQ7eKWjMzhRzAl6FNNCm9NSosg1G6jLlUH xz79inIezmmPllmtUisi2o8cjzJUc0bKUBAC3lCvnTGfrGErA8uek/MskdkMcgviuyNa Js8PaMpCmuY3OLytZ3vDaXos391B4AERz4DYDMOEL9maOcaq1o77QeQes6U3stKZmigG wydQ== X-Gm-Message-State: ACrzQf00WGxgM9e+mZ7pC2mzQXA31ULtwdhjsHGkt7PIHLax05kHnbqm vVhK2w+soqDNQ8daNu1crjPVSpnBqPdcd+ZFovyvxw== X-Received: by 2002:a05:6902:102c:b0:6b4:86ac:1436 with SMTP id x12-20020a056902102c00b006b486ac1436mr21059512ybt.368.1664213580392; Mon, 26 Sep 2022 10:33:00 -0700 (PDT) MIME-Version: 1.0 References: <6b362c6e-9c80-4344-9430-b831f9871a3c@openvz.org> <20220918092849.GA10314@u164.east.ru> <20220921170259.GI8331@blackbody.suse.cz> <20220926102812.2b0696a7@kernel.org> In-Reply-To: <20220926102812.2b0696a7@kernel.org> From: Shakeel Butt Date: Mon, 26 Sep 2022 10:32:49 -0700 Message-ID: Subject: Re: [sparc64] fails to boot, (was: Re: [PATCH memcg v6] net: set proper memcg for net_init hooks allocations) To: Jakub Kicinski Cc: Vasily Averin , Anatoly Pugachev , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Andrew Morton , kernel@openvz.org, Linux Kernel list , linux-mm , Roman Gushchin , Vlastimil Babka , Michal Hocko , Florian Westphal , "David S. Miller" , Paolo Abeni , Eric Dumazet , Cgroups , Sparc kernel list , Thorsten Leemhuis , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, Sep 26, 2022 at 10:28 AM Jakub Kicinski wrote: > > On Mon, 26 Sep 2022 16:06:08 +0300 Anatoly Pugachev wrote: > > On Wed, Sep 21, 2022 at 8:03 PM Michal Koutn=C3=BD w= rote: > > > On Wed, Sep 21, 2022 at 05:44:56PM +0300, Anatoly Pugachev wrote: > > > > reverting this patch makes my sparc64 box boot successfully. > > > > > > The failed address falls into vmmemmap region (per your boot log > > > output). It looks like the respective page/folio (of init_net struct)= is > > > unbacked there (and likely folio_test_slab fails dereferencing ->flag= s). > > > > > > Would you mind sharing your kernel's config? > > > (I'm most curious about CONFIG_SPARSMEM_VMEMMAP, I'm not familiar wit= h > > > your arch at all though.) > > > > mator@ttip:~/dmesg$ zcat config-6.0.0-rc6-00010-gb7f0f527dc3c.gz | grep= VMEMMAP > > CONFIG_SPARSEMEM_VMEMMAP_ENABLE=3Dy > > CONFIG_SPARSEMEM_VMEMMAP=3Dy > > > > I do upload config and boot logs to > > https://github.com/mator/sparc64-dmesg > > > > building a new kernel version/releases as 'make olddefconfig && make -j= ' > > current version of booted 6.0.0-rc6 is available as > > https://github.com/mator/sparc64-dmesg/blob/master/config-6.0.0-rc6-000= 10-gb7f0f527dc3c.gz > > Forgive my uniformed chime-in but Linus seemed happy with the size of > -rc7 and now I'm worried there won't be an -rc8. AFAICT this is a 6.0 > regression. Vasily, Shakeel, do we have a plan to fix this? I was actually waiting for Vasily to respond. Anyways, I think the easiest way to proceed is to revert the commit 1d0403d20f6c ("net: set proper memcg for net_init hooks allocations"). We can debug the issue in the next cycle.