On Thu, Nov 30, 2023 at 2:30 PM Roger Pau Monne <[email protected]> wrote: > > When checking if an address belongs to a patch, or when resolving a symbol, > take into account all loaded livepatch payloads, even if not applied. > > This is required in order for the pre-apply and post-revert hooks to work > properly, or else Xen won't detect the intruction pointer belonging to those > hooks as being part of the currently active text. > > Move the RCU handling to be used for payload_list instead of applied_list, as > now the calls from trap code will iterate over the payload_list. > > Fixes: 8313c864fa95 ('livepatch: Implement pre-|post- apply|revert hooks') > Signed-off-by: Roger Pau Monné <[email protected]>
Reviewed-by: Ross Lagerwall <[email protected]>
