[PATCH v2 4.14 16/17] bpf: Fix mask direction swap upon off reg sign change