Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
user avatar
Nicolas Schichan authored
commit 19fc99d0 upstream.

In that case, emit_udiv() will be called with rn == ARM_R0 (r_scratch)
and loading rm first into ARM_R0 will result in jit_udiv() function
being called the same dividend and divisor. Fix that by loading rn
first into ARM_R1 and then rm into ARM_R0.

Signed-off-by: default avatarNicolas Schichan <nschichan@freebox.fr>
Fixes: aee636c4 (bpf: do not use reciprocal divide)
Acked-by: default avatarMircea Gherzan <mgherzan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
bded946f
Name Last commit Last update