Following the analogous change for amd64 and i386 in 8223717ce62c,
ensure that new processes start with these registers inactive.
Reported by: Michał Górny
Differential D29630
arm64: clear debug register state on fork mhorne on Apr 7 2021, 7:34 PM. Authored by Tags None Referenced Files
Subscribers
Details
Following the analogous change for amd64 and i386 in 8223717ce62c, Reported by: Michał Górny Check the result of PT_GETDBREGS on a grandchild process before and after this change.
Diff Detail
Event TimelineComment Actions Should they also be cleared in exec_setregs()? Or do we expect to keep them if they are changed after fork()? Comment Actions Yes, we should clear them to be safe, since some settings will not apply to the new executable. I missed your recently added TODO comment there. I'll post a new review shortly. |