Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp454264img; Wed, 20 Mar 2019 04:18:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/8G2y4Bz+xtQ1UW3A7sjFbrw9RgO8hAlbAeb5XdfPMzd+Xn6PN/asCFOFFRULCuz+o75i X-Received: by 2002:a65:648f:: with SMTP id e15mr7334967pgv.249.1553080717841; Wed, 20 Mar 2019 04:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553080717; cv=none; d=google.com; s=arc-20160816; b=iJjKEhGgyZXLSvkf0gEQJ5Ep05sz4fvAX1Sw1BOQcVcmFvA8lwXh2nFEe5ADUz6goX IvK9H02cBjpmHaVzzboKp7EZrnTI4G8YlPIVrAtfxiQKCxCH42G8R31E7gMNIQJ15bpW JXlcB2Athqli4QSTrpwHi2oRafFeN3C4Emq/cIopeer06QOhf87tYIOo+aU5Moua+vLI TzUbS7T+4GL+hCRBklwdbkfFVZ4Kh0jQ2va8b9HiDZJRPQCzoL9epDvo+lIaEndBRhH0 qkMC/ZX6+sYTK2+QPGbvZDTEy2Nf3DI1EfXzwcuudlBnoUsiXdkOmYp8ovDNX1X+Nhc5 DqRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oz48NFB895ZbMvfJtIoZKMy1Z8ko+w/dzzts1G3S+gM=; b=pm7bbuZ5L9xY+FKDLtm6opnZxqHhJzsT3PaEO9i8KnhXtfQULtkAjOQ3TqMLP+IgGL 2/uDtaq9jc8OHgZsm/6Efk0rXsrpRExzImWjsNWxLSk6fQEMWpfsrrCUntU96Vxy3MFI bf00jE+vSkA60vzKIqTG/VhGHWCcq0acg9ZgcrklbVMUe5KMBQMW7cjqOCa3T1lUx+8M hGEexQYWcEX3xIrux6fM8zlDsjTsjoNJO8CJ8KxV54yKntRlJwZnFsbgr7MDMacaptYd YE9G12XErBmulQPXrTbL9f+YpNR6ol8mWR0c96uTuAeUrjDnmBdvkIdTQ0jv60GMdiwF VKpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNWQr1O8; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si1620272plq.340.2019.03.20.04.18.21; Wed, 20 Mar 2019 04:18:37 -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=pass header.i=@linaro.org header.s=google header.b=dNWQr1O8; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbfCTLRl (ORCPT + 99 others); Wed, 20 Mar 2019 07:17:41 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:42286 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbfCTLRk (ORCPT ); Wed, 20 Mar 2019 07:17:40 -0400 Received: by mail-yw1-f65.google.com with SMTP id e76so1629699ywa.9 for ; Wed, 20 Mar 2019 04:17:40 -0700 (PDT) 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=oz48NFB895ZbMvfJtIoZKMy1Z8ko+w/dzzts1G3S+gM=; b=dNWQr1O8riBE5SBH64MNYCjH2OGIKH6dXnBq2JFagwHS/Tj4yDj2jXaqmgKI1WCRvl 2EYOWIaxUlCPvys9mJM4GZVCf9zOQeemTpKFpV03DOzbhWAn1+MacflB8MSQx/MM6+Vs GqRaxS5D9EujIuXr+hpJdpT1Z/PUbHZcEqQNrj8JYnozC05nZTKNZHu0bHIXGy0ZV3XR DPSiLwbsG3Ut2W/CW35XPMOKqWY1lNvMCVOB0918tFCJYEU4r1Xcy8sKYDFl1Oj2rhUi CBwZlxTdwQlpkCY4sr7yQ/WQCiYgaQBOLY2dz9Ooso1AouVgcTDBES0YvaJfreklllqp 7xyg== 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=oz48NFB895ZbMvfJtIoZKMy1Z8ko+w/dzzts1G3S+gM=; b=Ppr1ERiISjnWgbkHljvhkDvaDFKCoTzlMTbMKmWCSqku1tW2YCp4jawGceZ1HFlns9 ZuvtbygESMdp7klqGZVqt2/b1Z2XfpYV9dfo32TZ63L9E9v+rtZgn+R5htoNBLJJOVzP coFbNZM/54G+V5aejrQCeMcLq9291CE/W4UlcTvLtQEp/ujuFoYfQsy/puzzqFnHEejq J3bB83ojn3DNA5hEplovM2USqhWlMyayETEms9qailIPNTLJR4vYZjK1PxhkfJdKszSV xnEXaMMGLPkq3nemf6v0a3+uO7VPpfjNR817dOEGKh9wIg/H8w5eRQe1BjR61bHaEzqV t8kQ== X-Gm-Message-State: APjAAAXCOdHVUVMZEpKrCGwMxDtmnsI0v1tcExw2fXf7JBKH9RhHWwns fXJph9aEtnIjaoz9yYxKWyJwvz+XvXN+9MKc/SZmwg== X-Received: by 2002:a25:128b:: with SMTP id 133mr6474313ybs.325.1553080659767; Wed, 20 Mar 2019 04:17:39 -0700 (PDT) MIME-Version: 1.0 References: <20181130145622.26334-1-anders.roxell@linaro.org> <20181130101815.75038642@gandalf.local.home> In-Reply-To: <20181130101815.75038642@gandalf.local.home> From: Anders Roxell Date: Wed, 20 Mar 2019 12:17:29 +0100 Message-ID: Subject: Re: [PATCH v2] kernel/trace: fix watchdog soft lockup To: Steven Rostedt Cc: Ingo Molnar , Andrew Morton , Dmitry Vyukov , Linux Kernel Mailing List , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Nov 2018 at 16:18, Steven Rostedt wrote: > > On Fri, 30 Nov 2018 15:56:22 +0100 > Anders Roxell wrote: > > > When building a allmodconfig kernel for arm64 and boot that in qemu, > > CONFIG_FTRACE_STARTUP_TEST gets enabled and that takes time so the > > watchdog expires and prints out a message like this: > > 'watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1]' > > Depending on what the what test gets called from init_trace_selftests() > > it stays minutes in the loop. > > Rework so that function cond_resched() gets called in the > > init_trace_selftests loop. > > > > This looks fine to me. Should it be marked for stable, and pushed into > this release cycle, or wait till the next merge window? Steve, I'm sorry for the late reply and no its not urgent. Maybe it can make it into v5.2 ? Cheers, Anders > > -- Steve > > > Co-developed-by: Arnd Bergmann > > Signed-off-by: Arnd Bergmann > > Signed-off-by: Anders Roxell > > --- > > kernel/trace/trace.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > > index 5706599ed534..109becbc81ca 100644 > > --- a/kernel/trace/trace.c > > +++ b/kernel/trace/trace.c > > @@ -1547,6 +1547,10 @@ static __init int init_trace_selftests(void) > > pr_info("Running postponed tracer tests:\n"); > > > > list_for_each_entry_safe(p, n, &postponed_selftests, list) { > > + /* This loop can take minutes when sanitizers are enabled, so > > + * lets make sure we allow RCU processing. > > + */ > > + cond_resched(); > > ret = run_tracer_selftest(p->type); > > /* If the test fails, then warn and remove from available_tracers */ > > if (ret < 0) { >