]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, x32: Fix regression caused by commit 369025de09d7
authorWang YanQing <udknight@gmail.com>
Wed, 25 Jul 2018 16:46:11 +0000 (00:46 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 26 Jul 2018 00:51:12 +0000 (02:51 +0200)
commit9b3d240322e2fa1862092a53a4fc17ccacbd60df
treeb34dac046b158573a00eda8d38f440c456d25e6b
parentf44cb1ff9c62598988bbc253705f98d8fdada6d1
bpf, x32: Fix regression caused by commit 369025de09d7

Commit 369025de09d7 ("bpf, x32: remove ld_abs/ld_ind")
removed the 4 /* Extra space for skb_copy_bits buffer */
from _STACK_SIZE, but it didn't fix the concerned code
in emit_prologue and emit_epilogue, and this error will
bring very strange kernel runtime errors. This patch
fixes it.

Fixes: 369025de09d7 ("bpf, x32: remove ld_abs/ld_ind")
Reported-by: Meelis Roos <mroos@linux.ee>
Bisected-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
arch/x86/net/bpf_jit_comp32.c