Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2479136ybf; Mon, 2 Mar 2020 09:26:27 -0800 (PST) X-Google-Smtp-Source: ADFU+vt2SMRdQblK03TItL8HK0U2hs6m0IjStINijj0z7Vq5/s41c0D2rC7XAkvIwiD4U7StSoF/ X-Received: by 2002:a05:6830:15c2:: with SMTP id j2mr157826otr.351.1583169987077; Mon, 02 Mar 2020 09:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583169987; cv=none; d=google.com; s=arc-20160816; b=qOJCD8t4vd2kwIT94W7ym9sAAHcZEdNxKIl7vc6qnD9rfx/ANvITSVOUcR85EQQqlk ShakDT7a86dMxQoFB8Lqmz58hGwf9o0LC+Jcu6kNM3EEALSoQKn8YynDvkCsCX680Ex3 MUcrqMvzpnMgix5QiVY98EHX5eF0QDW4mMPjl8PPc7GEzwJ5vp4uC2TYVmDU4bJt2WMK JZXPXJK9N7CHLCShblUc0ppZpxRBhLq7yk8iZCq4dh6fzpxQfMLFxbMv/Zwhm5x4i5IJ AXJx4MQOl/8nJGasCJyOQoVr0LgJvUzJ+/dIwzNsVI72/yBXyctJc8nsytv/QRq2kgfd hj9Q== 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:cc :to:from:date:dkim-signature; bh=ljzd0Xe5Fg4CocMgwn0S+I3dakdjPxi3oE8VRnoUYlA=; b=wl0WtBXyZfjJTA2G9XWrAS3KEgGxs8PxPftoUvt6jq04EOUMszMGMdyJ6AvmzwBk3Z uzJg7tr67KmgaZJR6czUf2KgB3rg0Hg4kYIpasVbPVXA1HkQh4hmfVVCgGV5Iwh61zm1 qc9OFKZt9HTGn/KAOqsvQZHNoXBhCNOSPDs5eSuXwzcxEbUH0f3Z4VB1I4zqXLm8rR9/ 4s8FVNLI23NzmgGKtcRF1rl/Civv3jqi06zLar1xoY5BCoOWx30mdvaeyA1RXjMXZjGj EQGHqnkrprUR/xzADpbADUUpVu15e5l/yJz7tAYkssMnwiePz/rTpPag25yp/thveTSx lsqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=QD8LDPW4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si985708otr.64.2020.03.02.09.26.14; Mon, 02 Mar 2020 09:26:27 -0800 (PST) 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=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=QD8LDPW4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbgCBR0E (ORCPT + 99 others); Mon, 2 Mar 2020 12:26:04 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:41248 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbgCBR0E (ORCPT ); Mon, 2 Mar 2020 12:26:04 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 022HNPGX098653; Mon, 2 Mar 2020 17:25:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=ljzd0Xe5Fg4CocMgwn0S+I3dakdjPxi3oE8VRnoUYlA=; b=QD8LDPW4X4pP3Con9UBGU9spo1eN7BgyyLl2aaHLXXLnwzk0Qx4vdqZdf8ZMWkjjTeo4 CMAQVzOkEBd0Y6TmMKsWVwsDp/sIBjRKPv/bGoEfSx16UpOs9oB8ciCwcVYfbrb4fuBu Nup7nbhTzspfk2D0qhMeC6RQ9NKfLsqajXyzsd8Kw31dERKjDye+JJCOepCaM5wwd9B0 jwPGl0IHxIRzk4b4lTHcejqlVB+6RvmGiNeFiuMLmEuRL8nBvZoFfxpYT6XFwrBotfL3 ZVrQ0Ah/pRiH61VjRTtuDnHv95rTjENPCWER6Qq/kWauhSD4Qkz4etN7scSEcfiQCoii Fg== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 2yghn2w29v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Mar 2020 17:25:51 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 022HNEF1072297; Mon, 2 Mar 2020 17:25:50 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 2yg1rfy3qk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Mar 2020 17:25:50 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 022HPnkq015255; Mon, 2 Mar 2020 17:25:49 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 02 Mar 2020 09:25:46 -0800 Date: Mon, 2 Mar 2020 12:25:10 -0500 From: Daniel Jordan To: Corentin Labbe Cc: Daniel Jordan , Will Deacon , tj@kernel.org, jiangshanlai@gmail.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org Subject: Re: WARNING: at kernel/workqueue.c:1473 __queue_work+0x3b8/0x3d0 Message-ID: <20200302172510.fspofleipqjcdxak@ca-dmjordan1.us.oracle.com> References: <20200217204803.GA13479@Red> <20200218163504.y5ofvaejleuf5tbh@ca-dmjordan1.us.oracle.com> <20200220090350.GA19858@Red> <20200221174223.r3y6tugavp3k5jdl@ca-dmjordan1.us.oracle.com> <20200228123311.GE3275@willie-the-truck> <20200228153331.uimy62rat2tdxxod@ca-dmjordan1.us.oracle.com> <20200301175351.GA11684@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200301175351.GA11684@Red> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9547 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 suspectscore=2 malwarescore=0 adultscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003020116 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9547 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 spamscore=0 impostorscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 suspectscore=2 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003020116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 01, 2020 at 06:53:51PM +0100, Corentin Labbe wrote: > I tried to bisect this problem, but the result is: ... > # first bad commit: [81ff5d2cba4f86cd850b9ee4a530cd221ee45aa3] Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 > > The only interesting thing I see in this MR is: "Add fuzz testing to testmgr" > > But this wont help. Hm, that merge commit has only a couple lines of powerpc build change, so maybe there's something nondeterministic going on. Does this fix it? I can't verify but figure it's worth trying the simplest explanation first, which is that the work isn't initialized by the time it's queued. thanks, daniel ---8<--- Subject: [PATCH] module: statically initialize init section freeing data Signed-off-by: Daniel Jordan --- kernel/module.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 33569a01d6e1..db0cda206167 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -88,8 +88,9 @@ EXPORT_SYMBOL_GPL(module_mutex); static LIST_HEAD(modules); /* Work queue for freeing init sections in success case */ -static struct work_struct init_free_wq; -static struct llist_head init_free_list; +static void do_free_init(struct work_struct *w); +static DECLARE_WORK(init_free_wq, do_free_init); +static LLIST_HEAD(init_free_list); #ifdef CONFIG_MODULES_TREE_LOOKUP @@ -3501,14 +3502,6 @@ static void do_free_init(struct work_struct *w) } } -static int __init modules_wq_init(void) -{ - INIT_WORK(&init_free_wq, do_free_init); - init_llist_head(&init_free_list); - return 0; -} -module_init(modules_wq_init); - /* * This is where the real work happens. * -- 2.25.1