Skip to content

Comments

map, program: allow creation from raw FD#15

Merged
lmb merged 1 commit intomasterfrom
raw-fd
Oct 14, 2019
Merged

map, program: allow creation from raw FD#15
lmb merged 1 commit intomasterfrom
raw-fd

Conversation

@lmb
Copy link
Contributor

@lmb lmb commented Oct 11, 2019

BPF maps and programs can be sent around via SCM_RIGHTS, so users should
be able to interact with them.

BPF maps and programs can be sent around via SCM_RIGHTS, so users should
be able to interact with them.
@lmb
Copy link
Contributor Author

lmb commented Oct 14, 2019

I removed the "name" argument, since we should be able to infer it from the fd itself.

@lmb lmb merged commit 60d3452 into master Oct 14, 2019
@lmb lmb deleted the raw-fd branch October 14, 2019 09:59
lmb added a commit to lmb/ebpf that referenced this pull request Jul 18, 2025
The ubuntu 24.04 kernel used by CI seems to have a bug which causes it to
crash when executing TestKfunc in our testsuite.

    === RUN   TestKfunc
    [   15.728492] BUG: unable to handle page fault for address: ffffffffea91fa00
    [   15.728724] #PF: supervisor read access in kernel mode
    [   15.728940] #PF: error_code(0x0000) - not-present page
    [   15.729302] PGD 18e3f067 P4D 18e3f067 PUD 18e41067 PMD 0
    [   15.729693] Oops: Oops: 0000 [cilium#1] SMP NOPTI
    [   15.729973] CPU: 1 UID: 0 PID: 1947 Comm: ebpf.test Not tainted 6.11.0-1015-azure cilium#15~24.04.1-Ubuntu
    [   15.730377] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
    [   15.730620] RIP: 0010:bpf_test_run+0x183/0x3d0

This requires the nf_conntrack module to be loaded since we invoke
bpf_skb_ct_lookup in the test.

Signed-off-by: Lorenz Bauer <[email protected]>
lmb added a commit that referenced this pull request Jul 19, 2025
The ubuntu 24.04 kernel used by CI seems to have a bug which causes it to
crash when executing TestKfunc in our testsuite.

    === RUN   TestKfunc
    [   15.728492] BUG: unable to handle page fault for address: ffffffffea91fa00
    [   15.728724] #PF: supervisor read access in kernel mode
    [   15.728940] #PF: error_code(0x0000) - not-present page
    [   15.729302] PGD 18e3f067 P4D 18e3f067 PUD 18e41067 PMD 0
    [   15.729693] Oops: Oops: 0000 [#1] SMP NOPTI
    [   15.729973] CPU: 1 UID: 0 PID: 1947 Comm: ebpf.test Not tainted 6.11.0-1015-azure #15~24.04.1-Ubuntu
    [   15.730377] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
    [   15.730620] RIP: 0010:bpf_test_run+0x183/0x3d0

This requires the nf_conntrack module to be loaded since we invoke
bpf_skb_ct_lookup in the test.

Signed-off-by: Lorenz Bauer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants