diff options
| author | 2026-05-05 16:43:36 -0700 | |
|---|---|---|
| committer | 2026-05-11 17:20:02 -0700 | |
| commit | e174929793195e0cd6a4adb0cad731b39f9019b4 (patch) | |
| tree | 9980530ffee5f0c5a7c0c17b0f9b755388b0f5fd /tools/testing/ktest/examples/include/ssh:/git@git.zx2c4.com | |
| parent | net: xgene: fix mdio_np leak in xgene_mdiobus_register() (diff) | |
net/rds: reset op_nents when zerocopy page pin fails
When iov_iter_get_pages2() fails in rds_message_zcopy_from_user(),
the pinned pages are released with put_page(), and
rm->data.op_mmp_znotifier is cleared. But we fail to properly
clear rm->data.op_nents.
Later when rds_message_purge() is called from rds_sendmsg() the
cleanup loop iterates over the incorrectly non zero number of
op_nents and frees them again.
Fix this by properly resetting op_nents when it should be in
rds_message_zcopy_from_user().
Fixes: 0cebaccef3ac ("rds: zerocopy Tx support.")
Signed-off-by: Allison Henderson <achender@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260505234336.2132721-1-achender@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/ktest/examples/include/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
