We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea08816 commit 5096732Copy full SHA for 5096732
arch/x86/lib/checksum_32.S
@@ -29,7 +29,8 @@
29
#include <asm/errno.h>
30
#include <asm/asm.h>
31
#include <asm/export.h>
32
-
+#include <asm/nospec-branch.h>
33
+
34
/*
35
* computes a partial checksum, e.g. for TCP/UDP fragments
36
*/
@@ -156,7 +157,7 @@ ENTRY(csum_partial)
156
157
negl %ebx
158
lea 45f(%ebx,%ebx,2), %ebx
159
testl %esi, %esi
- jmp *%ebx
160
+ JMP_NOSPEC %ebx
161
162
# Handle 2-byte-aligned regions
163
20: addw (%esi), %ax
@@ -439,7 +440,7 @@ ENTRY(csum_partial_copy_generic)
439
440
andl $-32,%edx
441
lea 3f(%ebx,%ebx), %ebx
442
443
444
1: addl $64,%esi
445
addl $64,%edi
446
SRC(movb -32(%edx),%bl) ; SRC(movb (%edx),%bl)
0 commit comments