Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3394649iog; Mon, 20 Jun 2022 19:28:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uoq6Lz1HXvqS/EO6R3GHwNpZDRlPRO4dM1J8JvT+ZaS+OS2H4GYY+v6mLdcyzOKK+0/oF2 X-Received: by 2002:a17:90a:e507:b0:1ea:fa43:21de with SMTP id t7-20020a17090ae50700b001eafa4321demr26722573pjy.177.1655778483923; Mon, 20 Jun 2022 19:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655778483; cv=none; d=google.com; s=arc-20160816; b=AJy6Bp3Oev2Ob1/jhvK0Z78uwyn/W8ueFHEylndZQm1451ECEAvStMKPovLZ0TKLbD iYu4enKrq+hPWGiiWIGMpHQZwP6O1rgFcdGR8SPdj55nPVi+IamKnTNPGsLBkavmlmOZ ZSy/E8n3yQrkhDKy/oYDr4HN9iu/9K4PUHIeExA5Fsn4aSigQka5bgVzht/UcQWMn6df 463NJIwxyP4VIQw5sz36VPoXYr0S4rcwq3DgO2wR4R8gM8/b9ASjIUtrciqyq5iZn5i9 D6tbkL7Zg1zCxlXdRimBj0VJ6q9w0jj1TiT6Wn5lseMoDmpby5fOKITnrHJ82eYUY0At 5o5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IVPj9SjPI5d2SP8Pi1Lc48AwNlNeq5JfO4Z+hjmJ/t0=; b=mR3UzAhRpD1eLySzIDDxtWqU9LIO+ib6jgvxlfkwjXD4Iku6OjAUJBIYmKnIYZJwH/ Y1mp4yRSnk6X1+UxjiSlE0CY6hgfTSOORjN/1SB4BotpGR77pAYTmLTg+YNvEC5EfrAI NDHLnJJMhULQmIYnrOXVafV1By91zeQFi3uT1bBv9v/rIGOiC7jNGbVwmQ3RE6qCOOxN IKvM/QEllzp31aRVjcZ58NZIZuyei0b1lHzciTF18r5XqMrHxonrdeKOM5PrJw00Mjeb Qb/d3ZYh6EFxdLzT7qGvhWLBPG87EH6fqL6/vXxdYW+23wcXoBXU0IDFirjnry7Kpg53 uotA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FiK0ZiZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a655586000000b0040cc512db04si1877986pgs.844.2022.06.20.19.27.49; Mon, 20 Jun 2022 19:28:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FiK0ZiZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244625AbiFUCDe (ORCPT + 99 others); Mon, 20 Jun 2022 22:03:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245293AbiFUCD1 (ORCPT ); Mon, 20 Jun 2022 22:03:27 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 91D2812AD9 for ; Mon, 20 Jun 2022 19:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655777004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IVPj9SjPI5d2SP8Pi1Lc48AwNlNeq5JfO4Z+hjmJ/t0=; b=FiK0ZiZ9eUQWCoRj5tq+ClNmWZf6F6SZye0fneT5OO8EZ4F2aqFUFD/so52IUMGm0RcoFQ sYV5Gv5XmBz6v7u3XEp2OrAbJJmBL0xrPodaDUfj0lfGbP9IfP7ptsDXp3ixKs9NZPlmfz vBpnDNVNpI1PtBfoKk4UrHUh783311M= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-116-BDApwYCrMjGSFGC81FHmxQ-1; Mon, 20 Jun 2022 22:03:19 -0400 X-MC-Unique: BDApwYCrMjGSFGC81FHmxQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 51CFD80A0AD; Tue, 21 Jun 2022 02:03:18 +0000 (UTC) Received: from [10.22.32.175] (unknown [10.22.32.175]) by smtp.corp.redhat.com (Postfix) with ESMTP id 876F7492C3B; Tue, 21 Jun 2022 02:03:17 +0000 (UTC) Message-ID: Date: Mon, 20 Jun 2022 22:03:17 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [rcu] b709abb270: WARNING:at_kernel/rcu/tasks.h:#rcu_tasks_verify_work_fn Content-Language: en-US To: kernel test robot Cc: 0day robot , LKML , rcu@vger.kernel.org, lkp@lists.01.org, "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , "Uladzislau Rezki (Sony)" References: <20220621010916.GA13677@xsang-OptiPlex-9020> From: Waiman Long In-Reply-To: <20220621010916.GA13677@xsang-OptiPlex-9020> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/20/22 21:09, kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-11): > > commit: b709abb270544e45bbf3135c03fcfa916899f054 ("[PATCH-rcu] rcu-tasks: Use delayed_work to delay rcu_tasks_verify_self_tests()") > url: https://github.com/intel-lab-lkp/linux/commits/Waiman-Long/rcu-tasks-Use-delayed_work-to-delay-rcu_tasks_verify_self_tests/20220614-200840 > base: https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev > patch link: https://lore.kernel.org/rcu/20220614120620.1202389-1-longman@redhat.com > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > [ 64.538953][ T1] ------------[ cut here ]------------ > [ 64.538955][ T1] WARNING: CPU: 0 PID: 1 at kernel/rcu/tasks.h:1861 rcu_tasks_verify_work_fn+0xa2/0x140 > [ 82.542308][ T1] Modules linked in: > [ 82.542852][ T1] CPU: 0 PID: 1 Comm: swapper Tainted: G W 5.19.0-rc1-00114-gb709abb27054 #1 5174fcc90ab2355d70d76459e249e6beb14aec72 > [ 82.546011][ T1] RIP: 0010:rcu_tasks_verify_work_fn+0xa2/0x140 I believe the WARN_ON(1) in rcu_tasks_verify_self_tests() got triggered 30s after the first rcu_tasks_verify_work_fn() is called via late_initcall. The timestamp here transition from the WARNING line to the next one is more than 18s. I think the VM may have preempted heavily by the host causing significant delay or the cpu and memory resource available is being overpowered by the debugging code enabled in a kernel that include this RCU test. Also the WARNING timestamp of 64.538955 is way more than the 30s timeout of the verification test. So I think the warning is expected. Cheers, Longman > [ 82.546872][ T1] Code: fe 01 75 29 48 8b 35 fd fe ea 02 5b b9 fa 00 00 00 48 c7 c2 c0 86 4c 85 5d bf 01 00 00 00 41 5c 41 5d 41 5e e9 1f 88 fa ff 90 < > 0f> 0b 90 5b 5d 41 5c 41 5d 41 5e 31 c0 89 c2 89 c1 89 c6 89 c7 c3 > [ 82.550826][ T1] RSP: 0000:ffffc90000017e60 EFLAGS: 00010246 > [ 82.552888][ T1] RAX: 000000000000002c RBX: 0000000000000003 RCX: 0000000000000000 > [ 82.553917][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 > [ 82.554984][ T1] RBP: ffffffff83c38f58 R08: 0000000000000000 R09: 0000000000000000 > [ 82.557733][ T1] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 > [ 82.558808][ T1] R13: 0000000000001d4c R14: 00000000ffffffff R15: ffffffff8491b888 > [ 82.561186][ T1] FS: 0000000000000000(0000) GS:ffffffff8388e000(0000) knlGS:0000000000000000 > [ 82.562420][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 82.564635][ T1] CR2: ffff88843ffff000 CR3: 0000000003876000 CR4: 00000000000406b0 > [ 82.565735][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > [ 82.566827][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > [ 82.569160][ T1] Call Trace: > [ 82.569637][ T1] > [ 82.570049][ T1] ? rcu_tasks_verify_work_fn+0x140/0x140 > [ 82.570816][ T1] rcu_tasks_verify_schedule_work+0x95/0xc0 > [ 82.572939][ T1] do_one_initcall+0x6b/0x2c0 > [ 82.573524][ T1] do_initcalls+0x127/0x148 > [ 82.574155][ T1] kernel_init_freeable+0xcf/0xff > [ 82.574846][ T1] ? rest_init+0xc0/0xc0 > [ 82.576733][ T1] kernel_init+0x15/0x140 > [ 82.577335][ T1] ret_from_fork+0x22/0x30 > [ 82.577959][ T1] > [ 82.578375][ T1] irq event stamp: 1475417 > [ 82.578987][ T1] hardirqs last enabled at (1475425): [] __up_console_sem+0x4d/0x80 > [ 82.581613][ T1] hardirqs last disabled at (1475436): [] __up_console_sem+0x32/0x80 > [ 82.582980][ T1] softirqs last enabled at (1475268): [] __do_softirq+0x2c0/0x434 > [ 82.585549][ T1] softirqs last disabled at (1475259): [] irq_exit_rcu+0xa0/0x100 > [ 82.586852][ T1] ---[ end trace 0000000000000000 ]--- > > > > To reproduce: > > # build kernel > cd linux > cp config-5.19.0-rc1-00114-gb709abb27054 .config > make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules > make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH= modules_install > cd > find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz > > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp qemu -k -m modules.cgz job-script # job-script is attached in this email > > # if come across any failure that blocks the test, > # please remove ~/.lkp and /lkp dir to run from a clean state. > > >