summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorGreg Marsden <greg.marsden@oracle.com>2026-09-05 10:00:41 -0700
committerJakub Kicinski <kuba@kernel.org>2026-09-10 08:19:17 -0700
commit2ac09b5353fe6858411fdc8c6efa60d832e20f13 (patch)
tree59b37dc616b531c0fd1fae4800544096428c90b7 /scripts/basic
parent4c46beb807efcc93f5899ebe1f5958248eb296c6 (diff)
downloadlinux-2ac09b5353fe6858411fdc8c6efa60d832e20f13.tar.gz
linux-2ac09b5353fe6858411fdc8c6efa60d832e20f13.zip
net/rds: fix tcp stream corruption with large pages
rds_message_map_pages() assigns PAGE_SIZE bytes to every scatterlist entry, even when total_len ends in a partial page. The RDS congestion map is defined as 8192 bytes, so on systems with PAGE_SIZE greater than 8192 the scatterlist maps bytes beyond the end of the congestion map. RDS-TCP transmits the SG contents according to those lengths, so the extra bytes become part of the TCP RDS stream and are interpreted as subsequent RDS message headers, corrupting the stream. Limit the final scatterlist mapping to the number of bytes remaining. This has no effect on systems with a 4K page size and allows RDS-TCP to be used on systems with 16K and larger page sizes. The RDS selftest, which previously hung on 16K pages, now passes. Fixes: 7875e18e0996 ("RDS: Message parsing") Signed-off-by: Greg Marsden <greg.marsden@oracle.com> Reviewed-by: Allison Henderson <achender@kernel.org> Link: https://patch.msgid.link/apxJjxvStibPI0AS@oracle.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions