Skip to content

[Patch Tracking] Hardening fixes for decompression and xattr parsing #47

@Utkal059

Description

@Utkal059

Hi Gao Xiang,

As requested, here is a consolidated list of my pending patches with lore links.

Patch series 1: ZSTD decompression safety (v2, 2 patches)

https://lore.kernel.org/linux-erofs/20260317045537.9591-1-singhutkal015@gmail.com/

  • [PATCH v2 1/2] erofs-utils: lib: validate ZSTD frame content size in decompression
  • [PATCH v2 2/2] erofs-utils: lib: return error on ZSTD decompression length mismatch

Status: v2 sent with reproducer per maintainer request.

Patch: xattr shared count validation

https://lore.kernel.org/linux-erofs/20260316201919.41839-1-singhutkal015@gmail.com/

  • [PATCH] erofs-utils: lib: validate h_shared_count in erofs_init_inode_xattrs()

Status: Review feedback received. Will resend as v2 with:

  • Multiplication-based bounds check (avoid division)
  • Refined commit message (clarify as hardening, no stability impact)
  • Reproducer

Best regards,
Utkal Singh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions