Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2135594rwd; Fri, 19 May 2023 01:14:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4T52zb052GNre6mq1zLtdgx8jjjcCUZTaf5E0sITAhG4fcd/5TquQ14CZ/NZf/JfQvyrqb X-Received: by 2002:a05:6a00:2d90:b0:64c:b8bd:4192 with SMTP id fb16-20020a056a002d9000b0064cb8bd4192mr2050550pfb.6.1684484061561; Fri, 19 May 2023 01:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684484061; cv=none; d=google.com; s=arc-20160816; b=D7E8Et7kAc5zerM18khSnsLydz4HhXvWM4/pBPrKdojgVv/gIb+MawJKO+a9IwOYV3 hTzgvEYIZbqh9TILkkVrlNlpEAhuYLhqeNzJRWIeYCpmiqmkGBRz+HVOB2IZ+1kQ9zqu 2p5BjSoDJnIHnBpHx8ElGdr8zyl0f1TaQgdiBlkNHg7O4/bam+de+02waU6OEsNBocKK Y9pGiga7HoSFohnlAUaQM8qsRjFJItqCJDRN1SfnmIG4Td2z7gAnkGDYd/RSufbxa3PM hkFGRsh/3PkbRI1biVdrguMFXuPlxTEO9Gk0h3PNESp42/dyzCH9tw4EmL+CfmeKDxU0 obUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=5ecLjZGOQVhbjVsMwAGfgdNDGa4Mx8Ai9On+xkFVUfY=; b=JPoFEeo3B3S0oq/d8pE4l/1VuZfsVOvKniOVRYVLImVqKV1aCG/NKumf2cnKXtqafw ziLyq/CzX+T0pSA92LCm7vTrqVmzAv0bKb+cs6wp4TJwlgekWOSxIzRDK2ozMau03EwH rfY4X+vQJfCkOZcTRXFK+4zu1RnRqN9q6ZTvMPP5qQ+agUyQsvP2HNvYwuu96XyrpoG1 IvlGtcaUHNNBAJaLoqIof/+lqcUohaB6DLIBmo8zww4oYErlUqVQtQXl8prncUXyK0D2 4b9fg0KIQtN1/siQXqPVyUvidAGbbLsuDUZC1y6gBEXalF4jD9pW0nCXJJY73rzBTAnU N76Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OV8c+XnX; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a63704f000000b00514477c4416si3371845pgn.801.2023.05.19.01.14.06; Fri, 19 May 2023 01:14:21 -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=@kernel.org header.s=k20201202 header.b=OV8c+XnX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229846AbjESIA3 (ORCPT + 99 others); Fri, 19 May 2023 04:00:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjESIAX (ORCPT ); Fri, 19 May 2023 04:00:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20E12EC; Fri, 19 May 2023 01:00:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9893D654B3; Fri, 19 May 2023 08:00:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id EAAE4C4339E; Fri, 19 May 2023 08:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684483221; bh=sPRtpa2e0A1/1AI5Gdf3fcX269ohaGrXmwq0lvmMkCc=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=OV8c+XnXMvooXSBZzdK68WhqXtlmOrWm2QsYRg13wZxyJUrJ6ASI3Ca5GRVbuKbwN kyc8QTlgITK0eH+DDI5p9HH3JZYFZEmNCYbwa45WXltdPqmY26sgwJyCopaSUwMyFw W8SzoiDQDfRew4l0XXVG4AEVO3dV/qEjt6C3cjLUepBx7CpnEHC/xj0DTCaVvJHuSX wK37lpi8oUUIRyMIwq7qddSzl3knBHDZsO7ucS9opL9EQlKztZy2s5cBXYryOtRU5U /4CyrISWK4h/uMq0gEWQ8Ay9MYsJ34JEL1+SKZUV5dBJA1/QMp1dFgK0DyQc5eRwN8 NkePpPzQ82AAg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id C943CC73FE0; Fri, 19 May 2023 08:00:20 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net/smc: Reset connection when trying to use SMCRv2 fails. From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168448322080.32188.9310241476362959617.git-patchwork-notify@kernel.org> Date: Fri, 19 May 2023 08:00:20 +0000 References: <1684386895-112162-1-git-send-email-guwen@linux.alibaba.com> In-Reply-To: <1684386895-112162-1-git-send-email-guwen@linux.alibaba.com> To: Wen Gu Cc: kgraul@linux.ibm.com, wenjia@linux.ibm.com, jaka@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, liuyacan@corp.netease.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Thu, 18 May 2023 13:14:55 +0800 you wrote: > We found a crash when using SMCRv2 with 2 Mellanox ConnectX-4. It > can be reproduced by: > > - smc_run nginx > - smc_run wrk -t 32 -c 500 -d 30 http://: > > BUG: kernel NULL pointer dereference, address: 0000000000000014 > #PF: supervisor read access in kernel mode > #PF: error_code(0x0000) - not-present page > PGD 8000000108713067 P4D 8000000108713067 PUD 151127067 PMD 0 > Oops: 0000 [#1] PREEMPT SMP PTI > CPU: 4 PID: 2441 Comm: kworker/4:249 Kdump: loaded Tainted: G W E 6.4.0-rc1+ #42 > Workqueue: smc_hs_wq smc_listen_work [smc] > RIP: 0010:smc_clc_send_confirm_accept+0x284/0x580 [smc] > RSP: 0018:ffffb8294b2d7c78 EFLAGS: 00010a06 > RAX: ffff8f1873238880 RBX: ffffb8294b2d7dc8 RCX: 0000000000000000 > RDX: 00000000000000b4 RSI: 0000000000000001 RDI: 0000000000b40c00 > RBP: ffffb8294b2d7db8 R08: ffff8f1815c5860c R09: 0000000000000000 > R10: 0000000000000400 R11: 0000000000000000 R12: ffff8f1846f56180 > R13: ffff8f1815c5860c R14: 0000000000000001 R15: 0000000000000001 > FS: 0000000000000000(0000) GS:ffff8f1aefd00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000000000014 CR3: 00000001027a0001 CR4: 00000000003706e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > ? mlx5_ib_map_mr_sg+0xa1/0xd0 [mlx5_ib] > ? smcr_buf_map_link+0x24b/0x290 [smc] > ? __smc_buf_create+0x4ee/0x9b0 [smc] > smc_clc_send_accept+0x4c/0xb0 [smc] > smc_listen_work+0x346/0x650 [smc] > ? __schedule+0x279/0x820 > process_one_work+0x1e5/0x3f0 > worker_thread+0x4d/0x2f0 > ? __pfx_worker_thread+0x10/0x10 > kthread+0xe5/0x120 > ? __pfx_kthread+0x10/0x10 > ret_from_fork+0x2c/0x50 > > > [...] Here is the summary with links: - [net] net/smc: Reset connection when trying to use SMCRv2 fails. https://git.kernel.org/netdev/net/c/35112271672a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html