-
The RTNET sendmsg/recvmsg protocol handlers used to call copy_to/from_user on the struct user_msghdr argument. The syscall entry code already does this copy, so calling again the copy_to/from_user in handlers triggers SPECTRE mitigation protection on ARM. This patch removes the calls in the handlers. This patch has been tested with 4.4.x kernel Signed-off-by: François LEGAL <devel@thom.fr.eu.org> [Jan: massage commit log] Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
ca740aa7