[PATCH 4.14 42/47] bpf: Fix mask direction swap upon off reg sign change