Skip to content

bpf_override_return error from kprobe #666

Answered by cheneytianx
panzhenyu12 asked this question in Q&A
Discussion options

You must be logged in to vote

Two prerequisites to use bpf_override_return:

1.The kernel was compiled with the following two configurations

CONFIG_FUNCTION_ERROR_INJECTION=y
CONFIG_BPF_KPROBE_OVERRIDE=y

2.The hooked function was whitelisted to allow error injections. Please refer to iovisor/bcc#2485 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lmb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #664 on May 09, 2022 08:51.