s390/bpf: encode register within extable entry
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 27 Feb 2022 20:32:54 +0000 (21:32 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Mar 2022 23:33:00 +0000 (00:33 +0100)
commit7fc8c362e782042bf36ceeb9343f8217d3d7dbb9
tree02b644077481adefa73e39cf622defb460884706
parent484a8ed8b7d145ff38889e4598a4804e9d7e8ca6
s390/bpf: encode register within extable entry

Instead of decoding the instruction that faulted to get the register
which needs to be zeroed, simply encode its number into the extable
entries during code generation. This allows to get rid of a bit of
code, and is also what other architectures are doing.

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/net/bpf_jit_comp.c