[lkml]   [2022]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH v1] seccomp: Fix the comment for seccomp_check_filter().
The comment of the seccomp_check_filter() contains a removed function,
seccomp_bpf_load(). This comment needs to be corrected as it may be
misleading to future readers.

seccomp_bpf_load() was removed in the commit bd4cf0ed331a ("net: filter:
rework/optimize internal BPF interpreter's instruction set"). Previously,
seccomp_bpf_load() was used to create an object of struct seccomp_data.
However, this is done inside populate_seccomp_data() now.

Signed-off-by: Hayato Kiwata <>
kernel/seccomp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index d653d8426de9..3a93595f4989 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -167,7 +167,7 @@ static void populate_seccomp_data(struct seccomp_data *sd)
* Takes a previously checked filter (by bpf_check_classic) and
* redirects all filter code that loads struct sk_buff data
- * and related data through seccomp_bpf_load. It also
+ * and related data through populate_seccomp_data(). It also
* enforces length and alignment checking of those loads.
* Returns 0 if the rule set is legal or -EINVAL if not.
 \ /
  Last update: 2023-03-26 23:20    [W:0.043 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site