This commit is contained in:
2026-08-18 09:20:44 +02:00
commit b826cd721a
522 changed files with 93730 additions and 0 deletions
@@ -0,0 +1,26 @@
# Test Case: Truncated metabox super extension
**Test ID**: TC136-metabox-truncated-super-extension
**Fixtures**: `bad-metabox-truncated-extension.erofs`, `bad-ishare-prefix-id.erofs`
## Objective
Reject `METABOX` when `sb_extslots=0` leaves `metabox_nid` undeclared, and
reject `ISHARE_XATTRS` when its prefix ID equals `xattr_prefix_count`.
## Manual steps
For each image, attach it and trace the read-only mount:
```sh
truss -f -o /tmp/tc136.truss mount -t erofs -o ro \
/dev/${unit} /mnt/repo22-g4
grep nmount /tmp/tc136.truss
mount | grep repo22-g4 || true
mdconfig -d -u "${unit#md}"
```
## Expected results
Both `nmount` calls return `EINTEGRITY` (97). The extension bytes are not
consumed, no mount appears, and detach succeeds without a vnode/md leak.