Apply changes from commitid FWrfGfO9Ojnsh1mq to libkern.
authorguenther <guenther@openbsd.org>
Wed, 7 Dec 2022 18:25:32 +0000 (18:25 +0000)
committerguenther <guenther@openbsd.org>
Wed, 7 Dec 2022 18:25:32 +0000 (18:25 +0000)
commitfc541c5dac429051bdc0c092615e861e86da24e9
tree8bc705fcd3d4f3aeba4eacaf5358e624a6ceacc0
parent153dcafa7b73fccdfd15900837ce9e7b2f4c8d7a
Apply changes from commitid FWrfGfO9Ojnsh1mq to libkern.
From original commit message: To mitigate against spectre attacks,
AMD processors without the IBRS feature need an lfence instruction
after every near ret.  See software techniques for managing speculation
on AMD processors revision 9.17.20 mitigation G-5.

ok deraadt@
15 files changed:
sys/lib/libkern/arch/amd64/bcmp.S
sys/lib/libkern/arch/amd64/bzero.S
sys/lib/libkern/arch/amd64/ffs.S
sys/lib/libkern/arch/amd64/htonl.S
sys/lib/libkern/arch/amd64/htons.S
sys/lib/libkern/arch/amd64/memchr.S
sys/lib/libkern/arch/amd64/memcmp.S
sys/lib/libkern/arch/amd64/memmove.S
sys/lib/libkern/arch/amd64/memset.S
sys/lib/libkern/arch/amd64/scanc.S
sys/lib/libkern/arch/amd64/skpc.S
sys/lib/libkern/arch/amd64/strchr.S
sys/lib/libkern/arch/amd64/strcmp.S
sys/lib/libkern/arch/amd64/strlen.S
sys/lib/libkern/arch/amd64/strrchr.S