Re: [PATCH] x86, nospec: Fix uninitialized mask in array_index_mask_nospec()

2018-02-14 Thread Linus Torvalds
On Wed, Feb 14, 2018 at 12:50 PM, Dan Williams wrote: > Break the false dependency on the uninitialized value of 'mask' in > array_index_mask_nospec(). This potentially allows the CPU to rename the > register, avoids reports from tools that can detect uninitialized

Re: [PATCH] x86, nospec: Fix uninitialized mask in array_index_mask_nospec()

2018-02-14 Thread Linus Torvalds
On Wed, Feb 14, 2018 at 12:50 PM, Dan Williams wrote: > Break the false dependency on the uninitialized value of 'mask' in > array_index_mask_nospec(). This potentially allows the CPU to rename the > register, avoids reports from tools that can detect uninitialized inline > asm arguments, and

[PATCH] x86, nospec: Fix uninitialized mask in array_index_mask_nospec()

2018-02-14 Thread Dan Williams
Break the false dependency on the uninitialized value of 'mask' in array_index_mask_nospec(). This potentially allows the CPU to rename the register, avoids reports from tools that can detect uninitialized inline asm arguments, and makes it explicit that this sequence wants the result of (0 - 0 -

[PATCH] x86, nospec: Fix uninitialized mask in array_index_mask_nospec()

2018-02-14 Thread Dan Williams
Break the false dependency on the uninitialized value of 'mask' in array_index_mask_nospec(). This potentially allows the CPU to rename the register, avoids reports from tools that can detect uninitialized inline asm arguments, and makes it explicit that this sequence wants the result of (0 - 0 -