A backdoor in xz
A backdoor in xz
Posted Mar 31, 2024 6:32 UTC (Sun) by chris_se (subscriber, #99706)In reply to: A backdoor in xz by MarcB
Parent article: A backdoor in xz
Did you use the "ultra" settings for zstd or any of the advanced options?
I don't remember. I just redid the same checks again for a single file I had laying around (I did the previous checks against multiple variants), and I got this:
| Method | Time (m:s) | RAM during compress | Size | |------------------|------------|---------------------|-----------| | xz | 2:12 | 95 MiB | 135 MiB | | xz -7 | 2:22 | 187 MiB | 134 MiB | | xz -9 | 2:34 | 675 MiB | 115 MiB | | zstd | 0:02 | 52 MiB | 182 MiB | | zstd -19 | 2:49 | 250 MiB | 147 MiB | | zstd --ultra -22 | 4:22 | 1328 MiB | 121 MiB |
(All done one a single CPU core, Intel Core i7-8700K. Debian 12 stable.)
My payload is basically a tar file of a minimized Debian 12 rootfs, plus some additional internal software -- nothing special. (Orig size: 554 MiB)
To summarize my test: even at --ultra -22 zstd is worse in all aspects compared to xz -9.
