Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4091959pxb; Tue, 10 Nov 2020 07:46:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7XX+vVd4sXrsClisx+d5SfReIclWVxHZGFwPTwMNVA3T734+SW0YWZB/+JOqc5J28G1nn X-Received: by 2002:a05:6402:144f:: with SMTP id d15mr21350770edx.300.1605023187445; Tue, 10 Nov 2020 07:46:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605023187; cv=none; d=google.com; s=arc-20160816; b=cxNM7DlsYC2bBbGybgUDqjbXQhqz0Bd2gGFnOEZTxudtLFdZ/bjoarg9CmLogVhiav w0yzzbKfaJwq0RYGxK0AgOhlivE12UIJkTj6P3llCsf6h2QITGWREj8wnYgxflKNKGDM 0vkkpxl3eXE8SfEOy7tVet5PXEO0PxbaoldDqDFXr/2WX5BcvwnNqkMHJ4hMKPdRIxBd apzr4ZpFDN4ga49ey8Vfz3L+elyNGTobo+JU+rR4eryGrcpDfOCB+nZV5FVZTEz5wGg/ G8mKCVcTR5LA0MKt+Zy4mIIXBkCh99zXiuAb0rWSNR9mzhR06hdmUFtbVpD7BXMODxW5 Flkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=s9ExljYeg+Je8eJyQiw6/bhoA2kXa/1CVIlNuBjBeNk=; b=xuRfHczbvY1t7k7ifcE4rv7GFOYJ7AIYsA/sXHM9yhqLuQNUCA2M2Usog7HEJAJ+/r mX+uEPo1+R04df3t+v8AJOogKrLtHr5WE7bqrIS0M+/hr2KQp3m0XG73a2qBpLhya9XZ L/ZtKCt+9BNlyqfxwspnFzlBlniKZN2fnpR/SaHUSerJJ3lnPpFk2McHt9OkGiJyZs7N avz5NdqLT9/FERhavfPFySA8sx7kIn0ZFm2RhOarvh+y/yU1t3YvOtUiL2jEz4+LR42U PB6DSq0kyOryoWqBM5Rk3yjNlAiAZsw36Q9Twg+yrLokBjr7HBC0lMr17WR9Wr1MLJ4e ThgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K2scR20q; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q22si9414162ejs.100.2020.11.10.07.46.03; Tue, 10 Nov 2020 07:46:27 -0800 (PST) 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=@linaro.org header.s=google header.b=K2scR20q; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730917AbgKJPmb (ORCPT + 99 others); Tue, 10 Nov 2020 10:42:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgKJPma (ORCPT ); Tue, 10 Nov 2020 10:42:30 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F072CC0613CF for ; Tue, 10 Nov 2020 07:42:29 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id p12so637178ljc.9 for ; Tue, 10 Nov 2020 07:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s9ExljYeg+Je8eJyQiw6/bhoA2kXa/1CVIlNuBjBeNk=; b=K2scR20ql8aGn1eLk2exuEqUWWxST/t3AmlOs8IP16g7svdqVLGQer6Da+pA9s5me3 NYn42hE7ul/NbS1yoff25CN+d0IzkbvrSIRJ0SM429UFQ1n4byzYNGI37CJwlmptl6fl HzMHQZ937Be2B8LvqUaFl4VgjxxuJZq4jhuxxerHkYx1Pwv2+oxPOsnnw1u6efgvXhPl 9B2XqFsJyJH/9Efvft2+V+uKSqzVOJZVuSlOE36NWO6C90QLOHBBoBpo11/Aaeo8Ran9 Tm9Z2yvzie/PYfFtY8EydyUvvmE+kk6gOoyhl5/1hfSLBK9DzfGh3BP+UF2dVEx98dCb Nu7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s9ExljYeg+Je8eJyQiw6/bhoA2kXa/1CVIlNuBjBeNk=; b=eOsKYkiJQqnZD1lF+7Bj5uegEgH2vSx3DtT4PrFTKA4HEL368b2MI3FPLqs2AbTzXw 6pnNz90l/yORwnljpGzepRoroBkn37bhNF6ePYIejyg1bj+2JJqAyW5cKtChRrqJtqwG kxCl/opYVKkf4U1dt4fexXEz/isK9oY+PplHOxuSH3BhhG81VWQ7daAAFtfJAGs8INN2 bpFYEjVT9B9j6O/scRb/cV5QqPH/EsHo8as9SFhPeJgz4HvajfmSKwWpd1jj5PHLPf4J YbNqA44mY+DfyzklI1uiEgr2mpk82+1hSBKIaTfTQe4FOPQeLn6bO1ZFm6mZ4j9TMDu/ IbuA== X-Gm-Message-State: AOAM531b/Lqh0hTTf8s7C15HLJDufDKHbeRqGCa5P9PL3padDx9rUMG0 lbfDdYVJiaNjFWOEYQPmO9il1+tQkhGHXjL+2v4Eeg== X-Received: by 2002:a2e:165c:: with SMTP id 28mr8053279ljw.355.1605022948451; Tue, 10 Nov 2020 07:42:28 -0800 (PST) MIME-Version: 1.0 References: <20201105170604.6588a06e@canb.auug.org.au> In-Reply-To: From: Anders Roxell Date: Tue, 10 Nov 2020 16:42:17 +0100 Message-ID: Subject: Re: linux-next: Tree for Nov 5 To: Marco Elver Cc: Dmitry Vyukov , Stephen Rothwell , Alexander Potapenko , Andrew Morton , Jann Horn , Linux Next Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Nov 2020 at 14:54, Marco Elver wrote: > > On Tue, 10 Nov 2020 at 10:36, Dmitry Vyukov wrote: > [...] > > > > On Tue, Nov 10, 2020 at 8:50 AM Anders Roxell wrote: > [...] > > > > > When building an arm64 allmodconfig and booting up that in qemu I see > > > > > > > > > > [10011.092394][ T28] task:kworker/0:2 state:D stack:26896 pid: > > > > > 1840 ppid: 2 flags:0x00000428 > > > > > [10022.368093][ T28] Workqueue: events toggle_allocation_gate > > > > > [10024.827549][ T28] Call trace: > > > > > [10027.152494][ T28] __switch_to+0x1cc/0x1e0 > > > > > [10031.378073][ T28] __schedule+0x730/0x800 > > > > > [10032.164468][ T28] schedule+0xd8/0x160 > > > > > [10033.886807][ T28] toggle_allocation_gate+0x16c/0x220 > > > > > [10038.477987][ T28] process_one_work+0x5c0/0x980 > > > > > [10039.900075][ T28] worker_thread+0x428/0x720 > > > > > [10042.782911][ T28] kthread+0x23c/0x260 > > > > > [10043.171725][ T28] ret_from_fork+0x10/0x18 > > > > > [10046.227741][ T28] INFO: lockdep is turned off. > > > > > [10047.732220][ T28] Kernel panic - not syncing: hung_task: blocked tasks > > > > > [10047.741785][ T28] CPU: 0 PID: 28 Comm: khungtaskd Tainted: G > > > > > W 5.10.0-rc2-next-20201105-00006-g7af110e4d8ed #1 > > > > > [10047.755348][ T28] Hardware name: linux,dummy-virt (DT) > > > > > [10047.763476][ T28] Call trace: > > > > > [10047.769802][ T28] dump_backtrace+0x0/0x420 > > > > > [10047.777104][ T28] show_stack+0x38/0xa0 > > > > > [10047.784177][ T28] dump_stack+0x1d4/0x278 > > > > > [10047.791362][ T28] panic+0x304/0x5d8 > > > > > [10047.798202][ T28] check_hung_uninterruptible_tasks+0x5e4/0x640 > > > > > [10047.807056][ T28] watchdog+0x138/0x160 > > > > > [10047.814140][ T28] kthread+0x23c/0x260 > > > > > [10047.821130][ T28] ret_from_fork+0x10/0x18 > > > > > [10047.829181][ T28] Kernel Offset: disabled > > > > > [10047.836274][ T28] CPU features: 0x0240002,20002004 > > > > > [10047.844070][ T28] Memory Limit: none > > > > > [10047.853599][ T28] ---[ end Kernel panic - not syncing: hung_task: > > > > > blocked tasks ]--- > > > > > > > > > > if I build with KFENCE=n it boots up eventually, here's my .config file [2]. > > > > > > > > > > Any idea what may happen? > > > > > > > > > > it happens on next-20201109 also, but it takes longer until we get the > > > > > "Call trace:". > > > > > > > > > > Cheers, > > > > > Anders > > > > > [1] http://ix.io/2Ddv > > > > > [2] https://people.linaro.org/~anders.roxell/allmodconfig-next-20201105.config > [...] > > > oh I missed to say that this is the full boot log with the kernel > > > panic http://ix.io/2Ddv > > > > Thanks! > > The last messages before the hang are: > > > > [ 1367.791522][ T1] Running tests on all trace events: > > [ 1367.815307][ T1] Testing all events: > > > > I can imagine tracing somehow interferes with kfence. > > The reason is simply that that config on qemu is so slow (enabling > lockdep helped), and the test that is running doesn't result in > allocations for an extended time. Because of that our wait_event() > just stalls, as there are no allocations coming in. My guess is that > this scenario is unique to early boot, where we are not yet running > user space, paired with running a selftest that results in no > allocations for some time. > > Try and give that a spin: > https://lkml.kernel.org/r/20201110135320.3309507-1-elver@google.com Thank you Marco. I'll give it a spin and reply to that thread if it works or not. Cheers, Anders