[UBUNTU 20.04] Crash in zlib deflateBound() function on s390x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
In Progress
|
Medium
|
Skipper Bug Screeners | ||
zlib (Ubuntu) |
Fix Released
|
Medium
|
Frank Heimes | ||
Focal |
New
|
Undecided
|
Unassigned | ||
Jammy |
New
|
Undecided
|
Unassigned | ||
Lunar |
Won't Fix
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Medium
|
Frank Heimes |
Bug Description
SRU Justification:
==================
[ Impact ]
* The zlib deflateBound() function can crash on s390x,
if called before deflateInit().
* The solution is that zlib on s390x needs to support
calling deflateBound() always before deflateInit().
[ Test Plan ]
* It's suggested to do a more overall or e2e test
and run the zlib-ng test suite against the system zlib
as follows:
$ git clone https:/
$ cd zlib-ng
$ cmake -DZLIB_COMPAT=ON -DZLIBNG_
$ make gtest_zlib
$ ldd gtest_zlib
libz.so.1 => /lib/s390x-
$ ./gtest_zlib
[ Where problems could occur ]
* The only (single line) modification is in the if condition
of the define DEFLATE_
deflate.c.
* Things can go wrong if the condition (or logic) is wrong,
* or if other parts of the code are coded against the old behavior
and are still expecting it.
* The likely outcome would be still a crash
or an unexpected behavior.
[ Other Info ]
* Getting this into mantic first,
before the SRU down to focal is done.
__________
Problem Description:
zlib deflateBound() function can crash on s390x when called before deflateInit().
Solution:
zlib on s390x needs to support calling deflateBound() before deflateInit().
The fix is squashed into the latest DFLTCC PR: https:/
tags: | added: architecture-s3903164 bugnameltc-202410 severity-medium targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
affects: | linux (Ubuntu) → zlib (Ubuntu) |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
Changed in zlib (Ubuntu): | |
importance: | Undecided → Medium |
Changed in ubuntu-z-systems: | |
importance: | Undecided → Medium |
Changed in zlib (Ubuntu): | |
assignee: | Skipper Bug Screeners (skipper-screen-team) → nobody |
Changed in zlib (Ubuntu): | |
status: | New → Triaged |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
tags: | added: patch |
Changed in ubuntu-z-systems: | |
status: | Triaged → In Progress |
Changed in zlib (Ubuntu Mantic): | |
status: | Fix Committed → Fix Released |
------- Comment From <email address hidden> 2023-08-02 05:26 EDT-------
According to iii, the crash also happens on 22.04. He did not check the other versions, but I think the fix needs to be applied to all Ubuntu releases that have the hardware compression acceleration patch ("410.patch").