Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2576517rwd; Fri, 2 Jun 2023 11:18:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68xpET8/YKmTsKMRWCnzEpErH+VXMHK90HQ8WJsygBQOyzuxZMos8CSsH9IH+IqXKnu4Dh X-Received: by 2002:a05:6a20:548e:b0:10b:7b22:cbf1 with SMTP id i14-20020a056a20548e00b0010b7b22cbf1mr11447339pzk.7.1685729882205; Fri, 02 Jun 2023 11:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685729882; cv=none; d=google.com; s=arc-20160816; b=E0Vd6CN3EmF7S94OrKisklJBXxGl0WTKRv2AL7bXXxg8yQTZaXBewjqjbHRC7TfZ4I VGrYb/9rF7YgXrNIJHgkVncg6K7IpfUl+IG2h/+7TB3o3V6qWw+vXYuM1wxD/pZO5blJ v/23b//wRiwBPEuT8Xn4NItYAZNAevZAaOjD9gLdXLjX9HKOn3w5lEQS3HQqChYEPeWZ UDylG9ii37OuW4IecMCWVZbQ4Q9vaYONesz3nY+gDJ7ixpuHU9bOhd4Zgzex6nZXZeeh IMAsxbFrAQhkcEn/YNHIH/xNj4qGHWEHb0cfF7VCFyFv64f3q9H2HsnVxcopHBNQHREV k4eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ryyKMhBCCtfwazuq7O2tA3IfjfXZPh5IU3OrfQUm23Q=; b=Dz/epGEzZXOsSklX9iZL+BCUNKnpZ+AJr109GKuTUpx8si5O2WFPY1INNdgKxl2v41 fBZ0iGLvmSMZE0nnZLHd9BY9ZUhYONVC9JspsxsMSXFqI7gkPvkNi95Bc45q8We0EW5w SD9GwPFlXxss7zy22IRqEW58+RRGkVizIg4iyanlQ8UvzJPb+06ZorO4K0vAwvxJ/oc+ ONyuu8vxijbU/kbl/3OOsLTAcZfPT23Hir2l8u43hMcZ7IuRcDFX98EFLf9sRrMBqegh quaU5qf3+4Zr/dYfr2xVgyeaKDNqqyLUy6YMU+OQcJjdMlpWeRsKhyN3yKZ11fKhA4Vk Ae3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oNgV46SM; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a637518000000b005348f85f89fsi1417229pgc.226.2023.06.02.11.17.45; Fri, 02 Jun 2023 11:18:02 -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=@kernel.org header.s=k20201202 header.b=oNgV46SM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236936AbjFBSFl (ORCPT + 99 others); Fri, 2 Jun 2023 14:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235598AbjFBSFj (ORCPT ); Fri, 2 Jun 2023 14:05:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 625A39F for ; Fri, 2 Jun 2023 11:05:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DFF296503F for ; Fri, 2 Jun 2023 18:05:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50945C433EF; Fri, 2 Jun 2023 18:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685729137; bh=QdZZR6okQbA5wH9lDjK0tTMxd0arFPrf4fZ+JlpO9VQ=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=oNgV46SMMiR3W4Fp5/v07XLVMAFecmuLM5EZwoyWxdyXpUPOyGFlkl5+tX7d++PKi HI7Vh9vvDQ3zezkj62GOVY0bnqdl92WyzZKWNYItSsfHgDPcfiLTzkFxfhZdntAk25 kD7rFVuNBYjrjdz1H8yyQZ27IFhDihyD+TdBRV7CzDqW4A2sFqoPGWq9+Dgc4sZZNs +FAI63UWtGs3f1Aw1y32SA8Lbbcez8V+VYEIPmiigLm111T2eYWVS3SHE5V1WAGpYb ngHnuWM0of/W3MhpaNVSxWBhDtx1TcvT326W3+v4dGVpmIH2u33XHUVeyUVUTVMkSO wNmPehRzGXcug== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 02DCFCE3B00; Fri, 2 Jun 2023 11:05:37 -0700 (PDT) Date: Fri, 2 Jun 2023 11:05:36 -0700 From: "Paul E. McKenney" To: Z qiang Cc: tj@kernel.org, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [BUG] wait_task_inactive() WARN_ON() in __kthread_bind_mask() Message-ID: <05d62a76-60af-497e-8f47-90a3d6b267fb@paulmck-laptop> Reply-To: paulmck@kernel.org References: <0329dbe3-c7a0-4dad-a244-14061168d7b7@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Fri, Jun 02, 2023 at 04:18:34PM +0800, Z qiang wrote: > > > > Hello! > > > > I just now saw this in SRCU-P rcutorture testing. It might well be a > > one-off, but I thought I should pass it along in case someone else is > > seeing similar things. > > > > I don't immediately see how this would be related, but who knows? > > > > https://lore.kernel.org/lkml/20230524035339.25185-1-qiang.zhang1211@gmail.com/ > > > > Thoughts? > > > > Hi Paul > > This looks like another problem. syzbot seems to have reported > similar issues before: > > https://lore.kernel.org/lkml/0000000000005ca92705d877448c@google.com/ > > I will also be doing the rcutorture testing Thank you, and I will let you know if this happens again. Right now it looks like a one-off. :-/ Thanx, Paul > Thanks > Zqiang > > > > > > > Thanx, Paul > > > > ------------------------------------------------------------------------ > > > > [ 1726.040567] ------------[ cut here ]------------ > > [ 1726.040569] WARNING: CPU: 3 PID: 2016 at kernel/kthread.c:515 __kthread_bind_mask+0x18/0x60 > > [ 1726.040581] Modules linked in: > > [ 1726.040584] CPU: 3 PID: 2016 Comm: kworker/7:3 Not tainted 6.4.0-rc1-00072-g99f9f93c0bce #5209 > > [ 1726.040588] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014 > > [ 1726.040594] RIP: 0010:__kthread_bind_mask+0x18/0x60 > > [ 1726.040598] Code: 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 41 55 41 54 55 48 89 f5 89 d6 53 48 89 fb e8 8d 5a 01 00 48 85 c0 75 0d <0f> 0b 5b 5d 41 5c 41 5d c3 cc cc cc cc 4c 8d a3 00 09 00 00 4c 89 > > [ 1726.040601] RSP: 0000:ffff97c7c1ecfe78 EFLAGS: 00010246 > > [ 1726.040604] RAX: 0000000000000000 RBX: ffff90ce82918000 RCX: 0000000000000000 > > [ 1726.040606] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff90ce82918000 > > [ 1726.040607] RBP: ffff90ce81047248 R08: 0000000000000001 R09: ffffffff9cab5d97 > > [ 1726.040609] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004 > > [ 1726.040610] R13: ffff90ce9f5ee460 R14: ffff97c7c1ecfea0 R15: ffff90ce812ef840 > > [ 1726.040614] FS: 0000000000000000(0000) GS:ffff90ce9f4c0000(0000) knlGS:0000000000000000 > > [ 1726.040616] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > [ 1726.040618] CR2: 0000000000000000 CR3: 0000000014648000 CR4: 00000000000006e0 > > [ 1726.040619] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > [ 1726.040621] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > [ 1726.040622] Call Trace: > > [ 1726.040624] > > [ 1726.040630] create_worker+0xf1/0x220 > > [ 1726.040637] worker_thread+0x2e4/0x3b0 > > [ 1726.040641] ? __pfx_worker_thread+0x10/0x10 > > [ 1726.040643] kthread+0xe6/0x120 > > [ 1726.040648] ? __pfx_kthread+0x10/0x10 > > [ 1726.040651] ret_from_fork+0x2c/0x50 > > [ 1726.040658] > > [ 1726.040659] irq event stamp: 34 > > [ 1726.040661] hardirqs last enabled at (33): [] asm_sysvec_call_function_single+0x1a/0x20 > > [ 1726.040668] hardirqs last disabled at (34): [] __schedule+0x67d/0xd20 > > [ 1726.040675] softirqs last enabled at (0): [] copy_process+0xb98/0x1f10 > > [ 1726.040681] softirqs last disabled at (0): [<0000000000000000>] 0x0 > > [ 1726.040685] ---[ end trace 0000000000000000 ]---