Skip to content

Facing issue while trying to build ebpf on power Rhel 8  #1391

@ashwinik30

Description

@ashwinik30

Hi ,

Description :
Trying to build ebpf on power Rhel8 machine

Procedure:
git clone --recursive https://github.com/stackrox/falcosecurity-libs
cd falcosecurity-libs/

mkdir build && cd build
cmake -DUSE_BUNDLED_DEPS=true -DCREATE_TEST_TARGETS=OFF ../
make sinsp
clang -v
make driver
cmake -DBUILD_BPF=true ../
make bpf

Linux kernel version :
4.18.0-372.9.1.el8.ppc64le

Error facing :

#define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
        ^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
        ^
1 warning generated.
error: <unknown>:0:0: in function bpf_sys_open_by_handle_at_x i32 (i8*): Looks like the BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.


error: <unknown>:0:0: in function bpf_sys_open_by_handle_at_x i32 (i8*): Looks like the BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.


error: <unknown>:0:0: in function bpf_sys_open_by_handle_at_x i32 (i8*): Looks like the BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.


error: <unknown>:0:0: in function bpf_sys_open_by_handle_at_x i32 (i8*): Looks like the BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.


error: <unknown>:0:0: in function bpf_sys_open_by_handle_at_x i32 (i8*): Looks like the BPF stack limit of 512 bytes is exceeded. Please move large on stack variables into BPF per-cpu array map.

But if I try the same on Rhel9.2 It works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions