File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5150,8 +5150,6 @@ static int check_map_func_compatibility(struct bpf_verifier_env *env,
5150
5150
case BPF_MAP_TYPE_RINGBUF :
5151
5151
if (func_id != BPF_FUNC_ringbuf_output &&
5152
5152
func_id != BPF_FUNC_ringbuf_reserve &&
5153
- func_id != BPF_FUNC_ringbuf_submit &&
5154
- func_id != BPF_FUNC_ringbuf_discard &&
5155
5153
func_id != BPF_FUNC_ringbuf_query )
5156
5154
goto error ;
5157
5155
break ;
@@ -5260,6 +5258,12 @@ static int check_map_func_compatibility(struct bpf_verifier_env *env,
5260
5258
if (map -> map_type != BPF_MAP_TYPE_PERF_EVENT_ARRAY )
5261
5259
goto error ;
5262
5260
break ;
5261
+ case BPF_FUNC_ringbuf_output :
5262
+ case BPF_FUNC_ringbuf_reserve :
5263
+ case BPF_FUNC_ringbuf_query :
5264
+ if (map -> map_type != BPF_MAP_TYPE_RINGBUF )
5265
+ goto error ;
5266
+ break ;
5263
5267
case BPF_FUNC_get_stackid :
5264
5268
if (map -> map_type != BPF_MAP_TYPE_STACK_TRACE )
5265
5269
goto error ;
You can’t perform that action at this time.
0 commit comments