Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2154685pxu; Sun, 6 Dec 2020 21:39:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6kpBVCnXahXO18ZFE8zoTRPkui8q2JuiDMlPUzHCGPT9W5SKDQ1piwar+R3HuhhJBgOxd X-Received: by 2002:a17:906:7f11:: with SMTP id d17mr17616006ejr.534.1607319555784; Sun, 06 Dec 2020 21:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607319555; cv=none; d=google.com; s=arc-20160816; b=psvuStSySIod3zwb59g9hBbZ6nyWwFY+yClXf+CD2w1s1ll9SDjrbsekihqD2C5ZR/ nSMUsb+kpPS2FxsP6Qa8FSpF0q+LUQEpvmeiubQUBPcdkO7GLNZfVCd33tA+imWZbQHs NGNRWp1Phrd0MsBrB875U3zQzSQz1H1Fmh4mMnCqoQE5nSPrTd3/+T2QZ/rZYUhK8lrz 54Iw3Q6xbYip/zKYO+oE6lZv24qjpqzE35k1i3RuaRVPM2s06KOdZ+uHF+eofAOLlLBG 18n/ce11+3r9s+e2arzxgVYVM/vsLbl/mBiRLWucTHUYqwA39qh67rAfYVQ//w03CGUM MEQQ== 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=G4LlgMCq631UUu8D9rdAHM0/TC7MUROVJ5w6Q0ptdvQ=; b=phxEbNWeAFVMgVgVt07B0XRcoNb1DgTOgKGEXxMdONWiOkmYD8FC+jzH838n/Lprhs s4J99x9IL7pynIw2okDRR5G4nTLMFRPWoCPHpKRn/d/pMqwG/QtfRbmwbOO0/8KL4Z/r /LkA/XOxp1DADsZuOqhaSaF28mfRXStp8rupB7HFHp2r/4I7zECcJ5X8jy0pKPiRz+QJ RdYf2w9gVdlyYoqLraaZqDdRX8gUJcr7cuhLp84c+yq7UjTHRYdQgTEc1s3SsrRraISr 6MYBOMBXYxQ4DVQDnt1MXr7UGKUmP87qcAb2k2buJ0DLAzpMBfU/JiuV500T/l/XUIBo hkxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yJXCOGSm; 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 v11si7449091edt.532.2020.12.06.21.38.52; Sun, 06 Dec 2020 21:39:15 -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=yJXCOGSm; 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 S1726494AbgLGFhP (ORCPT + 99 others); Mon, 7 Dec 2020 00:37:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725681AbgLGFhP (ORCPT ); Mon, 7 Dec 2020 00:37:15 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD64C0613D3 for ; Sun, 6 Dec 2020 21:36:34 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id ce23so13932422ejb.8 for ; Sun, 06 Dec 2020 21:36:34 -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=G4LlgMCq631UUu8D9rdAHM0/TC7MUROVJ5w6Q0ptdvQ=; b=yJXCOGSm3p0ymlxgXOKyztjN6W5ZdifoYjl35o7SGUmIYWut1Z11DjJfZMzpABPV1t Qic0DKpxqiZ38+DNi2VzVKxmfaRkMRlZWF9fyCCekq9ZO0R4sPoMVQpK5K8ibbWx5+wy 6zQ0v3M5dx60KlFccGUIbWyxmD3Z978A+VVyylTGvu9NQPZ82Pqi5lfwOITxA/jZiaVO /vxO9JnEt04Cetx+TddS4KvCbxI6bnq7mf/h0eWbE7SETXDD2y96EummPpUzdTpmST8j BlEUQaJHdW0vhv4cPl0jdSN42S6KPYpJpiCqD4a8k/Lyiu3nAqtS1UO4pef4/F94i7+j WaFg== 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=G4LlgMCq631UUu8D9rdAHM0/TC7MUROVJ5w6Q0ptdvQ=; b=ddw1Ws/bopfBPYUl59zDAKFzUC6ievlLxZ9Ofc3b4LzZf1So9uwZJD6XeY3ELlYECC V9+UsflMABR35jCIuEgTI9Leg83KfzVpg2vxhhcZ629FYS6bjK/yQajy+Am4KVkjMBe4 c2pdJ2X32fIVT0csvGYfOPyU1/k/dgWBjFYaA1CHu8YIuU/WtKWx3SINltGA/a12iHBx N2yFaCEIGfFhTQiJrnjtA2qMcY72yZk4yRPSD8JzXbWGAscbPJR1ASsbnwzq5ARlllQX TkvN6w4NCJBDAHMNwe7KtNRVuv++rBfQQNx/biszVcUVaDdHnj0IcPATk6cZxbM4UH+Y rmxQ== X-Gm-Message-State: AOAM5327zHGt+BERBuDfnhEyerqTMle1oUzze3tpLqSG5P89DK1xc81i Ii8fzXXqwxm2JB2gxrwpG03swWizLjVZsyjPC+pr36/YSFmTw/8w X-Received: by 2002:a17:907:2070:: with SMTP id qp16mr17307208ejb.503.1607319392893; Sun, 06 Dec 2020 21:36:32 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Mon, 7 Dec 2020 11:06:10 +0530 Message-ID: Subject: sched: core.c:7270 Illegal context switch in RCU-bh read-side critical section! __alloc_pages_nodemask To: open list , rcu@vger.kernel.org, linux-mm , linux-stable , linux-fsdevel@vger.kernel.org Cc: Greg Kroah-Hartman , Sasha Levin , Chao Yu , Jaegeuk Kim , Andrew Morton , Sebastian Andrzej Siewior , Steven Rostedt , Mike Galbraith , Thomas Gleixner , "Paul E. McKenney" , Vincent Guittot , Alexander Viro Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While booting arm64 hikey board with stable-rc 5.9.13-rc1 the following warning noticed. This is hard to reproduce. Step to reproduce: ------------------------ # Boot arm64 hikey device with stable-rc 5.9.13-rc1 # Since it is hard to reproduce you may notice this warning Crash log : -------------- [ 10.763081] [drm] Initialized kirin 1.0.0 20150718 for f4100000.ade on minor 1 [ 10.764088] Bluetooth: hci0: change remote baud rate command in firmware [[0;32m OK [0m] Started TEE Supplicant. [ 10.791741] mmc_host mmc2: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) E/TC:0 tee_entry_std:545 Bad arg address 0x6b681000 [[0;32m OK [0m] Started Periodic Command Scheduler. [ 10.846417] mmc_host mmc2: Bus speed (slot 0) = 24800000Hz (slot req 25000000Hz, actual 24800000HZ div = 0) [ 10.887083] [ 10.887087] [ 10.887095] ===================================== [ 10.887098] ============================= [ 10.887101] WARNING: bad unlock balance detected! [ 10.887107] WARNING: suspicious RCU usage [ 10.887112] 5.9.13-rc1 #1 Not tainted [ 10.887120] 5.9.13-rc1 #1 Not tainted [ 10.887122] ------------------------------------- [ 10.887129] systemd-udevd/306 is trying to release lock ( [ 10.887133] ----------------------------- [ 10.887135] fs_reclaim) at: [ 10.887144] /usr/src/kernel/kernel/sched/core.c:7270 Illegal context switch in RCU-bh read-side critical section! [ 10.887163] [] __alloc_pages_nodemask+0x250/0x4c0 [ 10.887166] [ 10.887166] other info that might help us debug this: [ 10.887166] [ 10.887170] but there are no more locks to release! [ 10.887175] [ 10.887175] other info that might help us debug this: [ 10.887179] [ 10.887179] rcu_scheduler_active = 2, debug_locks = 0 [ 10.887182] 1 lock held by systemd-udevd/306: [ 10.887189] 1 lock held by systemd-sysctl/342: [ 10.887192] #0: ffff00007474e518 [ 10.887199] #0: [ 10.887202] ( [ 10.887209] ffff000070c54708 [ 10.887212] &mm->mmap_lock){++++}-{3:3} [ 10.887219] ( [ 10.887228] , at: do_page_fault+0x168/0x420 [ 10.887230] &type->i_mutex_dir_key [ 10.887235] [ 10.887235] stack backtrace: [ 10.887237] #3){++++}-{3:3} [ 10.887246] CPU: 1 PID: 306 Comm: systemd-udevd Not tainted 5.9.13-rc1 #1 [ 10.887255] , at: iterate_dir+0x54/0x1d0 [ 10.887258] Hardware name: HiKey Development Board (DT) [ 10.887264] [ 10.887264] stack backtrace: [ 10.887266] Call trace: [ 10.887276] dump_backtrace+0x0/0x1f8 [ 10.887283] show_stack+0x2c/0x38 [ 10.887292] dump_stack+0xec/0x158 [ 10.887303] print_unlock_imbalance_bug+0xec/0xf0 [ 10.887311] lock_release+0x300/0x388 [ 10.887320] __alloc_pages_nodemask+0x268/0x4c0 [ 10.887329] alloc_pages_vma+0x90/0x240 [ 10.887338] handle_mm_fault+0x8d4/0x12f0 [ 10.887346] do_page_fault+0x1c4/0x420 [ 10.887353] do_translation_fault+0xb0/0xcc [ 10.887363] do_mem_abort+0x50/0xb0 [ 10.887372] el1_abort+0x28/0x30 [ 10.887379] el1_sync_handler+0xc0/0xf0 [ 10.887386] el1_sync+0x7c/0x100 [ 10.887397] __arch_copy_to_user+0x1d8/0x310 [ 10.887407] copy_page_to_iter+0x110/0x3e8 [ 10.887416] generic_file_buffered_read+0x4b8/0xaa8 [ 10.887423] generic_file_read_iter+0xd4/0x168 [ 10.887432] blkdev_read_iter+0x50/0x78 [ 10.887442] new_sync_read+0x100/0x1a0 [ 10.887449] vfs_read+0x1b4/0x1d8 [ 10.887457] ksys_read+0x74/0xf8 [ 10.887465] __arm64_sys_read+0x24/0x30 [ 10.887472] el0_svc_common.constprop.3+0x7c/0x198 [ 10.887478] do_el0_svc+0x34/0xa0 [ 10.887486] el0_sync_handler+0x16c/0x210 [ 10.887492] el0_sync+0x140/0x180 [ 10.887504] CPU: 6 PID: 342 Comm: systemd-sysctl Not tainted 5.9.13-rc1 #1 [ 10.887510] Hardware name: HiKey Development Board (DT) [ 10.887515] Call trace: [ 10.887524] dump_backtrace+0x0/0x1f8 [ 10.887531] show_stack+0x2c/0x38 [ 10.887542] dump_stack+0xec/0x158 [ 10.887552] lockdep_rcu_suspicious+0xd4/0xf8 [ 10.887561] ___might_sleep+0x1e4/0x208 [ 10.887569] __might_sleep+0x54/0x90 [ 10.887577] __might_fault+0x58/0xa8 [ 10.887584] filldir64+0x1f0/0x488 [ 10.887593] call_filldir+0xb0/0x140 [ 10.887600] ext4_readdir+0x700/0x900 [ 10.887607] iterate_dir+0x88/0x1d0 [ 10.887615] __arm64_sys_getdents64+0x70/0x1a0 [ 10.887622] el0_svc_common.constprop.3+0x7c/0x198 [ 10.887629] do_el0_svc+0x34/0xa0 [ 10.887637] el0_sync_handler+0x16c/0x210 [ 10.887644] el0_sync+0x140/0x180 [ 10.912334] Console: switching to colour frame buffer device 256x72 Reported-by: Naresh Kamboju Full boot log link, https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-5.9.y/build/v5.9.12-47-g1372e1af58d4/testrun/3538040/suite/linux-log-parser/test/check-kernel-warning-2012813/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/hikey/lkft/linux-stable-rc-5.9/47/config -- Linaro LKFT https://lkft.linaro.org