Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5959313pxb; Mon, 14 Feb 2022 11:43:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFvSGs2r7+jDeDdm5Bzz6HM6BboN8GZAr9qHBoudaBAe+feRL6rml9nNZyZWQC36feqL83 X-Received: by 2002:a17:903:110c:: with SMTP id n12mr577801plh.166.1644867794159; Mon, 14 Feb 2022 11:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644867794; cv=none; d=google.com; s=arc-20160816; b=zJn58aXswNPS8aDriX9yjPZYOJnO1Hd7WmNSfFBcDArQTd0mlsMIBLUyr7RVvaj7QV zVqW+yLRDrgnLG9MZiKzF9nMMPDyWlDTRPHur3BTdXr71zT/XyIQLL+VO7VECjTwnRGs tTOA5D/TeoH66oXFN/ldEKyChbstLzOpdREAYiElyPI0el4cp8/nGWAUWTUzXxS71XjE 3INSV+0zvXbvVMXH6La+1xyzemk6fs2rygxj/LEYihCNpL2H+MMSOO8a9h4XvgXOFGy9 rFGlLsP4EOgUh2s2MDx1zBsZAVAG0IWFx+oKZnGJ6e4uCfeJW5dbsEWRKvzgFyb6UWmK iI/A== 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:date:dkim-signature; bh=/kVIgFJ8ubFPieTzVWtZtI9HqscvRt6tDLYaMfGuR94=; b=AUPc62i96ZNZNgTnFHtpLZcr7SBdByY3ns8HrW27N2u/4deuREFTq2Ap1MqQRMro9J ZT/HqcWOGldxUUrs2moOfcVgTMYNO1hDqIi5y1/q48932WYJlAu81nmrWBZN5th3xcyQ C+604QtB6XU9iGugucn8Sqv2uh2uiIeBoqGlW58VfxbfYopvBKPE7TPnkRjo24k6cpKe GPFAcJAK/Xj3A2EncEunG4E8Oayt6KXGPEWSjZ2WSKO8E8qRu6RJHgxSTd+izUUh/z94 8EI3p7+OLfX6EZKFVv1UbU/bm/zTaSNMOYJcffsvolqkcNjoNrQ0U2SAgIRmuiX4Zoik 5AcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="r8H/h8Ig"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id on14si13164691pjb.184.2022.02.14.11.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:43:14 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="r8H/h8Ig"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46B8590CC6; Mon, 14 Feb 2022 11:28:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241625AbiBNJmD (ORCPT + 99 others); Mon, 14 Feb 2022 04:42:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244595AbiBNJkr (ORCPT ); Mon, 14 Feb 2022 04:40:47 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B54A1B85D; Mon, 14 Feb 2022 01:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/kVIgFJ8ubFPieTzVWtZtI9HqscvRt6tDLYaMfGuR94=; b=r8H/h8Igq0GzYQRu9lX+4vZpkz PZT8xyiFTwmYfH8zubh1ywbnAQuGsxBwPjrNNrXA/o5U2JjK2PG0V0xRX/sJIDHEu54dC9/6UiQmL F+Y3JW1EqyYpAxhmND0M+vmbJxIzO/juCEX+l1Qxgp3yY0pks+vRezLo8UnjVQpQDnV21BZMIq5eU cLBiNTmqSIIC6wmCTCn7UcAw94DlAlbMufV+uEMoQM32jv5F+3qmu69tvjWwB6IZXb47Xsbg77XjX QWG7HLXHrI/r9z3omtqEEq49GOXiD1gj/PIcUnY9oVdJvwe1GhbBV1iVjaieum7WgA5MFUOuUx9Vo TDY7Hsgw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJXlV-00CkQY-Gv; Mon, 14 Feb 2022 09:35:25 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CF6CF300472; Mon, 14 Feb 2022 10:35:22 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 94416203C074A; Mon, 14 Feb 2022 10:35:22 +0100 (CET) Date: Mon, 14 Feb 2022 10:35:22 +0100 From: Peter Zijlstra To: Paul Menzel Cc: Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, Josh Poimboeuf , Jason Baron , rcu@vger.kernel.org, LKML , "Paul E. McKenney" , Zhouyi Zhou , christophe.leroy@csgroup.eu Subject: Re: BUG: sleeping function called from invalid context at include/linux/sched/mm.h:256 Message-ID: References: <244218af-df6a-236e-0a52-268247dd8271@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <244218af-df6a-236e-0a52-268247dd8271@molgen.mpg.de> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sun, Feb 13, 2022 at 12:05:50AM +0100, Paul Menzel wrote: > [ 0.012154][ T1] BUG: sleeping function called from invalid context at > [ 0.022443][ T1] [c0000000084837d0] [c000000000961aac] > dump_stack_lvl+0xa0/0xec (unreliable) > [ 0.023356][ T1] [c000000008483820] [c00000000019b314] > __might_resched+0x2f4/0x310 > [ 0.024174][ T1] [c0000000084838b0] [c0000000004c0c70] > kmem_cache_alloc+0x220/0x4b0 > [ 0.025000][ T1] [c000000008483920] [c000000000448af4] > __pud_alloc+0x74/0x1d0 > [ 0.025772][ T1] [c000000008483970] [c00000000008fe3c] > hash__map_kernel_page+0x2cc/0x390 > [ 0.026643][ T1] [c000000008483a20] [c0000000000a9944] > do_patch_instruction+0x134/0x4a0 do_patch_instruction() rightfully disables IRQs, but then it goes and tries a memory alloc, which seems a bit daft. I'm thinking Christophe might know more... he's recently been poking at Power text poking..