Thread (2 messages) flat view 2 messages, 2 authors, 2d ago

Re: [PATCH net v2] s390/ctcm: Prevent XID null dereference

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-02 00:37:43
Also in: linux-s390, stable

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Thu, 27 Aug 2026 08:34:08 +0200 you wrote:
The mpc_validate_xid() function sets grp->saved_xid2->xid2_flag2 to 0x40
to signal XID validation error. If peer XID is NULL or r/w channel
pairing mismatch happens, grp->saved_xid2 is never initialized. An
attempt to set the flag in such case leads to NULL dereference.

Fix this by using the always available priv->xid->xid2_flag2 instead of
grp->saved_xid2->xid2_flag2 for validation errors.

[...]
Here is the summary with links:
  - [net,v2] s390/ctcm: Prevent XID null dereference
    https://git.kernel.org/netdev/net/c/b264d8422779

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help