Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: fix ipv6 checksum

ipv6 recently started exhibiting the same symptoms as ipv4 was, add
a memory clobber around inline checksum assembly that fribbles memory
to ensure gcc doesn't erroneously cache across it.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

+1 -1
+1 -1
arch/parisc/include/asm/checksum.h
··· 182 182 #endif 183 183 : "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len) 184 184 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len), "r" (proto) 185 - : "r19", "r20", "r21", "r22"); 185 + : "r19", "r20", "r21", "r22", "memory"); 186 186 return csum_fold(sum); 187 187 } 188 188