Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link/uprobe: handle ENOTSUPP from the kernel's prepare_uprobe()
When running the uprobe tests, I noticed this was failing with my copy of Bash. Offset 0x12345 seems to contain a trap instruction and is rejected by prepare_uprobe(): https://elixir.bootlin.com/linux/v5.13.3/source/kernel/events/uprobes.c#L854 This patch changes the dummy offset to 0x1 and adds some error context to the slightly esoteric ENOTSUPP. Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information