Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp412149pxv; Wed, 14 Jul 2021 06:54:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOUa1tyGclOKn9oSbTMev+xOSu9wKiu5HdrJaNMBpQF1nCv1LVT5plDA2CMDTaIHBBWbWa X-Received: by 2002:a92:6f07:: with SMTP id k7mr6947198ilc.276.1626270895463; Wed, 14 Jul 2021 06:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626270895; cv=none; d=google.com; s=arc-20160816; b=a5ADh8c0CAGz9DYQ+XyYlsM4odrjVWms6vWSonnlSC5wnIB1GcKAGTeAst2ld72XFH WWwj5lXNTLlIt5965L30WVK1NXYPI+eP0VNq1boaTf7DgjXwmx7jCNLVBSXBXUbioNkA aDj5i1ouusNgQQghlcyq15H3i34WoSpMFauVMv6WfnCd1PhvA2MMr6j2iObvGegkc0zr FMTqacgRpIF0y9U0Iiw6dS8D1jZTz0/YusFgt9kpxRYiJzgVrfFzoP0P8LRNDedvyDMM 8/7BJuYLgjs70fTxxklRyCl1tOIMs1Hl/+Z+NTeuV9/t9024PSlHPQGKHB+NSCjpoFaj m8Bg== 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:in-reply-to :references:mime-version:dkim-signature; bh=LD0zUI7guc2XP54Q5Kxn20fLqM8O66uBYKWZO+0h1eo=; b=ikNQBSC44DB82cTRr7hPqqi4Nx15RUNqJGgSYys92ieRDRNOQ2z1HaVVM2Scw0ZcKO daiQCLG+U8Zg5FPCR1Zt5rOqI0e2+B4ajkxmz/0WGuDIYy3d+P3kgVcwEkWFvP82dCZM NLkii+WRtfqtcIA1rq2QJATIAN4hQYmB88iB7jOtTxi2CrrRJ3yyMMRdLBDPxy2QJGE1 qJCSdoTsBJMDKUMLmcmrEA2No8VeOfbdolp8o4FCcxBTB2rDZtTvPbqEwLV0+wk0x9Ha G6oYtOukPhIHxahN22ee5XRorktSYFgoSskwEMBdOdFDOIyQtvH2Jiboa9O7z1MuQR0H u1bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SYrwEi2o; 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 e127si2744611iof.13.2021.07.14.06.54.42; Wed, 14 Jul 2021 06:54:55 -0700 (PDT) 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=SYrwEi2o; 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 S232759AbhGNN4D (ORCPT + 99 others); Wed, 14 Jul 2021 09:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232795AbhGNN4D (ORCPT ); Wed, 14 Jul 2021 09:56:03 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 862AFC061764 for ; Wed, 14 Jul 2021 06:53:11 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id o17-20020a9d76510000b02903eabfc221a9so2592918otl.0 for ; Wed, 14 Jul 2021 06:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LD0zUI7guc2XP54Q5Kxn20fLqM8O66uBYKWZO+0h1eo=; b=SYrwEi2oCQf5MnxznMGCctDGiXw1JWgplVy5ceB7EBIxDdUYZuoauEYZdgoy7f9yro UoyPV5odKbH1xOFFF8M/oCz74Ia3/cId0dqH6Ju9y2AhLA9CaPitWs9xQQ+QJMdorilm uwAr6pl+yfKwR4B+Dsl9lbNSz38OgBvpfxlSAzTcKFFt5OvdyEbuUYFViwLt0L3itAu7 O2vs8O/FA472q/PYWX+xxqgebwYHjvlY4NWljyPv3Pq2B5u+AXe7baVKp1KRdkwtA5oW D1/wU1tJYpEa6d55qLEm4we4s+M6+WMXFbXr/lRIBXWV6ZMTq8vN9gNkqQCYws+6rhhW jCIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LD0zUI7guc2XP54Q5Kxn20fLqM8O66uBYKWZO+0h1eo=; b=rlkMZt2zC/M/C0skeXdd6XYJ+ey3wOT7FOWv/NTAbX1jwUG61Ts7+1S8WF4diy0QdD L1caRrzMI6U0bSwjMmlqY+Hm8GhdBcr9bYsp6Hi7eNWtnhKPYVQIrm2MqKOjodVjFvwT 0aqpnPZ1pRZy4PxcdaVjCm9Ud2ctpMXhk9lRd/KycGGURy4beg4ZNol1WOOPP09gbGEo CEnSPDurDxKL4mvIb70DeKoe4jFif/Ec7zgakqzMeZT3KGCqob4jBUdQHBSZucZEbr9S ioNvJWK8/+i+aruDsKX2jhW+C4YwGd2qbj0LgzaH6PdOD9nn2CvnkSFmwy/SVBjOzhoY IMoA== X-Gm-Message-State: AOAM533YzVpVGCX09JxNRJcFqiOPjzcNDGxSFK5p866RYG1wUmvVNeLc nKIGHb6GICcw4zA24jKN4SpBz/ZKyLTiFEKEC6Oq3Q== X-Received: by 2002:a9d:27a4:: with SMTP id c33mr8463777otb.281.1626270790600; Wed, 14 Jul 2021 06:53:10 -0700 (PDT) MIME-Version: 1.0 References: <20210712060912.995381202@linuxfoundation.org> <68b6051-09c-9dc8-4b52-c4e766fee5@praktifix.dwd.de> <50fb4713-6b5d-b5e0-786a-6ece57896d2f@praktifix.dwd.de> In-Reply-To: From: Naresh Kamboju Date: Wed, 14 Jul 2021 19:22:59 +0530 Message-ID: Subject: Re: [PATCH 5.13 000/800] 5.13.2-rc1 review To: Greg Kroah-Hartman Cc: Holger Kiehl , Jan Kara , linux-kernel , Linus Torvalds , Andrew Morton , Guenter Roeck , Shuah Khan , patches@kernelci.org, lkft-triage@lists.linaro.org, Pavel Machek , Jon Hunter , Florian Fainelli , linux-stable , Paolo Valente , Jens Axboe Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Jul 2021 at 19:01, Greg Kroah-Hartman wrote: > > On Wed, Jul 14, 2021 at 01:26:26PM +0000, Holger Kiehl wrote: > > On Wed, 14 Jul 2021, Holger Kiehl wrote: > > > > > On Wed, 14 Jul 2021, Greg Kroah-Hartman wrote: > > > > > > > On Wed, Jul 14, 2021 at 05:39:43AM +0000, Holger Kiehl wrote: > > > > > Hello, > > > > > > > > > > On Mon, 12 Jul 2021, Greg Kroah-Hartman wrote: > > > > > > > > > > > This is the start of the stable review cycle for the 5.13.2 release. > > > > > > There are 800 patches in this series, all will be posted as a response > > > > > > to this one. If anyone has any issues with these being applied, please > > > > > > let me know. > > > > > > > > > > > > Responses should be made by Wed, 14 Jul 2021 06:02:46 +0000. > > > > > > Anything received after that time might be too late. > > > > > > > > > > > With this my system no longer boots: > > > > > > > > > > [ OK ] Reached target Swap. > > > > > [ 75.213852] NMI watchdog: Watchdog detected hard LOCKUP on cpu 0 > > > > > [ 75.213926] NMI watchdog: Watchdog detected hard LOCKUP on cpu 2 > > > > > [ 75.213962] NMI watchdog: Watchdog detected hard LOCKUP on cpu 4 > > > > > [FAILED] Failed to start Wait for udev To Complete Device Initialization. > > > > > See 'systemctl status systemd-udev-settle.service' for details. > > > > > Starting Activation of DM RAID sets... > > > > > [ ] (1 of 2) A start job is running for Activation of DM RAID sets (..min ..s / no limit) > > > > > [ ] (2 of 2) A start job is running for Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling (..min ..s / no limit) > > > > > > > > > > System is a Fedora 34 with all updates applied. Two other similar > > > > > systems with AMD CPUs (Ryzen 4750G + 3400G) this does not happen > > > > > and boots fine. The system where it does not boot has an Intel > > > > > Xeon E3-1285L v4 CPU. All of them use a dm_crypt root filesystem. > > > > > > > > > > Any idea which patch I should drop to see if it boots again. I already > > > > > dropped > > > > > > > > > > [PATCH 5.13 743/800] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload > > > > > > > > > > and I just see that this one should also be dropped: > > > > > > > > > > [PATCH 5.13 768/800] hugetlb: address ref count racing in prep_compound_gigantic_page > > > > > > > > > > Will still need to test this. > > > > > > > > Can you run 'git bisect' to see what commit causes the problem? > > > > > > > Yes, will try to do that. I think it will take some time ... > > > > > With the help of Pavel Machek and Jiri Slaby I was able 'git bisect' > > this to: > > > > yoda:/usr/src/kernels/linux-5.13.y# git bisect good > > a483f513670541227e6a31ac7141826b8c785842 is the first bad commit > > commit a483f513670541227e6a31ac7141826b8c785842 > > Author: Jan Kara > > Date: Wed Jun 23 11:36:33 2021 +0200 > > > > bfq: Remove merged request already in bfq_requests_merged() > > > > [ Upstream commit a921c655f2033dd1ce1379128efe881dda23ea37 ] > > > > Currently, bfq does very little in bfq_requests_merged() and handles all > > the request cleanup in bfq_finish_requeue_request() called from > > blk_mq_free_request(). That is currently safe only because > > blk_mq_free_request() is called shortly after bfq_requests_merged() > > while bfqd->lock is still held. However to fix a lock inversion between > > bfqd->lock and ioc->lock, we need to call blk_mq_free_request() after > > dropping bfqd->lock. That would mean that already merged request could > > be seen by other processes inside bfq queues and possibly dispatched to > > the device which is wrong. So move cleanup of the request from > > bfq_finish_requeue_request() to bfq_requests_merged(). > > > > Acked-by: Paolo Valente > > Signed-off-by: Jan Kara > > Link: https://lore.kernel.org/r/20210623093634.27879-2-jack@suse.cz > > Signed-off-by: Jens Axboe > > Signed-off-by: Sasha Levin > > > > block/bfq-iosched.c | 41 +++++++++++++---------------------------- > > 1 file changed, 13 insertions(+), 28 deletions(-) > > > > Holger > > Wonderful! My two cents, While running ssuite long running stress testing we have noticed deadlock. > So if you drop that, all works well? I'll go drop that from the queues > now. Let me drop that patch and test it again. Crash log, [ 1957.278399] ============================================ [ 1957.283717] WARNING: possible recursive locking detected [ 1957.289031] 5.13.2-rc1 #1 Not tainted [ 1957.292703] -------------------------------------------- [ 1957.298016] kworker/u8:7/236 is trying to acquire lock: [ 1957.303241] ffff8cc203f92c38 (&bfqd->lock){-.-.}-{2:2}, at: bfq_finish_requeue_request+0x55/0x500 [bfq] [ 1957.312643] [ 1957.312643] but task is already holding lock: [ 1957.318467] ffff8cc203f92c38 (&bfqd->lock){-.-.}-{2:2}, at: bfq_insert_requests+0x81/0x1750 [bfq] [ 1957.327334] [ 1957.327334] other info that might help us debug this: [ 1957.333852] Possible unsafe locking scenario: [ 1957.333852] [ 1957.339762] CPU0 [ 1957.342206] ---- [ 1957.344651] lock(&bfqd->lock); [ 1957.347873] lock(&bfqd->lock); [ 1957.351097] [ 1957.351097] *** DEADLOCK *** [ 1957.351097] [ 1957.357008] May be due to missing lock nesting notation [ 1957.357008] [ 1957.363783] 3 locks held by kworker/u8:7/236: [ 1957.368136] #0: ffff8cc2009c5938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x207/0x5e0 [ 1957.377782] #1: ffff9ba980d57e68 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x207/0x5e0 [ 1957.388640] #2: ffff8cc203f92c38 (&bfqd->lock){-.-.}-{2:2}, at: bfq_insert_requests+0x81/0x1750 [bfq] [ 1957.397938] [ 1957.397938] stack backtrace: [ 1957.402291] CPU: 1 PID: 236 Comm: kworker/u8:7 Not tainted 5.13.2-rc1 #1 [ 1957.408989] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.2 05/23/2018 [ 1957.416374] Workqueue: writeback wb_workfn (flush-8:0) [ 1957.421513] Call Trace: [ 1957.423966] dump_stack+0x76/0x95 [ 1957.427283] __lock_acquire+0xb70/0x1a50 [ 1957.431203] ? lock_is_held_type+0xa0/0x110 [ 1957.435388] ? bfq_init_rq+0x30e/0x1140 [bfq] [ 1957.439748] lock_acquire+0x258/0x2e0 [ 1957.443413] ? bfq_finish_requeue_request+0x55/0x500 [bfq] [ 1957.448923] ? __lock_acquire+0x4a6/0x1a50 [ 1957.453016] ? __lock_acquire+0x3e0/0x1a50 [ 1957.457107] _raw_spin_lock_irqsave+0x3f/0x60 [ 1957.461466] ? bfq_finish_requeue_request+0x55/0x500 [bfq] [ 1957.466950] bfq_finish_requeue_request+0x55/0x500 [bfq] [ 1957.472256] ? rcu_read_lock_sched_held+0x4f/0x80 [ 1957.476960] blk_mq_free_request+0x3e/0x140 [ 1957.481146] blk_put_request+0xe/0x10 [ 1957.484804] blk_attempt_req_merge+0x1d/0x30 [ 1957.489075] elv_attempt_insert_merge+0x34/0x90 [ 1957.493599] blk_mq_sched_try_insert_merge+0x2c/0x50 [ 1957.498556] bfq_insert_requests+0x8d/0x1750 [bfq] [ 1957.503342] ? find_held_lock+0x35/0xa0 [ 1957.507180] ? writeback_sb_inodes+0x35a/0x550 [ 1957.511618] blk_mq_sched_insert_requests+0xd9/0x2a0 [ 1957.516580] blk_mq_flush_plug_list+0x138/0x270 [ 1957.521110] blk_flush_plug_list+0xd1/0x100 [ 1957.525295] blk_finish_plug+0x2c/0x40 [ 1957.529045] wb_writeback+0x1ab/0x430 [ 1957.532702] ? _raw_spin_unlock_bh+0x30/0x40 [ 1957.536970] wb_workfn+0xcb/0x660 [ 1957.540286] ? wb_workfn+0xcb/0x660 [ 1957.543770] ? lock_acquire+0x258/0x2e0 [ 1957.547600] ? process_one_work+0x207/0x5e0 [ 1957.551778] process_one_work+0x289/0x5e0 [ 1957.555782] ? inode_wait_for_writeback+0x40/0x40 [ 1957.560477] ? process_one_work+0x289/0x5e0 [ 1957.564656] worker_thread+0x3c/0x3f0 [ 1957.568315] ? process_one_work+0x5e0/0x5e0 [ 1957.572500] kthread+0x14c/0x170 [ 1957.575733] ? set_kthread_struct+0x40/0x40 [ 1957.579921] ret_from_fork+0x22/0x30 Waiting for transitory to terminate: 5[0KWaiting for transitory to terminate: 4[0K[ 2106.390977] systemd[1]: systemd-resolved.service: Watchdog timeout (limit 3min)! [ 2106.398454] systemd[1]: systemd-resolved.service: Killing process 349 (systemd-resolve) with signal SIGABRT. Reported-by: Linux Kernel Functional Testing ref: https://lkft.validation.linaro.org/scheduler/job/3058868#L2922 - Naresh