bpf: Disable exceptions when CONFIG_UNWINDER_FRAME_POINTER=y
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Mon, 18 Sep 2023 15:52:33 +0000 (17:52 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 19 Sep 2023 09:07:36 +0000 (02:07 -0700)
commit5bfdb4fbf348f9e1935a6e9c64e7f60cb913fb21
treeb36a9cb7d3caf599f45a0532d14f15d901720586
parent7d3460632da2c2ad5c5708db82a0b72e2b66396c
bpf: Disable exceptions when CONFIG_UNWINDER_FRAME_POINTER=y

The build with CONFIG_UNWINDER_FRAME_POINTER=y is broken for
current exceptions feature as it assumes ORC unwinder specific fields in
the unwind_state. Disable exceptions when frame_pointer unwinder is
enabled for now.

Fixes: fd5d27b70188 ("arch/x86: Implement arch_bpf_stack_walk")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20230918155233.297024-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/x86/net/bpf_jit_comp.c