Re: [PATCH v3 1/2] crypto: Fix out-of-bounds access of the data buffer in generic-gcm-aesni

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, December 20, 2017 5:08:37 PM PST Junaid Shahid wrote:
> +.macro READ_PARTIAL_BLOCK DPTR DLEN XMM1 XMMDst
> +        cmp $8, \DLEN
> +        jl _read_lt8_\@

> +        mov (\DPTR), %rax
> +        MOVQ_R64_XMM %rax, \XMMDst
Just noticed that these two can be replaced with:
+        movq (\DPTR), \XMMDst

> +        sub $8, \DLEN
> +        jz _done_read_partial_block_\@
> +	xor %eax, %eax
> +_read_next_byte_\@:




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux