Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4416410pxv; Tue, 27 Jul 2021 06:56:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0e5rUu2RGKXvOfFhHPneQbaU+tVgfRV6WtZHuFnC1j5aNOdjR5jBT+kw3Aw2z1Qli1vDF X-Received: by 2002:a05:6402:185:: with SMTP id r5mr27839480edv.349.1627394189951; Tue, 27 Jul 2021 06:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627394189; cv=none; d=google.com; s=arc-20160816; b=WavikZMqV9/Je8wOsUExj6ul1zIAod/P5mETF2EIDHihlc/RtgnTvZAJGZSvyQv0EV dI6c/cu+ot+UxgMroPyxMLUOVYQViGfPe0N635PsLLN9zc3qJgacOxEw9AR+kfF4KgPu IQun/0/5m+u52IcGxxXV4ZyQ6bu3k9KlPuEfGoB8pw3r4sVSzh0UVII8cnjb57J+PYyy 03HPA86FVUOlDdWeNz31kEIKSdMQaBiNQpXPTaSkC9j8972jGjueVKWKPnzwwvvNj5uC 41KqZmPmAmbveonp8vB3G1azGyS9pLpgYvJQqt9mymwTOW/POrLar3smh5zP/mNw7vRj kbOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=94KGTGnoJcX5t7q4D/yqCZ28O/oj4P6pI9cIi1qPWfw=; b=HKnPK8WVeXFOURsNgOiwpBspAvujrv9ecuKRL4uASlqJA/uAwUBxceGLEgx1Z1Jr+2 IblM3gXt3keqHvB0XDyBQV1Ma0hu5oso8Lp6lRJDmtDuART0CFUlMk165smhHv9HUrWE 8hA9ouNjMQRO3PhX7HOzGgtDSGgaikZWtMZmgvaCMjoJKaxGHHOTWrY8acOnynDVKlg0 8KgfoDwUcN4TvTBEcGtO5BQyYIwtC1qqKcJK+2kaTKdBZ5x4+v4Ni3BT55pTnYtv+vrQ S1fWaT3VL1qk2Ju241UmBUDoUFIAKmUPwwj6SnNwwO66dbxesUH2bjKy4Q8UoIbYn+Bw 5G3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=PpF9BlQP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de56si2710300ejc.111.2021.07.27.06.56.04; Tue, 27 Jul 2021 06:56:29 -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=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=PpF9BlQP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232333AbhG0Nyl (ORCPT + 99 others); Tue, 27 Jul 2021 09:54:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbhG0Nyk (ORCPT ); Tue, 27 Jul 2021 09:54:40 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4C88C061757 for ; Tue, 27 Jul 2021 06:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=94KGTGnoJcX5t7q4D/yqCZ28O/oj4P6pI9cIi1qPWfw=; b=PpF9BlQPRed+CEBDbT7tn4qAcb sqeAfbMWYkZr6oi/FCxfJf8Da5LrxpYQGoYoX45VrHQZl7tClh+sb6iGkawibTAFuNq0tcZyrw8H2 KOesPOTKkhQo4ApWa5ljKAzgPEFgzCBw2VmDctfmf3pZvoSkEk5vcTvuBZn7vI9j0b0b2nf07MMuc iFymfGaKh/TPgiB5i+5FgiDm1+hGhpG2qi6bNMywIwym5ZzGvJBWNYfHiq3Gf+jevRdbfocvlo9vQ 88aA3tqpnjyD+6fwmLredukjlay9ctNh09gl/nVTwHhNqIj1uTeDN9EQcqJ6hSdYpIeWcGXhI+hhu 1ATdccpQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m8NXQ-00EzGA-VN; Tue, 27 Jul 2021 13:54:28 +0000 Date: Tue, 27 Jul 2021 06:54:28 -0700 From: Luis Chamberlain To: Bruno Goncalves Cc: Rasmus Villemoes , Alexander Egorenkov , akpm@linux-foundation.org, bp@alien8.de, corbet@lwn.net, gregkh@linuxfoundation.org, jeyu@kernel.org, linux-kernel@vger.kernel.org, ndesaulniers@google.com, torvalds@linux-foundation.org, Dave Young Subject: Re: [PATCH v3 1/2] init/initramfs.c: do unpacking asynchronously Message-ID: References: <87sg04p315.fsf@oc8242746057.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 09:31:54AM +0200, Bruno Goncalves wrote: > On Mon, Jul 26, 2021 at 1:46 PM Rasmus Villemoes > wrote: > > > > On 24/07/2021 09.46, Alexander Egorenkov wrote: > > > Hello, > > > > > > since e7cb072eb988 ("init/initramfs.c: do unpacking asynchronously"), we > > > started seeing the following problem on s390 arch regularly: > > > > > > [ 5.039734] wait_for_initramfs() called before rootfs_initcalls So some context here, which might help. The initramfs_cookie is initialized until a a rootfs_initcall() is called, in this case populate_rootfs(). The code is small, so might as well include it: static int __init populate_rootfs(void) { initramfs_cookie = async_schedule_domain(do_populate_rootfs, NULL, &initramfs_domain); if (!initramfs_async) wait_for_initramfs(); return 0; } rootfs_initcall(populate_rootfs); The warning you see comes from a situation where a wait_for_initramfs() gets called but we haven't yet initialized initramfs_cookie. There are only a few calls for wait_for_initramfs() in the kernel, and the only thing I can think of is that somehow s390 may rely on a usermode helper early on, but not every time. What umh calls does s390 issue? > Unfortunately, we haven't been able to find the root cause, but since > June 23rd we haven't hit this panic... > > Btw, this panic we were hitting only when testing kernels from "scsi" > and "block" trees. Do you use drdb maybe? Luis