Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3038191pxu; Mon, 14 Dec 2020 18:49:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJynXZ24KWY8pZjk5JIarm1nTx5114NnfAawvUc/E7OvZZ2JdXJaoAOtauxnwId/jViwJ5H2 X-Received: by 2002:a17:906:8693:: with SMTP id g19mr26055999ejx.111.1608000573787; Mon, 14 Dec 2020 18:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608000573; cv=none; d=google.com; s=arc-20160816; b=B8OQqvSnU/ZWIhbb0KU+y1ak9hkcqdV3la2Ml1oyMVyi1I3jbjcRVBQ5zFM9PMEjkQ ur/QNJH1/Kw0GAvS1gqSsbiqZLlniDEK133FY+GBuYa4vtxaGxwuVcfPkq1HIxW8ZTLo Lf5fTmOxgMKxsuG2ahS9vqGmb/c2MRKq8mx4QGa8lPGoN8xsc9UD5Zu3tmNY5o1fvoi/ /KYgAdlCRpNRvuqI2iMSETShsGudlFjOEwDe4PTsobBGsQClBC+lOcvOcMh4FT0xSiTs Upizrmmr8P7NlR6QOt+ZVSV7qYKZcVbC34R93qOHnOWOXRCQC56giXm6QU3s9YusS+iq SChg== 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:mime-version :dkim-signature; bh=oMx/l1TWqLqZ87BIv8Db4rdtLPwWK2RH0Vdx3gdzwC4=; b=IRYCrDe4ZIL+UWQvzRh1jSGKfrMFPTgt5ocxJZ7r8cXR7tmwnI9XtGsIp2UAaAoA/M tRyI0FQd7G/IAZxo4zbTrvmC3m0hlQnNOv8ooxQrX+oO6sl3c2OwBu3OV22IQo54s9rY YaaeyvKm3AY33UWoW4tYFOgDdDsh99UJa1qEWUUjBKEvW8fQ9rP94RVuc/Pr/uCoSKmZ 5ThoHPjvGMEy6++7M2MkLlfxJGb2aZQlVtqT9lkV5wN5n75446RAXB9bh44Qcq4DUHDA JdKzNylpLdGeehxD4WVDqSbJ5eqo5ToBQi5SkGSwKYIyV12flFe4a+p0AlXzdQA330FT F9sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gsEdjSs8; 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 e10si193034ejf.658.2020.12.14.18.49.10; Mon, 14 Dec 2020 18:49:33 -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=gsEdjSs8; 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 S1726935AbgLOCVh (ORCPT + 99 others); Mon, 14 Dec 2020 21:21:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgLOCVZ (ORCPT ); Mon, 14 Dec 2020 21:21:25 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1663C0617A7 for ; Mon, 14 Dec 2020 18:20:44 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id ga15so25429095ejb.4 for ; Mon, 14 Dec 2020 18:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=oMx/l1TWqLqZ87BIv8Db4rdtLPwWK2RH0Vdx3gdzwC4=; b=gsEdjSs8ZdW0UOmW7MRRgqq5TZ7+FCQ+umrKB5cfQEr9l2RLAV8jozVgPHmqi0cbHE MZ3gRaxd5Iqycq1rdyIhUXT5/xiK2M7zpC3R+yH8Z2VI4xQ0cOfKNnEnfaC9O4KfM8yV 9+QHff8lRJVZNm51Avdwol9WNcYE0yZGIwcyaPxMJbOym2GKTTAGI3hYMslQ8SthoFnK azXT1P8cH1uOJ6zOXD3M/LEbFAX8VFbFYNpgj23Gn0aFnp3NrtcZRNckED1Yta9+8/eo QI05nPGdsxppf38OYg1d3icqfN4QLnA4XPC0Op0jAq8OeEn/VVg/epq3xEEfy68bwEja 2WjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=oMx/l1TWqLqZ87BIv8Db4rdtLPwWK2RH0Vdx3gdzwC4=; b=GKQe/oUEA7VF2/T/dC6ZpnRZ4kep48n1RvCZ5tjsCaQPWXO1jFmkODVdUCoriUJ7ym q8DJnLqw0CLIYmpeYBGQntdoPsT3ggBZ4vK/MHtMcdwccaTRzCkrnY+3vEfcwxSxffWc CcrDEu24I9bYM9PmYz5YgM3mXFVLNRQ/fG9wrJXyCZZ5437ITm/cuY2Oxd+YsVmuSoc7 Hs9HynvrWqCOnjxGf5XHfurYjPx1OjAXQvLXCqWgP+kHQIgxa6bFSIYcNxGUiS8HK7uY 8Y4iG2Px9KJwcU6b0zyz+pDD6aUJWLeuSQfHO3LwPn2MQ3MAgzDe2rZjley6CizDc7ye mpZQ== X-Gm-Message-State: AOAM531nkYiSvDhCKK6LKS6fZifCS+vy2ZTsMTEvamO8/a660YnZ2G5P t6OeL+ld8S845CXkxyjQ6y3UaRe0EqViYl9buI6Ka1mNlgzNIO9j X-Received: by 2002:a17:906:2ec3:: with SMTP id s3mr24180480eji.133.1607998842290; Mon, 14 Dec 2020 18:20:42 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Tue, 15 Dec 2020 07:50:31 +0530 Message-ID: Subject: [stabe-rc 5.9 ] sched: core.c:7270 Illegal context switch in RCU-bh read-side critical section! To: open list , linux-stable , rcu@vger.kernel.org, Linux ARM , lkft-triage@lists.linaro.org, Netdev Cc: Greg Kroah-Hartman , Sasha Levin , Peter Zijlstra , "Paul E. McKenney" , Thomas Gleixner , Matthew Wilcox Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are two warnings "WARNING: suspicious RCU usage" noticed on arm64 juno-r2 device while running selftest bpf test_tc_edt.sh and net: udpgro_bench.sh. These warnings are occurring intermittently. metadata: git branch: linux-5.9.y git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git describe: v5.9.14-106-g609d95a95925 make_kernelversion: 5.9.15-rc1 kernel-config: http://snapshots.linaro.org/openembedded/lkft/lkft/sumo/juno/lkft/linux-stable-rc-5.9/58/config Steps to reproduce: ------------------ Not easy to reproduce. Crash log: -------------- # selftests: bpf: test_tc_edt.sh [ 503.796362] [ 503.797960] ============================= [ 503.802131] WARNING: suspicious RCU usage [ 503.806232] 5.9.15-rc1 #1 Tainted: G W [ 503.811358] ----------------------------- [ 503.815444] /usr/src/kernel/kernel/sched/core.c:7270 Illegal context switch in RCU-bh read-side critical section! [ 503.825858] [ 503.825858] other info that might help us debug this: [ 503.825858] [ 503.833998] [ 503.833998] rcu_scheduler_active = 2, debug_locks = 1 [ 503.840981] 3 locks held by kworker/u12:1/157: [ 503.845514] #0: ffff0009754ed538 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x208/0x768 [ 503.855048] #1: ffff800013e63df0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x208/0x768 [ 503.864201] #2: ffff8000129fe3f0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x64/0x3b8 [ 503.872786] [ 503.872786] stack backtrace: [ 503.877229] CPU: 1 PID: 157 Comm: kworker/u12:1 Tainted: G W 5.9.15-rc1 #1 [ 503.885433] Hardware name: ARM Juno development board (r2) (DT) [ 503.891382] Workqueue: netns cleanup_net [ 503.895324] Call trace: [ 503.897786] dump_backtrace+0x0/0x1f8 [ 503.901464] show_stack+0x2c/0x38 [ 503.904796] dump_stack+0xec/0x158 [ 503.908215] lockdep_rcu_suspicious+0xd4/0xf8 [ 503.912591] ___might_sleep+0x1e4/0x208 [ 503.916444] inet_twsk_purge+0x144/0x378 [ 503.920384] tcpv6_net_exit_batch+0x20/0x28 [ 503.924585] ops_exit_list.isra.10+0x78/0x88 [ 503.928872] cleanup_net+0x248/0x3b8 [ 503.932462] process_one_work+0x2b0/0x768 [ 503.936487] worker_thread+0x48/0x498 [ 503.940166] kthread+0x158/0x168 [ 503.943409] ret_from_fork+0x10/0x1c [ 504.165891] IPv6: ADDRCONF(NETDEV_CHANGE): veth_src: link becomes ready [ 504.459624] audit: type=1334 audit(1607978673.070:40866): prog-id=20436 op=LOAD <> [ 879.304684] [ 879.306200] ============================= [ 879.310314] WARNING: suspicious RCU usage [ 879.314420] 5.9.15-rc1 #1 Tainted: G W [ 879.319554] ----------------------------- [ 879.323644] /usr/src/kernel/kernel/sched/core.c:7270 Illegal context switch in RCU-sched read-side critical section! [ 879.334259] [ 879.334259] other info that might help us debug this: [ 879.334259] [ 879.342345] [ 879.342345] rcu_scheduler_active = 2, debug_locks = 1 [ 879.348958] 3 locks held by kworker/u12:8/248: [ 879.353483] #0: ffff0009754ed538 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x208/0x768 [ 879.362910] #1: ffff800013bc3df0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x208/0x768 [ 879.371984] #2: ffff8000129fe3f0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x64/0x3b8 [ 879.380540] [ 879.380540] stack backtrace: [ 879.384998] CPU: 1 PID: 248 Comm: kworker/u12:8 Tainted: G W 5.9.15-rc1 #1 [ 879.393201] Hardware name: ARM Juno development board (r2) (DT) [ 879.399147] Workqueue: netns cleanup_net [ 879.403089] Call trace: [ 879.405550] dump_backtrace+0x0/0x1f8 [ 879.409228] show_stack+0x2c/0x38 [ 879.412561] dump_stack+0xec/0x158 # ud[ 879.415980] lockdep_rcu_suspicious+0xd4/0xf8 [ 879.420691] ___might_sleep+0x1ac/0x208 p tx: 32 MB/s 546 calls/[ 879.424570] nf_ct_iterate_cleanup+0x1b8/0x2d8 [nf_conntrack] s 546 msg/s[ 879.433190] nf_conntrack_cleanup_net_list+0x58/0x100 [nf_conntrack] [ 879.440765] nf_conntrack_pernet_exit+0xa8/0xb8 [nf_conntrack] [ 879.446755] ops_exit_list.isra.10+0x78/0x88 [ 879.451043] cleanup_net+0x248/0x3b8 [ 879.454635] process_one_work+0x2b0/0x768 [ 879.458661] worker_thread+0x48/0x498 [ 879.462340] kthread+0x158/0x168 [ 879.465584] ret_from_fork+0x10/0x1c Reported-by: Naresh Kamboju Full test log link, https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.9.y/build/v5.9.14-106-g609d95a95925/testrun/3586574/suite/linux-log-parser/test/check-kernel-warning-2049484/log -- Linaro LKFT https://lkft.linaro.org