Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1621650 > unrolled thread
| Started by | Borislav Petkov <bp@suse.de> |
|---|---|
| First post | 2017-04-12 00:00 +0200 |
| Last post | 2017-04-12 00:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [v6 PATCH 01/21] x86/mpx: Use signed variables to compute effective addresses Borislav Petkov <bp@suse.de> - 2017-04-12 00:00 +0200
| From | Borislav Petkov <bp@suse.de> |
|---|---|
| Date | 2017-04-12 00:00 +0200 |
| Subject | Re: [v6 PATCH 01/21] x86/mpx: Use signed variables to compute effective addresses |
| Message-ID | <tvbZn-4ay-5@gated-at.bofh.it> |
On Tue, Mar 07, 2017 at 04:32:34PM -0800, Ricardo Neri wrote:
> Even though memory addresses are unsigned. The operands used to compute the
... unsigned, the operands ...
> effective address do have a sign. This is true for the r/m part of the
> ModRM byte, the base and index parts of the SiB byte as well as the
> displacement. Thus, signed variables shall be used when computing the
> effective address from these operands. Once the signed effective address
> has been computed, it is casted to an unsigned long to determine the
> linear address.
>
> Variables are renamed to better reflect the type of address being
> computed.
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
--
Back to top | Article view | linux.kernel
csiph-web