From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1C6C399346; Wed, 13 May 2026 03:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778643968; cv=none; b=eQmNh17E3DVHV1CEpWxVGJTjJ4Ae8+LPCLrMiNO+AMLj0PuFeov1heD6bn6hd+1/lkphOW9NkQsKJ5cskAyreUuzj4IjWgKahaEU87wq6Q5hA+CnecU0d0NJE2OFIL+7/dKZMwEVa/WdbnCuJGweZRXOC7dBoEQOBHncznUP8P0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778643968; c=relaxed/simple; bh=cBzNfESIoIwL0XJB4bSmZHEGSqM7E9hWVahPbhi2bAI=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=JwB3/DLldblOwQpsH/hDTPS9+Qr1cOnDN/zrOcu0MUX+qSBTh7mGrlZObg0BqIZoorMabIyaYAsTWYlRog48eYMa3y/onUyhN5hTLORuMlj8K7kcrP+Js1HlTEmc2M7JfhrtwAR2UjtZXatpeObk3gJSyqdTxx2IkzoOy8b46pQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L7DwdxVR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L7DwdxVR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83FF5C2BCFA; Wed, 13 May 2026 03:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778643968; bh=cBzNfESIoIwL0XJB4bSmZHEGSqM7E9hWVahPbhi2bAI=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=L7DwdxVR4NN24rI3/0OoLDhaX1P5TQmYbin08SesHvX0JzxSbHdfot5BDuezRmch5 q7DcA9y4VL/+qYtBvZqwDFCyrFzM+ha4WTC5nSP2pj7LnxOsXplUgrCSYg2rM5kp3X TOGnzCBM7jSxI7ciYPOqcNBfvRxc3FZOfeNTvnc3ySPTJOBqgZEHjzJgV9+S5HNlti XN2Dcqpj0GNQPUNRELjNGqejwLJuc8bGAA72abF/VBcAFFF2hpiIhk5ivQXUxl33v7 dBuQQQQJlfKAIRYtDkDaWlHVGpS2sumGMEy8TuAxDhQ04JbZtEt+s0Y/UDOucFRHlA GM7R/RRC96GAg== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 7CEAB3822D60; Wed, 13 May 2026 03:45:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net/smc: avoid NULL deref of conn->lnk in smc_msg_event tracepoint From: patchwork-bot+netdevbpf@kernel.org Message-Id: <177864391404.3173643.11609029182707256473.git-patchwork-notify@kernel.org> Date: Wed, 13 May 2026 03:45:14 +0000 References: <20260510222640.1230720-1-xmei5@asu.edu> In-Reply-To: <20260510222640.1230720-1-xmei5@asu.edu> To: Xiang Mei Cc: netdev@vger.kernel.org, alibuda@linux.alibaba.com, dust.li@linux.alibaba.com, wenjia@linux.ibm.com, sidraya@linux.ibm.com, tonylu@linux.alibaba.com, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, bestswngs@gmail.com Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Sun, 10 May 2026 15:26:40 -0700 you wrote: > The smc_msg_event tracepoint class, shared by smc_tx_sendmsg and > smc_rx_recvmsg, unconditionally dereferences smc->conn.lnk: > > __string(name, smc->conn.lnk->ibname) > > conn->lnk is only set for SMC-R; for SMC-D it is NULL. Other code on > these paths already handles this (e.g. !conn->lnk in > SMC_STAT_RMB_TX_SIZE_SMALL()). With the tracepoint enabled, the first > sendmsg()/recvmsg() on an SMC-D socket crashes: > > [...] Here is the summary with links: - [net] net/smc: avoid NULL deref of conn->lnk in smc_msg_event tracepoint https://git.kernel.org/netdev/net/c/7bf563badd37 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html