Skip to content

lib: Bail on xattr names > XATTR_NAME_MAX#314

Merged
alexlarsson merged 2 commits intocomposefs:mainfrom
cgwalters:more-limits
Aug 19, 2024
Merged

lib: Bail on xattr names > XATTR_NAME_MAX#314
alexlarsson merged 2 commits intocomposefs:mainfrom
cgwalters:more-limits

Conversation

@cgwalters
Copy link
Copy Markdown
Contributor

Just more of me poking randomly at mkcomposefs. Yes, we clearly
need to wire up a fuzzer.

In this case, we have a check for xattr value length but would
happily accept a key of any arbitrary length, generating
a corrupted EROFS blob. fsck.erofs detects this.

Signed-off-by: Colin Walters walters@verbum.org

- We were missing a meson invocation; add it
- Pass the locally built binary path
- Add an output file (oops)
- Don't `cd` to the test dir since that breaks the relative
  path to the input file

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters marked this pull request as ready for review August 17, 2024 20:08
Just more of me poking randomly at mkcomposefs. Yes, we clearly
need to wire up a fuzzer.

In this case, we have a check for xattr value length but would
happily accept a key of any arbitrary length, generating
a corrupted EROFS blob. `fsck.erofs` detects this.

Signed-off-by: Colin Walters <walters@verbum.org>
@alexlarsson alexlarsson merged commit 7fe6d9d into composefs:main Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants