Skip to content

net/smc: fixes 2022-04-08

Karsten Graul linux-s390 netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net/smc: use memcpy instead of snprintf to avoid out of bounds readnet/smc/smc_clc.c+4 -20 repliesApplied
2/3net/smc: Fix NULL pointer dereference in smc_pnet_find_ib()net/smc/smc_pnet.c+3 -20 repliesApplied
3/3net/smc: Fix af_ops of child socket pointing to released memorynet/smc/af_smc.c+12 -21 replyApplied

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchWenjia ZhangD. Wythe
1/3
2/3
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/3] net/smc: fixes 2022-04-08

Please apply the following patches to netdev's net tree.

Patch 1 fixes two usages of snprintf() with non null-terminated string which results into an out-of-bounds read.
Pach 2 fixes a syzbot finding where a pointer check was missed before the call to dev_name().
Patch 3 fixes a crash when already released memory is used as a function pointer.

Karsten Graul (3):
net/smc: use memcpy instead of snprintf to avoid out of bounds read net/smc: Fix NULL pointer dereference in smc_pnet_find_ib() net/smc: Fix af_ops of child socket pointing to released memory

 net/smc/af_smc.c   | 14 ++++++++++++--
 net/smc/smc_clc.c  |  6 ++++--
 net/smc/smc_pnet.c |  5 +++--
 3 files changed, 19 insertions(+), 6 deletions(-)
Signature · 1 line
2.32.0