Skip to content

Commit

Permalink
Merge pull request torvalds#46 from sched-ext/scx-fix-write-all
Browse files Browse the repository at this point in the history
scx: bpf_scx_btf_struct_access() should return -EACCES for unknown accesses
  • Loading branch information
Byte-Lab authored Aug 30, 2023
2 parents 8ade500 + cb04f56 commit 2c5e6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -3485,7 +3485,7 @@ static int bpf_scx_btf_struct_access(struct bpf_verifier_log *log,
return SCALAR_VALUE;
}

return 0;
return -EACCES;
}

static const struct bpf_func_proto *
Expand Down

0 comments on commit 2c5e6d3

Please sign in to comment.