Received: by 10.192.165.148 with SMTP id m20csp1626565imm; Wed, 25 Apr 2018 23:06:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx48HGx0BBNgLz6QUz4b1nyepYP3vjnHZNOlI258tHWDZQi6lGIqRZr8B13S85AxTmAZqgfeZ X-Received: by 10.99.183.11 with SMTP id t11mr23378483pgf.193.1524722766027; Wed, 25 Apr 2018 23:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524722765; cv=none; d=google.com; s=arc-20160816; b=HhqDOBgrc+IwUSQuSqKSJMPVOGccdizDNPajeSvYjYjklmhJ7Cs5whaL/Dga4MJHdi KuujtSatFcdhgQiYbPXTO1118lwKkcHnTgl7dWvSCAfs4T8T4pkXhjYQO9GZgLkgbLb/ SaMIRsl8oU/I79/Yuu1G4wSA5YipphfAWYXaFIxBJ7DkVS97SECoAqnwG84Ouh6/9tqI LbpJFU6WH53xQZIdFZ4iHJxr52ZWngHmeBYBPmBTg0tYHuOp66ZXYrtUbUKR61MORH9w QceyYk3E75jGRxbKq16I5OuP1EsMGo3rqtrH1xniJew9kyGRw717Sp5D1paF5oTuhZpj h/jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature:arc-authentication-results; bh=sbxo5w3QA6rIxfvZK5Wyyf0B7KXHfG6E/9+3tcxEF8A=; b=gCJOo85m93TWzYI0GA9l2GeGkEQjrcM9yYLnUG1f0MI0Q518JtMFmBkkmjhmBWScBt opdSKGu9/Y2EkEkXwzYiToui+Xv6tY0FkdgSpRL1ZBa+ZcKY+hOzqEiKRe5XF1xGc8tq ecoHr6v1YP+AjszkSnUrCDR5jwf5QuY4xLTu39EPNs+fGhGhdngpZ8TlVYsMSK52ILA+ a8UMQBP9UUqmxumsYXsCSHVlt9HluJcEhSkUsKB/kUUwoLUHt0X/qRLcLYWHjlZR6jck F7tzKFCSErqP5iTIaUIdsRqNSYU/7RzOYw5MFHDJGTcEFO8gSbaPB+JQi3pWJGxOjUER K46w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Cv9OO/+H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si18437601plt.98.2018.04.25.23.05.51; Wed, 25 Apr 2018 23:06:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Cv9OO/+H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752251AbeDZGEm (ORCPT + 99 others); Thu, 26 Apr 2018 02:04:42 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34686 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbeDZGEj (ORCPT ); Thu, 26 Apr 2018 02:04:39 -0400 Received: by mail-wm0-f66.google.com with SMTP id w2so7180814wmw.1; Wed, 25 Apr 2018 23:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sbxo5w3QA6rIxfvZK5Wyyf0B7KXHfG6E/9+3tcxEF8A=; b=Cv9OO/+H9gmwYrYfbzSXd958PmpM5WbcXdoWcG/h2qaqRDUBLYsC/+8kLC5UQRX0rh 8TtvBlWtpXoO0CL1kD66sQj9uKydt2yuvLS+rn02GcTxKu1YkUxhMMtnAQT8WBrEEM5X qc/uat39lkYpfcbikfNO12aXSC6Eg4Tp05ywEz8Nij1k50Rgt6NfY07tdZ0hBLijSsdJ X0vYS+5xErMpD1X+I8nQLf/QkZwMvtyxRnv+rz8BA9PHscw8fqrKMx46auoPd/GiUlrB MQmmDtP3NFI9VuDxTL4oYa679hew2wkUMI0TUJkC/EU25hq+xGT6Lkh00v3zweMOtaTx URFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=sbxo5w3QA6rIxfvZK5Wyyf0B7KXHfG6E/9+3tcxEF8A=; b=fcqs//GhVdl/DUOBXBgmMGMDa62lTYtOVdqlDRU0M4M3MOuP3nFsitXcniSoaPrxRh Z0Z8BDBppAVrZlPx2tbB7TkO4ATEeXmeSvGV6Ot6gBkAW0F5YHcKCXOGlwmFKmb18Z4R RTaVXw1aP0S/MFpqzfb9fvBZdsaYS7FHenRJue5LNYlu0JUTjuUuIy8hbXwK035y2QyR yct+C62RBI20A0r0fdXxK4rbvGWfM7tQYI62KkmqKatwzOJYL+8NGg/mRLhpD95PhPqL MXi7oyatTI9GB9H/X58I2rl0w2frw24ImaxNkmZ9vl74iKEbrMSu7zR/nXQPVuLezkGG +SrA== X-Gm-Message-State: ALQs6tANzRKxfZRlRFNQ70SmQ0ali2vqWaB0QcHSG0mM2+l7fQabe3Fj on7Rg9X9tWDcAm3Wna7x+DM= X-Received: by 10.28.91.209 with SMTP id p200mr16000534wmb.11.1524722677914; Wed, 25 Apr 2018 23:04:37 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id m9-v6sm4527957wrf.72.2018.04.25.23.04.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 23:04:37 -0700 (PDT) Date: Thu, 26 Apr 2018 08:04:35 +0200 From: Ingo Molnar To: "Theodore Y. Ts'o" , Tetsuo Handa , gregkh@linuxfoundation.org, ben@decadent.org.uk, linux-kernel@vger.kernel.org, stable@vger.kernel.org, jannh@google.com, stable@kernel.org, carnil@debian.org Subject: Re: [PATCH 4.9 75/95] random: set up the NUMA crng instances after the CRNG is fully initialized Message-ID: <20180426060434.b7fwrem77ht7n5qa@gmail.com> References: <20180422135210.432103639@linuxfoundation.org> <20180422135213.491879480@linuxfoundation.org> <49fa7d5f484a06f02946afec0688c33849e018de.camel@decadent.org.uk> <20180423071520.GC28186@kroah.com> <201804231921.DGB18791.QOVFLFMJFtSOHO@I-love.SAKURA.ne.jp> <20180423155637.GB8194@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423155637.GB8194@thunk.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Theodore Y. Ts'o wrote: > On Mon, Apr 23, 2018 at 07:21:10PM +0900, Tetsuo Handa wrote: > > Greg Kroah-Hartman wrote: > > > > I think this can be fixed by backporting commit 4a072c71f49b > > > > "random: silence compiler warnings and fix race" but I'm not sure > > > > whether that depends on other changes. > > > > > > According to Tetsuo Handa, it's also causing problems in mainline :( > > > > > > Ted, any thoughts as to what to do here? > > > > (Resending because Webmail post was rejected by both stable ML and linux-kernel ML.) > > > > Subject: random: GFP_KERNEL|__GFP_NOFAIL allocation from IRQ context > > > > Hello. > > > > Commit 8ef35c866f8862df ("random: set up the NUMA crng instances after > > the CRNG is fully initialized") is causing sleep inside atomic warning > > due to GFP_KERNEL|__GFP_NOFAIL allocation from IRQ context. Though it > > unlikely sleeps because there will be enough free memory at boot up... > > > > Please don't backport that patch now. > > Yes, please hold off on this in the stable queues as well. What we'll > probably need to do is call defer the processing to a workqueue in the > CONFIG_NUMA case. What's the resolution here? It's still triggering upstream as well, as of 69bfd470f462: [ 8.881634] dracut: Switching root [ 8.994899] ================================ [ 8.999338] WARNING: inconsistent lock state [ 9.003760] 4.17.0-rc2-00151-g43ae031-dirty #1 Not tainted [ 9.009389] -------------------------------- [ 9.013803] inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage. [ 9.019956] swapper/2/0 [HC1[1]:SC0[0]:HE0:SE1] takes: [ 9.025244] (ptrval) (fs_reclaim){?.+.}, at: fs_reclaim_acquire.part.87+0x5/0x30 [ 9.033598] {HARDIRQ-ON-W} state was registered at: [ 9.038628] fs_reclaim_acquire.part.87+0x29/0x30 [ 9.043568] kmem_cache_alloc_trace+0x2c/0x240 [ 9.048248] alloc_workqueue_attrs+0x29/0x60 [ 9.052755] workqueue_init+0x4a/0x2e4 [ 9.056741] kernel_init_freeable+0x108/0x286 [ 9.061335] kernel_init+0xa/0x110 [ 9.064974] ret_from_fork+0x27/0x50 .... Is there a fix or a revert that can be tested? Thanks, Ingo