Received: by 10.192.165.148 with SMTP id m20csp3588183imm; Mon, 23 Apr 2018 08:59:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx49arf6hYaVnZ7u3PusBO/0Zb2QdvXA8EQEeFhPVk0u8DBCP41hY3jWtoT8nTFazqxPq28Z1 X-Received: by 10.99.5.195 with SMTP id 186mr17217027pgf.218.1524499196081; Mon, 23 Apr 2018 08:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524499196; cv=none; d=google.com; s=arc-20160816; b=XzbXIBhwge7TRJ6ZjfpCfFtdv2UZNZCPiZ1np/F2aQSpDELcvBq4thex8GJP10T7yo FBRpaL1a3T0TZrFleMLEA1VFcSOhuIuKR1TUldsBPvnbrkF+/yfvGySeo3cigqj8Aztk hFWfk0dBauyNwuw/CK3m/2icWqyL+j6Qq3DpEQp9lMcjvbZrE7LjkMSbJD9HJb9QdHas 6HB+iU5IkRdfbAuNtCMjfpCN6FVJenTo62MDEcCkKcD+Xrnj6BJCokjGNB9UvJX7IYv2 pSDmz3V2azQnRNTvZ2cgemrSj6iuQ5rjEvaeO0F5f4Hm4AXSHAmKFm/Kdd6omUypDdpQ WlxA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=L6xvQNJAHFFMq+1/LDmx1viWkFlFPOzJtlbqjBMCzUA=; b=P6+96niT1YLp3pVAuAsUvcq7X5b2EQ/z5k207cl5oEI6KTpDZQuf0sFcb0x6mRZfAv /FptgrR4dMEZlwKctu7YSBbuEnb79WfmJkHFNeaAsnae3ghFkRjgJ1eBkNgb/OWu1C3F FmdSoq13HZhfyGQC9/gdxEHc2dvdVZsXPDi4YP+YBJETxpdM5m/BWkKx7qqEp0Jf/laH RUHxhrWuIh5ExBhtzoxZp07M0TRey6WYStippDEpwoCVJ2rIVpWizGT9YG31liKXal5K OpkvkRWyLEeT3j57zHCjIhyQGmFnTu3d+3A0JeswizWS2oLThSG8wV5bR97FPvul9DHb RrDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=eYypdAUE; 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 e4-v6si11913856pls.268.2018.04.23.08.59.41; Mon, 23 Apr 2018 08:59:56 -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=@thunk.org header.s=ef5046eb header.b=eYypdAUE; 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 S932134AbeDWP5p (ORCPT + 99 others); Mon, 23 Apr 2018 11:57:45 -0400 Received: from imap.thunk.org ([74.207.234.97]:46622 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755858AbeDWP4v (ORCPT ); Mon, 23 Apr 2018 11:56:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; 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:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=L6xvQNJAHFFMq+1/LDmx1viWkFlFPOzJtlbqjBMCzUA=; b=eYypdAUEfpUqJkOn7uVqNjXMQL +9Qoqim4kTp+IWQvdsZC0IwyZP59Kgm7iOoAnabAlHOlpd8Vz6jhCBYIiJUG+pfY1SgdlKRxS+69y qUyz/c+cfQGSrIEFIh9FqNV9cb7EXhJf7XrnCIVoJ4BSFegzJvWqZ44TtSUYE6sn/TfE=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fAdpX-0004HL-EX; Mon, 23 Apr 2018 15:56:39 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id DF2EF7A3C0B; Mon, 23 Apr 2018 11:56:37 -0400 (EDT) Date: Mon, 23 Apr 2018 11:56:37 -0400 From: "Theodore Y. Ts'o" To: Tetsuo Handa Cc: 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: <20180423155637.GB8194@thunk.org> Mail-Followup-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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201804231921.DGB18791.QOVFLFMJFtSOHO@I-love.SAKURA.ne.jp> User-Agent: Mutt/1.9.5 (2018-04-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. - Ted