Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 21, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Type Update Change
xattr workspace.dependencies minor 1.5.1 -> 1.6.1

Release Notes

Stebalien/xattr (xattr)

v1.6.1

Compare Source

What's Changed

This release fixes a long-standing bug where we didn't correctly handle the return value of the FreeBSD and NetBSD xattr syscalls.

On Linux (and macOS), the xattr API returns ERANGE if the result doesn't fit in the provided buffer. On FreeBSD (and NetBSD), it returns the number of bytes read even if the syscall fails to read the entire value. This library assumed FreeBSD behaved the same as Linux.

In releases prior to 1.6.0, this issue was unlikely to be encountered in practice (except at scale) because we always checked the size before we read the attribute. It was still incorrect (TOCTOU issue), but it would have required a race with someone changing the extended attributes to trigger the bug.

In 1.6.0 this issue started showing up in testing because we try reading once with a 4KiB buffer before checking the size.

Full Changelog: Stebalien/xattr@v1.6.0...v1.6.1

v1.6.0

Compare Source

What's Changed

Xattr can now read extended attribute values, list extended attributes, etc. in a single syscall instead of 2 as long as the total size is at most 4096 bytes. The downside of this change is that, e.g., if a file has more than 4KiB of extended attributes, listing extended attributes on the file will require 3 syscalls (because the first "optimistic" one will fail).

Full Changelog: Stebalien/xattr@v1.5.1...v1.6.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codspeed-hq
Copy link

codspeed-hq bot commented Sep 21, 2025

CodSpeed Performance Report

Merging #8688 will create unknown performance changes

Comparing renovate/xattr-1.x-lockfile (c2b97e0) with main (cb59445)

Summary

⚠️ No benchmarks were detected in both the base of the PR and the PR.\

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre merged commit 5cb3f1a into main Sep 21, 2025
97 checks passed
@sylvestre sylvestre deleted the renovate/xattr-1.x-lockfile branch September 21, 2025 07:53
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