Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1638619iob; Thu, 19 May 2022 10:49:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwchDd6OnJxerqDu2DRoMwkqASsDpwcbeIFvckhHAvNvU9/GYM96nh54rlKtXmp+Ozqr2R7 X-Received: by 2002:a17:907:968e:b0:6f4:d80f:f0c3 with SMTP id hd14-20020a170907968e00b006f4d80ff0c3mr5226766ejc.145.1652982597498; Thu, 19 May 2022 10:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652982597; cv=none; d=google.com; s=arc-20160816; b=ogGDzS+ncnf5ZZJ7Pih7ymK2gVBOKhSTD2tWZWoMR/xUQOlzogQQqJwUkO8PcDZvqx svkvOwqpjGsfetytrKy6LIP5GDZVUAkcqk/d0KJbY/MjOyk9J/mLGrIsQUedyZ5XvKLp UNUSidIUljXfTmJ7fE4XlSSSjYhlJj9197wdLD0gRT2/zAAboLkylL71iOawPc/3MKhL R4FADoR10NvmCqOlX8lQ0IHWpR5ztnkC5xHzmvCID2iKQz/aiVFClyqych6OtWATaEvl /gqvtxIYDNQPhGNTWRdPJ02UWxwdbIUpdlciX4E5ZuyGNjNLT6lVYjwh05uswKZC8uym l2Qg== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=VMfRN84BPEu3iwKqnINHyEFPwP2EjRZfVJj6r+WrLEM=; b=LGJFJVtvnL5y8fZuCVkrm3c1rpgPlaE3cBJF6VwFxt6FKFGyiks/OZbhBzuMKdokVO R2M7QgKG3nL/FEzc7w2X6cS863kXu8Jlm7keICQFb3x4EGPOKLARYph/Zb203xUx9Ptx irJ1SqdTL92cjKNtgoaKUNE4INGhiHIZ8gNYboKlNI1qZWG/+ZwlYaIYYYqb/2rj7f+n 8aOW2YzHTapDDJrIpvyUCghJl0Nb76bUn2B6GSU5ZbDwCuXhNEVCAT242BmnPaQqJc9m awQe02UHQD0QJnzjYS8X6oi/1Kekoc05abgOdrGWp4NNdcmas3UpWI/U/t3nOe2bV0So 2FjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=O8IeVTyl; 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=gnuweeb.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh17-20020a1709076e9100b006f44899d7cesi6675718ejc.622.2022.05.19.10.49.31; Thu, 19 May 2022 10:49:57 -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=@gnuweeb.org header.s=default header.b=O8IeVTyl; 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=gnuweeb.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241593AbiESRlv (ORCPT + 99 others); Thu, 19 May 2022 13:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234477AbiESRlt (ORCPT ); Thu, 19 May 2022 13:41:49 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89BCC5C64F; Thu, 19 May 2022 10:41:48 -0700 (PDT) Received: from [192.168.88.87] (unknown [180.242.99.67]) by gnuweeb.org (Postfix) with ESMTPSA id 85C6C7E3F3; Thu, 19 May 2022 17:41:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1652982108; bh=VhmYVAfFGBmzr0XyrvcJgpmcwcLIM0l8TtrBD+fhp4Q=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=O8IeVTylByXxEbuUc76ARTVIopsN57qQw0VgoJrK1d0fnMqF6CP0YCJLYQFc7v7XJ zdVCfSnc12ekdgZC7OBhBJ21//PYeVSLyz7LZQ4DNHOAidjMYDehDpeM3+SsMIuKwO RdEK1ZacSra9wGsDNMkmqDzka0UROumKEABH2suMRoQ9gyEK/ayhsZksQ1QXdoJ8GU nsNLl4XbqlllvWhYieYNnElAlDS6By3nUqAQkZb6ZqWRGYz1a6k4voqCQVHRl2i/xi QORWoa0l/66N7nKzhJnW3cT3fV9WJf9FKnRguIlRyZB2DwY0EgeY8K3zqq2dGNnU8a Zp9/0Kpx3bCfA== Message-ID: Date: Fri, 20 May 2022 00:41:32 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: kernel test robot , Fanjun Kong Cc: Muchun Song , Tejun Heo , Jens Axboe , Linux Kernel Mailing List , Linux Block Mailing List , GNU/Weeb Mailing List , lkp@lists.01.org, lkp@intel.com References: <20220519070506.GA34017@xsang-OptiPlex-9020> From: Ammar Faizi Subject: Re: [blk] 77c570a1ea: WARNING:at_block/blk-cgroup.c:#blkg_create In-Reply-To: <20220519070506.GA34017@xsang-OptiPlex-9020> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Adding the committer, reviewer and acker to the CC list. See the full message here: https://lore.kernel.org/all/20220519070506.GA34017@xsang-OptiPlex-9020/ On 5/19/22 2:05 PM, kernel test robot wrote: > > > Greeting, > > FYI, we noticed the following commit (built with gcc-11): > > commit: 77c570a1ea85ba4ab135c61a028420a6e9fe77f3 ("blk-cgroup: Remove unnecessary rcu_read_lock/unlock()") > https://github.com/ammarfaizi2/linux-block axboe/linux-block/for-next > > in testcase: boot > > on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G > > 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 > > > > [ 14.834675][ T1] ------------[ cut here ]------------ > [ 14.835078][ T1] WARNING: CPU: 0 PID: 1 at block/blk-cgroup.c:301 blkg_create+0x39/0x513 This hits the `WARN_ON_ONCE(!rcu_read_lock_held());` in the blkg_create(), here: https://github.com/ammarfaizi2/linux-block/blob/77c570a1ea85ba4ab135c61a028420a6e9fe77f3/block/blk-cgroup.c#L301 > [ 14.835690][ T1] Modules linked in: > [ 14.835984][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.18.0-rc3-00076-g77c570a1ea85 #1 > [ 14.836486][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014 > [ 14.836486][ T1] EIP: blkg_create+0x39/0x513 > [ 14.836486][ T1] Code: 89 cb 83 ec 0c 83 05 a0 82 8f d9 01 83 15 a4 82 8f d9 00 e8 a5 be 4c ff 85 c0 75 1e 83 05 a8 82 8f d9 01 83 15 ac 82 8f d9 00 < > 0f> 0b 83 05 b0 82 8f d9 01 83 15 b4 82 8f d9 00 83 3d 58 9d a6 d8 > [ 14.836486][ T1] EAX: 00000000 EBX: f5c26c00 ECX: 00000000 EDX: 00000000 > [ 14.836486][ T1] ESI: f5e4c000 EDI: d98f7280 EBP: c12f5e88 ESP: c12f5e70 > [ 14.836486][ T1] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010046 > [ 14.836486][ T1] CR0: 80050033 CR2: ffd3a000 CR3: 18d38000 CR4: 000406d0 > [ 14.836486][ T1] Call Trace: > [ 14.836486][ T1] ? _raw_spin_lock_irq+0xba/0xe4 > [ 14.836486][ T1] blkcg_init_queue+0xaf/0x20f > [ 14.836486][ T1] __alloc_disk_node+0x20c/0x3cc > [ 14.836486][ T1] __blk_alloc_disk+0x55/0x97 > [ 14.836486][ T1] brd_alloc+0x1d9/0x393 > [ 14.836486][ T1] ? debugfs_create_dir+0x20/0x17a > [ 14.836486][ T1] brd_init+0x12e/0x1f3 > [ 14.836486][ T1] ? ramdisk_size+0x3d/0x3d > [ 14.836486][ T1] do_one_initcall+0x6f/0x21e > [ 14.836486][ T1] ? lock_is_held+0x19/0x2b > [ 14.836486][ T1] ? rcu_read_lock_sched_held+0x4f/0xb7 > [ 14.836486][ T1] do_initcalls+0x17f/0x1ec > [ 14.836486][ T1] kernel_init_freeable+0x30c/0x3af > [ 14.836486][ T1] ? rest_init+0x2f7/0x2f7 > [ 14.836486][ T1] kernel_init+0x33/0x2ad > [ 14.836486][ T1] ret_from_fork+0x19/0x24 > [ 14.836486][ T1] irq event stamp: 212188 > [ 14.836486][ T1] hardirqs last enabled at (212187): [] __raw_spin_unlock_irqrestore+0x6e/0xf1 > [ 14.836486][ T1] hardirqs last disabled at (212188): [] _raw_spin_lock_irq+0x5f/0xe4 > [ 14.836486][ T1] softirqs last enabled at (210872): [] __do_softirq+0x463/0x4ed > [ 14.836486][ T1] softirqs last disabled at (210863): [] call_on_stack+0x20/0x3a > [ 14.836486][ T1] ---[ end trace 0000000000000000 ]--- -- Ammar Faizi