search for: text_poke_loc

Displaying 3 results from an estimated 3 matches for "text_poke_loc".

2020 Apr 08
0
[RFC PATCH 14/26] x86/alternatives: Handle native insns in text_poke_loc*()
On Tue, Apr 07, 2020 at 10:03:11PM -0700, Ankur Arora wrote: > struct text_poke_loc { > s32 rel_addr; /* addr := _stext + rel_addr */ > - s32 rel32; > - u8 opcode; > + union { > + struct { > + s32 rel32; > + u8 opcode; > + } emulated; > + struct { > + u8 len; > + } native; > + }; > const u8 text[POKE_MAX_OPCODE_SIZE]; > };...
2020 Apr 08
0
[RFC PATCH 14/26] x86/alternatives: Handle native insns in text_poke_loc*()
...3:11PM -0700, Ankur Arora wrote: > @@ -1071,10 +1079,13 @@ int notrace poke_int3_handler(struct pt_regs *regs) > goto out_put; > } > > - len = text_opcode_size(tp->opcode); > + if (desc->native) > + BUG(); > + Subject: x86/alternatives: Handle native insns in text_poke_loc*() That's not really handling, is it..
2020 Apr 08
0
[RFC PATCH 00/26] Runtime paravirt patching
...actual poking state-machine: > "x86/alternatives: Non-emulated text poking" > "x86/alternatives: Add patching logic in text_poke_site()" > > with patches 14 and 18 containing the pieces for BP handling: > "x86/alternatives: Handle native insns in text_poke_loc*()" > "x86/alternatives: Handle BP in non-emulated text poking" > > and patch 19 provides the ability to use the state-machine above in an > NMI context (fixes some potential deadlocks when handling inter- > dependent operations and multiple NMIs): > &q...