Re: [v6 PATCH 04/21] x86/mpx, x86/insn: Relocate insn util functions to a new insn-kernel

2017-04-12 Thread Borislav Petkov
On Tue, Mar 07, 2017 at 04:32:37PM -0800, Ricardo Neri wrote: > Other kernel submodules can benefit from using the utility functions > defined in mpx.c to obtain the addresses and values of operands contained > in the general purpose registers. An instance of this is the emulation code > used for

Re: [v6 PATCH 05/21] x86/insn-eval: Add utility functions to get register offsets

2017-04-12 Thread Borislav Petkov
On Tue, Mar 07, 2017 at 04:32:38PM -0800, Ricardo Neri wrote: > The function insn_get_reg_offset takes as argument an enumeration that Please end function names with parentheses. And do you mean get_reg_offset(), per chance? > indicates the type of offset that is returned: the R/M part of the