Skip to content

Conversation

FredKellerman
Copy link

@FredKellerman FredKellerman commented Sep 10, 2025

This PR has direct origin off of the tag mathworks_zynqrfsoc_R25.1.0, no direct branch to do the PR off of exists. The mathworks_R2026a branch is the closest public branch. This change is for the rftool code for the ZCU216 and ZCU111.

This PR slightly changes the code that buffers the incoming control plane characters from the TCP sockets api. Before this change a minor or major sockets exception would trigger writing outside of the bounds of a user space buffer. The data plane buffer checks were also cleaned up but the data plane is not directly used by Mathworks and the data plane had a sanity check preventing it from going out of bounds.

It was observed that sometimes even during board boot up when rftool is used via a localhost connection, the memory became corrupted; rftool would go a little off the rails but eventually land in a sanity check that subtly directly exits and ends the process. The memory overwrite will not always happen, it actually works without issue more times than it fails. But when it does fail it is game over.

These changes were verified on the ZCU208 and seem to only make the system more robust. Testing should be performed on the ZCU111 and ZCU216 for anything that uses rftool that doesn't have this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants