Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4894426pxb; Tue, 5 Oct 2021 12:43:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0gQ+/YTn5cpAPfAPaM3JVrg3sWpk0nJ5Tzu+s88kQDjMoqUW+FUkiHflQp5YaHqZ9+4j4 X-Received: by 2002:a17:90a:384a:: with SMTP id l10mr5877807pjf.168.1633463018379; Tue, 05 Oct 2021 12:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633463018; cv=none; d=google.com; s=arc-20160816; b=KV8khhhgL1FSP0tiq6tJ47QPi6OG4fH8OL6ZirxlAUaubiQG4haOTm69DCll1VfuOL A1+/mLG39uKbun8LlXNFTjuNkcR37yjOanAAuneZvz16U0sXOa02SYfqDw3CDs9yldQU VzOr9OZg84Tsce8wArhVZKBZR3fxOB5yor14yO9jQz0FWYHmvDXcD3Heg7l2T0VHn4jo c/iLMEqDX2iDbrlFIiea4mkikVfKIegp31/FU8Xfv576rcXMil9kaNfKc7sbWsXhxPt3 jd4p3rp9Ms5JDpkdYDlgTUQ861dL3gOUmonq7QJHoxf6kgrQDyqmcxN3M5kmmpO3w64E zH5g== 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=+8SNQ/BUCGUuug/KneYCQ18TWuSycJxPe40EryL3As8=; b=SH2bljFsSd4cg2thy+MHKmc9i8mntlHyfdiEgJ/xtyyl3Bv/OTzSst5HSAjSsj2AvE Xf81XMIqKMZdvrTEBRn5A+u/ISuHjEIcdCoWVEcRjhU8D/W28/dKmR3r8M3EBKp11LDc yCr8rK1JSY2xOWtTBQgUsYfWHEV9+S4TAy3A0jL9cpYNsLB16NFQykWs1E/a2NKRo0l7 eTzFY3yWANFnbY+RQc58bSF7D1BTlRGiW7hCP4qtRMzVesLXWP+TC3N/KrCdrN1o/Zca YxaRKSjHIm/q+QB54StGzuBRJyAvgMtXlATmapW27F8HVSMJYfEt5/bdTWVAIrfcdjFc Zdgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IsMRmg3o; 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 ls9si4194472pjb.73.2021.10.05.12.43.24; Tue, 05 Oct 2021 12:43:38 -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=IsMRmg3o; 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 S235519AbhJEToX (ORCPT + 99 others); Tue, 5 Oct 2021 15:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235496AbhJEToW (ORCPT ); Tue, 5 Oct 2021 15:44:22 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B7ADC06174E for ; Tue, 5 Oct 2021 12:42:31 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id x7so913722edd.6 for ; Tue, 05 Oct 2021 12:42:31 -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=+8SNQ/BUCGUuug/KneYCQ18TWuSycJxPe40EryL3As8=; b=IsMRmg3op1/W/FJCoSqfcYl8D6JZHanQtR20HmWJnZI5KPL33yHrD/CjvkGoVoi6KH 33ajyvHQCKw9c/eANvr6FnieU+KeVuHxIqMNn8IrlBI2CBWZRy3IN+o9a44JHWvaXmgG sQLzRRus5aLRTM+iqm9v67n5STspxcuxGmVsSCzxzxLVHGJcRWFf0tSeY89FvXx/3Cd4 H0yKTk7l5lk1oWrw6sWcdFxyO49Ld937EqhQ6eOFAk8RqSaaybrrRAhEGych25Ce7iQe nS9HYRgYvD6sY5+lTIDGqBmzdYMb0sG+VeSKW4ffOogz0iBntObkiV2j7znEwmag5+IW 01Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+8SNQ/BUCGUuug/KneYCQ18TWuSycJxPe40EryL3As8=; b=2Tsfx2vr9/bnTUaWoHtJlaZMGeby87tnPXFT1cXFQqqBCxpkmcieai8/Y+/iaG3OTb QmZVfo6cI/SSiAr85YhyX7OQf+pMizd0oPvBM+s+50sw7bSBCbWQkDLjTO8OuJ9/fTJ2 qaKy2FB2/ggQTzGPitYsffWqs1ywCacCCNvLrVau4zH3VF3TsSIbUerypckvIqlLzqps KXYx9GCpMn0lU6k2pC4ijOv6xNfwEGp51v3MSdE+VJb3z7gwac4lnaWfPKKdcnPqHGZZ YD3TzkZoKwr3QfvkoEi1m5Wc2MKFPmwiFVwf7mdEsZYNj/9oEJPwSMCU5AvnY+mjt8IV RiVA== X-Gm-Message-State: AOAM533krCFEznE4JBol8ytEdG/tCnTj9Qx3ctP2Yf8EAkQI9m6sJVk5 OH+WsGKagWYDv4m1GPoMv4ffaA2j/GDbI5wzOZg+/g== X-Received: by 2002:a17:906:c7c1:: with SMTP id dc1mr28278167ejb.6.1633462949452; Tue, 05 Oct 2021 12:42:29 -0700 (PDT) MIME-Version: 1.0 References: <20211005083311.830861640@linuxfoundation.org> <20211005155909.GA1386975@roeck-us.net> <4ecdfb07-4957-913a-6bd3-4410bd2cb5c0@iki.fi> In-Reply-To: <4ecdfb07-4957-913a-6bd3-4410bd2cb5c0@iki.fi> From: Naresh Kamboju Date: Wed, 6 Oct 2021 01:12:17 +0530 Message-ID: Subject: Re: [PATCH 5.14 000/173] 5.14.10-rc2 review To: Thomas Backlund , Greg Kroah-Hartman Cc: Guenter Roeck , open list , Linus Torvalds , Andrew Morton , Shuah Khan , patches@kernelci.org, lkft-triage@lists.linaro.org, Pavel Machek , Jon Hunter , Florian Fainelli , linux-stable , Netdev , Thomas Gleixner , "David S. Miller" , Jakub Kicinski , Jann Horn , "Eric W. Biederman" , Luiz Augusto von Dentz , Paolo Abeni Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Oct 2021 at 00:37, Thomas Backlund wrote: > > Den 2021-10-05 kl. 18:59, skrev Guenter Roeck: > > On Tue, Oct 05, 2021 at 10:38:40AM +0200, Greg Kroah-Hartman wrote: > >> This is the start of the stable review cycle for the 5.14.10 release. > >> There are 173 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 Thu, 07 Oct 2021 08:32:44 +0000. > >> Anything received after that time might be too late. > >> > > > > AFAICS the warning problems are still seen. Unfortunately I won't be able > > to bisect since I have limited internet access. > > > > Guenter > > > > ========================= > > WARNING: held lock freed! > > 5.14.10-rc2-00174-g355f3195d051 #1 Not tainted > > ------------------------- > > ip/202 is freeing memory c000000009918900-c000000009918f7f, with a lock still held there! > > c000000009918a20 (sk_lock-AF_INET){+.+.}-{0:0}, at: .sk_common_release+0x4c/0x1b0 > > 2 locks held by ip/202: > > #0: c00000000ae149d0 (&sb->s_type->i_mutex_key#5){+.+.}-{3:3}, at: .__sock_release+0x4c/0x150 > > #1: c000000009918a20 (sk_lock-AF_INET){+.+.}-{0:0}, at: .sk_common_release+0x4c/0x1b0 > > > > > When I reverted the following two patches the warning got fixed. 73a03563f123 af_unix: fix races in sk_peer_pid and sk_peer_cred accesses b226d61807f1 net: introduce and use lock_sock_fast_nested() > Isn't this a fallout of: > > queue-5.14/net-introduce-and-use-lock_sock_fast_nested.patch > that has: Fixes: 2dcb96bacce3 ("net: core: Correct the > sock::sk_lock.owned lockdep annotations") I have cherry-picked and tested but still I see this new warning. old warings are: ---------------------- [ 22.528947] WARNING: held lock freed! or [ 36.765439] WARNING: lock held when returning to user space! new warning after the cherry pick. ------------------ [ 22.330646] ============================================ [ 22.335955] WARNING: possible recursive locking detected [ 22.341260] 5.14.10-rc2 #1 Not tainted [ 22.345004] -------------------------------------------- [ 22.348869] igb 0000:02:00.0 eno2: renamed from eth1 [ 22.350309] sd-resolve/345 is trying to acquire lock: [ 22.350310] ffff9a39c9580120 (sk_lock-AF_INET){+.+.}-{0:0}, at: udp_destroy_sock+0x3a/0xe0 [ 22.350317] [ 22.350317] but task is already holding lock: [ 22.350317] ffff9a39c9580120 (sk_lock-AF_INET){+.+.}-{0:0}, at: sk_common_release+0x22/0x110 [ 22.350321] [ 22.350321] other info that might help us debug this: [ 22.350321] Possible unsafe locking scenario: [ 22.350321] [ 22.350322] CPU0 [ 22.350322] ---- [ 22.350322] lock(sk_lock-AF_INET); [ 22.350323] lock(sk_lock-AF_INET); [ 22.350324] [ 22.350324] *** DEADLOCK *** [ 22.350324] [ 22.350324] May be due to missing lock nesting notation [ 22.350324] [ 22.350325] 2 locks held by sd-resolve/345: [ 22.350326] #0: ffff9a39c0610c10 (&sb->s_type->i_mutex_key#6){+.+.}-{3:3}, at: __sock_release+0x32/0xb0 [ 22.424188] #1: ffff9a39c9580120 (sk_lock-AF_INET){+.+.}-{0:0}, at: sk_common_release+0x22/0x110 [ 22.424191] [ 22.424191] stack backtrace: [ 22.424192] CPU: 2 PID: 345 Comm: sd-resolve Not tainted 5.14.10-rc2 #1 [ 22.424194] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 22.424195] Call Trace: [ 22.424196] dump_stack_lvl+0x49/0x5e [ 22.424200] dump_stack+0x10/0x12 [ 22.424202] __lock_acquire.cold+0x21f/0x2b8 [ 22.424204] ? lock_is_held_type+0x9d/0x110 [ 22.424207] lock_acquire+0xb5/0x2c0 [ 22.424209] ? udp_destroy_sock+0x3a/0xe0 [ 22.424212] ? sk_common_release+0x22/0x110 [ 22.424214] __lock_sock_fast+0x34/0x90 [ 22.424216] ? udp_destroy_sock+0x3a/0xe0 [ 22.424217] udp_destroy_sock+0x3a/0xe0 [ 22.424219] ? sk_common_release+0x22/0x110 [ 22.424220] sk_common_release+0x22/0x110 [ 22.424221] udp_lib_close+0x9/0x10 [ 22.424223] inet_release+0x48/0x80 [ 22.424225] __sock_release+0x42/0xb0 [ 22.424227] sock_close+0x18/0x20 [ 22.424228] __fput+0xbb/0x270 [ 22.424230] ____fput+0xe/0x10 [ 22.424231] task_work_run+0x64/0xb0 [ 22.424234] exit_to_user_mode_prepare+0x201/0x210 [ 22.424237] syscall_exit_to_user_mode+0x1e/0x50 [ 22.424239] do_syscall_64+0x69/0x80 [ 22.424241] ? do_syscall_64+0x69/0x80 [ 22.424243] ? exc_page_fault+0x7c/0x220 [ 22.424244] ? asm_exc_page_fault+0x8/0x30 [ 22.424246] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 22.424248] RIP: 0033:0x7f509b8c4837 [ 22.424250] Code: 2c 00 f7 d8 64 89 02 b8 ff ff ff ff c3 48 8b 0d 57 86 2c 00 f7 d8 64 89 01 b8 ff ff ff ff eb c2 0f 1f 00 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 31 86 2c 00 f7 d8 64 89 02 b8 [ 22.424251] RSP: 002b:00007f509a9419c8 EFLAGS: 00000213 ORIG_RAX: 0000000000000003 [ 22.424253] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 00007f509b8c4837 [ 22.424254] RDX: 0000000000001387 RSI: 0000000000000000 RDI: 000000000000000c [ 22.424255] RBP: 00007f509a949db8 R08: 0000000000000000 R09: 0000000000005d18 [ 22.424256] R10: 00007ffc8831c080 R11: 0000000000000213 R12: 0000000000000000 [ 22.424257] R13: 0000000000000000 R14: 00007f509a949db8 R15: 0000000000000004 ref: new warning after the cherry-pick full test log link, https://lkft.validation.linaro.org/scheduler/job/3673750 on RC2 the original reported warning links, https://lkft.validation.linaro.org/scheduler/job/3672925#L1185 https://lkft.validation.linaro.org/scheduler/job/3672930#L1261 > > BUT: > > $ git describe --contains 2dcb96bacce3 > v5.15-rc3~30^2~26 > > -- > Thomas - Naresh