Before you start the upgrade, make sure to upgrade to the latest available 3.5.x version. This will make sure that you are building against the most recent dependencies of that line. Please take time ...
Kernel panics on RHEL 9 require booting into rescue mode or using a previous kernel for diagnosis. Rebuild the initramfs, check fstab, and verify hardware health to resolve the underlying issue.