Skip to content

Fix bugs identified by the secilc-fuzzer

James Carter selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libsepol/cil: Fix instances where an error returns SEPOL_OKlibsepol/cil/src/cil_build_ast.c libsepol/cil/src/cil_resolve_ast.c+6 -00 replies
2/5libsepol/cil: Detect degenerate inheritance and exit with an errorlibsepol/cil/src/cil_internal.h libsepol/cil/src/cil_resolve_ast.c+56 -00 replies
3/5libsepol/cil: Check datum in ordered list for expected flavorlibsepol/cil/src/cil_resolve_ast.c+16 -00 replies
4/5libsepol/cil: Check for self-referential loops in setslibsepol/cil/src/cil_resolve_ast.c libsepol/cil/src/cil_verify.c libsepol/cil/src/cil_verify.h+71 -582 replies
5/5libsepol/cil: Return an error if a call argument fails to resolvelibsepol/cil/src/cil_resolve_ast.c+2 -10 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchNicolas Iooss
1/5
2/5
3/5
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Fix bugs identified by the secilc-fuzzer

These patches are all related by the fact that the secilc-fuzzer identified the bugs that led to them. Wherever possible I have tried to fix all of the issues related to the specific one found.

James Carter (5):
libsepol/cil: Fix instances where an error returns SEPOL_OK libsepol/cil: Detect degenerate inheritance and exit with an error libsepol/cil: Check datum in ordered list for expected flavor libsepol/cil: Check for self-referential loops in sets libsepol/cil: Return an error if a call argument fails to resolve

 libsepol/cil/src/cil_build_ast.c   |   3 +
 libsepol/cil/src/cil_internal.h    |   2 +
 libsepol/cil/src/cil_resolve_ast.c | 107 ++++++++++++++++++++---------
 libsepol/cil/src/cil_verify.c      |  97 ++++++++++++++++++--------
 libsepol/cil/src/cil_verify.h      |   1 -
 5 files changed, 151 insertions(+), 59 deletions(-)
Signature · 1 line
2.26.3