Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2160658pxu; Sun, 6 Dec 2020 21:53:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHKyZKEjEt0tEmD4oCZkhdZ73Oj01uK3ppWYl5UhYaFDOstLrcX/maKcsqanMKOWf992Oy X-Received: by 2002:a50:c091:: with SMTP id k17mr18289857edf.137.1607320405347; Sun, 06 Dec 2020 21:53:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607320405; cv=none; d=google.com; s=arc-20160816; b=n9uXi1g7CTQgkFgaGs9XYQNeJb8or665GPeJRA1/ut4wZHu0YYHF9yqnQDb0NypmBa 5zd7qBlCUkOMRJacj/+4gzJ/H8+9DEK+o25Dc6rvFXKgauvgpqweounMACeH/3UQMxJX 3LQhXhuwYPH+2vXcy0jphRdh6KajFpUcaH3+YF0bVhHHRz2pXDU1idmKcOJ/+stSglmk cqmLZvSCnLxmM4K2XJZ6hVaeG1UXNGPNyxrIYO8+dqNxh4kEfK+3E4ADMpSZmpWyS0jH xEM2EMIH7ZJSUgz1cafNB6DoPoKNmRp0FMCFgSE6qJ3nJQQ8Au1KLC0ZM2yk3lX3ONwn Ni1Q== 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=s1JG27SsYwFPS35ZjtvvHpn9uuRdySYB6PkAFw9ESvk=; b=vSpqZk+1Z3lmdy71BFFYvRBr33UarpHEfmI2dTSJdyeqr8VL9OsvQajkTDaNZ45yV8 AcWj7VvHPBPa6EBsoYL23Wjes2eD9PBfJDDpkOoj8N05vqQqNcMRyS0FKEKB9TEiT/8X QaHZozxy8Grm6uGak7LpeqbqRsmr7I8/HNg+1cefVUNTQoRvOP+PGGcwku/znch6b89Q 1pghc9yOyODVhB9GfOlVFTvs0DMxEswrPMJ6nR9exzzQGpXOfwwnP6SqoKzsgNlsnraR O4CnGSdGY578gtrbUf4kPgiVOJSK2MdZ/gbSYrtNHDTzCQRycTPOJLQuHplrwQj2GqTI 2I9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HqoA8RyF; 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 y2si2976892edw.306.2020.12.06.21.53.02; Sun, 06 Dec 2020 21:53:25 -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=HqoA8RyF; 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 S1726269AbgLGFs2 (ORCPT + 99 others); Mon, 7 Dec 2020 00:48:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbgLGFs1 (ORCPT ); Mon, 7 Dec 2020 00:48:27 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6BCC0613D0 for ; Sun, 6 Dec 2020 21:47:41 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id h16so1060005edt.7 for ; Sun, 06 Dec 2020 21:47:41 -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=s1JG27SsYwFPS35ZjtvvHpn9uuRdySYB6PkAFw9ESvk=; b=HqoA8RyFZwMe4OE9JcVOnOl1+grJ4r7k2DHh3wxBimvSd8grk3zDmxT9L8YQ7PaLEW fdN3uhMAjFmfAFRJ9gPGK/LFbKe9fH1BiXibapQfNk58M5z7o65aNvZurT08hcgqk2g6 G8xZKCUtyCxlYALNOeDWIwpbDFiEfiJxVC1cSQt3a6eUMLvurNraRSpbuollxiBZPHWC jnSA4W5IddNNsb4uEdkYXl0kb/y79q32+IV6a094VSGWqqTTXoakN5+FnZPlR41yuLqq 4gFJmAsjIAGSUZHq7pTf6EI6xHI6/KKPlXwCs5zFD6/tlCwc855+5vXcyzt2A0Nwb9JP meRQ== 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=s1JG27SsYwFPS35ZjtvvHpn9uuRdySYB6PkAFw9ESvk=; b=e7r92jzoeoWbxTiKk+8UQSdT+ApSoApvHrWaRZTeWCfs1gENVBKuHBvO+GdVr6Fup7 lZha0rs6IFm7NLIbnoP0l53AGZPqXlK37yaqv4DC9/YCNh4mjlkOZSimMO2aFcV0N+ty sPt//Qpb/SkD+qIDqUwJ8LOhnnyJyXcEYohfWHCfTWC6Ms3UmSDDkrCd+b0KsEafyJr5 zKq2UaxFJA6wt0SJTi6JxsZnPnmWmh7s6UT8YG3qBU3h3xa0OtnEg/7AM7U3PjtE2/0C 7xl8zzvUqKOyjroNSkPP4J6kosflHa7TBcIzqSixyDKZ7YW1gR+x3JI1pPHijg0Yh1DX m6pQ== X-Gm-Message-State: AOAM533Bj51YzvBOXpA0g6zDyxVdb6LKS33kQTKzLRisQk+I3akjKrq0 2nevbXbele3vGjJwYBWC1Ha8dN09JHe/HPZ6mR/SOFaGcFCLpVtb X-Received: by 2002:a05:6402:3074:: with SMTP id bs20mr18456029edb.365.1607320060145; Sun, 06 Dec 2020 21:47:40 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Mon, 7 Dec 2020 11:17:29 +0530 Message-ID: Subject: WARNING: bad unlock balance detected! - mkfs.ext4/426 is trying to release lock (rcu_read_lock) To: linux-stable , open list , linux-fsdevel@vger.kernel.org, rcu@vger.kernel.org, lkft-triage@lists.linaro.org Cc: Alexander Viro , "Paul E. McKenney" , Peter Zijlstra , Greg Kroah-Hartman , Sasha Levin , Thomas Gleixner , Miquel Raynal , Mark Rutland Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While running "mkfs -t ext4" on arm64 juno-r2 device connected with SSD drive the following kernel warning reported on stable rc 5.9.13-rc1 kernel. Steps to reproduce: ------------------ # boot arm64 Juno-r2 device with stable-rc 5.9.13-rc1. # Connect SSD drive # Format the file system ext4 type mkfs -t ext4 # you will notice this warning Crash log: -------------- Writing superblocks and filesystem accounting information: 0/895 [ 86.131095] [ 86.132592] ===================================== [ 86.137300] WARNING: bad unlock balance detected! [ 86.142012] 5.9.13-rc1 #1 Not tainted [ 86.145675] ------------------------------------- [ 86.150384] mkfs.ext4/426 is trying to release lock (rcu_read_lock) at: [ 86.157020] [] blk_queue_exit+0xcc/0x1b0 [ 86.162511] but there are no more locks to release! [ 86.167392] [ 86.167392] other info that might help us debug this: [ 86.173929] no locks held by mkfs.ext4/426. [ 86.178114] [ 86.178114] stack backtrace: [ 86.182478] CPU: 1 PID: 426 Comm: mkfs.ext4 Not tainted 5.9.13-rc1 #1 [ 86.188926] Hardware name: ARM Juno development board (r2) (DT) [ 86.194853] Call trace: [ 86.197302] dump_backtrace+0x0/0x1f8 [ 86.200967] show_stack+0x2c/0x38 [ 86.204287] dump_stack+0xec/0x158 [ 86.207694] print_unlock_imbalance_bug+0xec/0xf0 [ 86.212404] lock_release+0x300/0x388 [ 86.216070] blk_queue_exit+0xe0/0x1b0 [ 86.219822] blk_mq_submit_bio+0x250/0xa08 [ 86.223922] submit_bio_noacct+0x468/0x518 [ 86.228022] submit_bio+0x4c/0x230 [ 86.231429] submit_bh_wbc+0x17c/0x218 [ 86.235182] __block_write_full_page+0x210/0x648 [ 86.239805] block_write_full_page+0x8c/0x150 [ 86.244167] blkdev_writepage+0x30/0x40 [ 86.248008] __writepage+0x38/0xd8 [ 86.251412] write_cache_pages+0x1fc/0x590 [ 86.255513] generic_writepages+0x64/0xa0 [ 86.259526] blkdev_writepages+0x28/0x38 [ 86.263452] do_writepages+0x6c/0x138 [ 86.267118] __filemap_fdatawrite_range+0x10c/0x148 [ 86.272001] file_write_and_wait_range+0x6c/0xd0 [ 86.276623] blkdev_fsync+0x3c/0x68 [ 86.280113] vfs_fsync_range+0x4c/0x90 [ 86.283864] do_fsync+0x48/0x78 [ 86.287007] __arm64_sys_fsync+0x24/0x38 [ 86.290933] el0_svc_common.constprop.3+0x7c/0x198 [ 86.295729] do_el0_svc+0x34/0xa0 [ 86.299047] el0_sync_handler+0x16c/0x210 [ 86.303060] el0_sync+0x140/0x180 Reported-by: Naresh Kamboju Full test log link, https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.9.y/build/v5.9.12-47-g1372e1af58d4/testrun/3538037/suite/linux-log-parser/test/check-kernel-exception-2012808/log metadata: git branch: linux-5.9.y git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git commit: 1372e1af58d410676db7917cc3484ca22d471623 git describe: v5.9.12-47-g1372e1af58d4 make_kernelversion: 5.9.13-rc1 kernel-config: http://snapshots.linaro.org/openembedded/lkft/lkft/sumo/juno/lkft/linux-stable-rc-5.9/47/config -- Linaro LKFT https://lkft.linaro.org