[PATCH] powerpc/ftrace: restore r2 to caller's stack on livepatch sibling call
    Ryan Sullivan 
    rysulliv at redhat.com
       
    Tue Jul 30 01:02:36 AEST 2024
    
    
  
Hello Michael,
In the case of no sibling call within the livepatch then the store is  
only "restoring" the r2 value that was already there as it is stored  
and retrieved from the livepatch stack. The only time that the r2 value  
is corrupted is in the case of a sibling call and thus this additional  
store is just restoring the caller's context as a safety precaution.  
Also should this explanation be put into the patch itself or will these  
messages suffice as a reference?
Cheers,
Ryan
    
    
More information about the Linuxppc-dev
mailing list