Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlib: backport upstream fix on CRC validation #177053

Merged

Conversation

RaitoBezarius
Copy link
Member

Description of changes

Starting zlib 1.2.12, CRC validation has become stricter.
This broke Keycloak ≥ 17 in certain situations, for details, see:

This patch makes the CRC validation comprehensive with respect to older
or already existing checksums out there.

I suggest a backport to 22.05 as it is affected by this issue and we are guaranteed to see bug reports due to this.
I tested this patch on a "server system closure" containing Keycloak and much other stuff, but I do not have the hardware to perform the whole universe rebuild, it seems to be working.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@mweinelt
Copy link
Member

mweinelt commented Jun 9, 2022

This will be a stdenv rebuild and needs to be (quietly) rebased onto the staging/master merge base and retargeted onto staging.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when targeting staging

@mweinelt mweinelt force-pushed the comprehensive-crc-validation-for-zlib branch from 069c275 to a2b5dad Compare June 9, 2022 23:19
@mweinelt mweinelt changed the base branch from master to staging June 9, 2022 23:19
Starting zlib 1.2.12, CRC validation has became stricter.
This broke Keycloak ≥ 17 in certain situations, for details, see:

- keycloak/keycloak#11316 ;
- NixOS#170539

This patch makes the CRC validation comprehensive with respect to older
or already existing checksums out there.
@mweinelt mweinelt force-pushed the comprehensive-crc-validation-for-zlib branch from a2b5dad to 8335c46 Compare June 9, 2022 23:20
@mweinelt
Copy link
Member

mweinelt commented Jun 9, 2022

Builds on x86_64-linux and aarch64-linux.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2022

Successfully created backport PR #177107 for staging-21.11.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2022

Successfully created backport PR #177108 for staging-22.05.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants