Skip to content

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Jul 7, 2025

No description provided.

kkourt added 2 commits July 7, 2025 11:38
Signed-off-by: Kornilios Kourtis <[email protected]>
In certain situations, we want to copy data under void * pointers.
Update BTF validation code so that no warnings are issued when we do so.

Example:

- call: "security_inode_post_setxattr"
  syscall: false
  args:
  - index: 0
    type: "dentry"
  - index: 1
    type: "string"
  - index: 2
    type: "char_buf"
    sizeArgIndex: 4
  - index: 3
    type: "size_t"
  - index: 4
    type: "int"

Where:

void security_inode_post_setxattr(
	struct dentry *dentry,
	const char *name,
	const void *value,
	size_t size, int flags)

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt requested a review from a team as a code owner July 7, 2025 09:50
@kkourt kkourt added the release-note/misc This PR makes changes that have no direct user impact. label Jul 7, 2025
@kkourt kkourt requested a review from ExceptionalHandler July 7, 2025 09:50
There does not seem to be a "struct kernel_cap_t *" type. Change it to
"kernel_cap_t *".

Fixes: d7a4f4f ("bpf: support kernel_cap_t uint64")

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt merged commit dd8ad64 into main Jul 7, 2025
46 checks passed
@kkourt kkourt deleted the pr/kkourt/btf-validation-updates branch July 7, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants