Jam crashes node

Seems related on the ongoing attack, either the jam wallet will lock up, or the entire s9 node will crash. It looks like its an OOM issue, as the ram gets constantly used up overtime, typically crashing within a day.

There is a hotfix, linked below. Is there a way to implement the patch noted here?

The command is:
curl -sL https://github.com/m0wer/joinmarket-clientserver/commit/b391a29e5f3c28e93fc8e80bb261830adbb7ed86.patch -o /tmp/onionmc.patch && FILE=$(find / -type f -name onionmc.py 2>/dev/null | head -n 1) && DIR=$(dirname $(dirname $(dirname “$FILE”))) && echo “Patching in: $DIR” && cd “$DIR” && patch -p1 -i /tmp/onionmc.patch && echo “Success”

But I wasnt able to get the command to work in s9 while ssh’d in.