Skip to content

eBPF-based security platform

kernel-obs: drop the unused obs_task_exe() and arena free kfunc

Daniel Borkmann7e5c96e97663
diff --git a/upatches/kernel-obs/obs_common.h b/upatches/kernel-obs/obs_common.h
index e6ec73ba..c12026d1 100644
--- a/upatches/kernel-obs/obs_common.h
+++ b/upatches/kernel-obs/obs_common.h
@@ -161,8 +161,6 @@ struct {
void __arena *bpf_arena_alloc_pages(void *map, void __arena *addr,
__u32 page_cnt, int node_id,
__u64 flags) __ksym __weak;
-void bpf_arena_free_pages(void *map, void __arena *ptr,
- __u32 page_cnt) __ksym __weak;
/*
* The verifier binds a program to the arena only through a direct
@@ -278,17 +276,6 @@ obs_task_meta(struct task_struct *task)
return meta;
}
-static __always_inline bool obs_task_exe(struct task_struct *task,
- struct obs_exe *exe)
-{
- struct obs_task_meta *meta = obs_task_meta(task);
-
- if (!meta)
- return false;
- *exe = meta->exe;
- return true;
-}
-
/*
* Word copies and compares keep the table template independent of the
* key layout; every key and value is a multiple of eight bytes. The