linux_dsm_epyc7002/net/rds
Gerd Rausch 787f95b1e3 net/rds: dma_map_sg is entitled to merge entries
[ Upstream commit fb4b1373dcab086d0619c29310f0466a0b2ceb8a ]

Function "dma_map_sg" is entitled to merge adjacent entries
and return a value smaller than what was passed as "nents".

Subsequently "ib_map_mr_sg" needs to work with this value ("sg_dma_len")
rather than the original "nents" parameter ("sg_len").

This old RDS bug was exposed and reliably causes kernel panics
(using RDMA operations "rds-stress -D") on x86_64 starting with:
commit c588072bba6b ("iommu/vt-d: Convert intel iommu driver to the iommu ops")

Simply put: Linux 5.11 and later.

Signed-off-by: Gerd Rausch <gerd.rausch@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Link: https://lore.kernel.org/r/60efc69f-1f35-529d-a7ef-da0549cad143@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 19:00:50 +02:00
..
af_rds.c
bind.c
cong.c
connection.c RDS tcp loopback connection can hang 2021-06-16 12:01:36 +02:00
ib_cm.c RDMA: Add rdma_connect_locked() 2020-10-28 09:14:49 -03:00
ib_frmr.c net/rds: dma_map_sg is entitled to merge entries 2024-07-05 19:00:50 +02:00
ib_mr.h
ib_rdma.c
ib_recv.c net/rds: suppress page allocation failure error in recv buffer refill 2020-10-09 12:32:03 -07:00
ib_ring.c
ib_send.c
ib_stats.c
ib_sysctl.c
ib.c
ib.h RDMA: Lift ibdev_to_node from rds to common code 2021-02-26 10:12:59 +01:00
info.c
info.h
Kconfig
loop.c
loop.h
Makefile
message.c net/rds: Fix a use after free in rds_message_map_pages 2021-04-14 08:42:09 +02:00
page.c
rdma_transport.c
rdma_transport.h
rdma.c net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS 2021-02-17 11:02:30 +01:00
rds_single_path.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rds.h
recv.c net: rds: fix memory leak in rds_recvmsg 2021-06-23 14:42:42 +02:00
send.c
stats.c
sysctl.c
tcp_connect.c
tcp_listen.c RDS tcp loopback connection can hang 2021-06-16 12:01:36 +02:00
tcp_recv.c
tcp_send.c
tcp_stats.c
tcp.c RDS tcp loopback connection can hang 2021-06-16 12:01:36 +02:00
tcp.h RDS tcp loopback connection can hang 2021-06-16 12:01:36 +02:00
threads.c
transport.c