Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3836736rwd; Sat, 3 Jun 2023 13:03:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/PwI7tdOxooVCuhEyaEU9SutxTRha+2tH9SDe0/hRYk7WetD6GKNcNvlXMm6ExKrz8sfo X-Received: by 2002:a05:6358:5923:b0:123:3408:6da6 with SMTP id g35-20020a056358592300b0012334086da6mr15456126rwf.2.1685822635663; Sat, 03 Jun 2023 13:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685822635; cv=none; d=google.com; s=arc-20160816; b=uOmVnuXUaaoywNnSQj4rX/qQVOee/5+CuGd8x66pge6emy8rhH6fMgPH5MbALouhFQ /E6X/w1iwFFO4mdQwH/+zXwtSI9hVf2nq5qlzTVMlnI7zX4TxXCbZ8NK7vqL7460wi0v OFzcxn8Wa+gUzY/ZFrtpXP2esXRkek5jEaaJid0HFPbmju0LHWdE2e7yuspuu/O/LM5k YL5NhHREigljM1i54rzxtTXonvLP+7clhGBS5o0Fl9mOh9vGF7jhPpaVQVu6SiBYKcQL LDq7wjpjiIjNScI+gbNr5Y0JJ0nvOU6UGoTMFkI/0W/qf8Wi7+kj82CBiFLlw1vtpN1J QODA== 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=kI6f/+cjNtl2TVRRPKiWVfy9UQW66Aap+97IwcNFkfQ=; b=AtYUlymgH5Bq7zdrcxRICMZ5N5sq8DVR/gRQKabgDAz3kQxmt1GwO4Phl5NBk9lUhq aQfkewMl/XHndP4nIQIxEWdY6HQfF/+A9w9IXfZe4p8aSivJkco2YfxC849pVQ7LH8j/ zN6va3UrY/Pl7w83GBgO8/hTscU1qHxaIWTzzVgOiQI/0TPUnzuCmgeNDI6GKbyNKpbg VsjZYUDrG6GMIzzLH/9Utgi896STkSEcUcG8QGbo2A/rjhkOfkHHHnkH9RmumfZz2UPs YeLpjPpYzKDCgnCdk6La/1l1VPhcxUc76CAnmoRMj1sJrV4fqEDKbEqHvvSr72HIuDAt Z9zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KkH29b6r; 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 q12-20020a17090a2e0c00b0025327b5caefsi3092457pjd.165.2023.06.03.13.03.42; Sat, 03 Jun 2023 13:03:55 -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=KkH29b6r; 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 S229579AbjFCUCb (ORCPT + 99 others); Sat, 3 Jun 2023 16:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjFCUCa (ORCPT ); Sat, 3 Jun 2023 16:02:30 -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 4C58618D; Sat, 3 Jun 2023 13:02:29 -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 D48E9604EF; Sat, 3 Jun 2023 20:02:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 16E98C433EF; Sat, 3 Jun 2023 20:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685822548; bh=W6Ph1V7NwcCTO1o11ACZOYg3bN9VWa0uLMUPomqMqnA=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=KkH29b6rkyGAJmJHJckzZfOoD20UpfrqiArUK/vKyrIodwNmnLkiATwPc/3y9Mrnp p6JAMSTlAqgMZsoCVm+jE5DNsNl2FZ2qAo4vBZrEXEtmSE1ZtjNd45CphKBRmjXhxx q7BWHJKAKNPyvrQyoZ9gicOKhWi1A+1xbnQ2VB0Hbdb8/dSj8510Y4x1ELAYtPg6CI OBl0Wy+4qtaMe34Ij+iYcLqx3mAO3Kszp49c2Z1i4ieuypcs84T5mTimN5Yj+Wyq6S OLaN6oSBCTK3RlhUQBJfkn6YE/nOCyGSB1xaE9er6Oad+Qy5ByXBdU3tH9THm3fj5V TjxT5VN3QmDEQ== 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 DC8D1C395E0; Sat, 3 Jun 2023 20:02:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net/smc: Avoid to access invalid RMBs' MRs in SMCRv1 ADD LINK CONT From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168582254789.6132.5199487430130096814.git-patchwork-notify@kernel.org> Date: Sat, 03 Jun 2023 20:02:27 +0000 References: <1685608912-124996-1-git-send-email-guwen@linux.alibaba.com> In-Reply-To: <1685608912-124996-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 X-Spam-Status: No, score=-4.6 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, 1 Jun 2023 16:41:52 +0800 you wrote: > SMCRv1 has a similar issue to SMCRv2 (see link below) that may access > invalid MRs of RMBs when construct LLC ADD LINK CONT messages. > > BUG: kernel NULL pointer dereference, address: 0000000000000014 > #PF: supervisor read access in kernel mode > #PF: error_code(0x0000) - not-present page > PGD 0 P4D 0 > Oops: 0000 [#1] PREEMPT SMP PTI > CPU: 5 PID: 48 Comm: kworker/5:0 Kdump: loaded Tainted: G W E 6.4.0-rc3+ #49 > Workqueue: events smc_llc_add_link_work [smc] > RIP: 0010:smc_llc_add_link_cont+0x160/0x270 [smc] > RSP: 0018:ffffa737801d3d50 EFLAGS: 00010286 > RAX: ffff964f82144000 RBX: ffffa737801d3dd8 RCX: 0000000000000000 > RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff964f81370c30 > RBP: ffffa737801d3dd4 R08: ffff964f81370000 R09: ffffa737801d3db0 > R10: 0000000000000001 R11: 0000000000000060 R12: ffff964f82e70000 > R13: ffff964f81370c38 R14: ffffa737801d3dd3 R15: 0000000000000001 > FS: 0000000000000000(0000) GS:ffff9652bfd40000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000000000000014 CR3: 000000008fa20004 CR4: 00000000003706e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > smc_llc_srv_rkey_exchange+0xa7/0x190 [smc] > smc_llc_srv_add_link+0x3ae/0x5a0 [smc] > smc_llc_add_link_work+0xb8/0x140 [smc] > 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: Avoid to access invalid RMBs' MRs in SMCRv1 ADD LINK CONT https://git.kernel.org/netdev/net/c/c308e9ec0047 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html