🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7510

Bug#1156334: liblzma5: hardening-no-fortify-functions

#7510
From: Sebastian Andrzej Siewior
Date: Fri, 04 Dec 2026 23:00
61 lines
4212 bytes
On 2026-12-04 17:25:56 [+0800], Otto Kekäläinen wrote:
> While reviewing the latest xz-utils 5.8.5-1 I noticed that it has now
> started emitting these Lintian nags:
> 
> X: liblzma5: hardening-no-fortify-functions
> [usr/lib/x86_64-linux-gnu/liblzma.so.5.8.5]
> X: liblzma5-udeb udeb: hardening-no-fortify-functions
> [usr/lib/x86_64-linux-gnu/liblzma.so.5.8.5]
> 
> This might be a regression from the previous version (unless the
>…
> Considering the wide use uf liblzma I think it would make sense to
> ensure it is fully hardened. I haven't checked yet the details of what
> happened here or what flags need to be applied.

Yes. And I don't see it in liblzma5_5.8.4-1_amd64.deb. So it looks like
a regression.

| $ hardening-check --verbose liblzma.so.5.8.4
| liblzma.so.5.8.4:
|  Position Independent Executable: no, regular shared library (ignored)
|  Stack protected: yes
|  Fortify Source functions: no, only unprotected functions found!
|         unprotected: memcpy
|         unprotected: memset
|         unprotected: memmove
|  Read-only relocations: yes
|  Immediate binding: yes
|  Stack clash protection: unknown, no -fstack-clash-protection instructions found
|  Control flow integrity: no, not found!
|  Branch Protection: no, not found!
| $ hardening-check --verbose liblzma.so.5.8.5
| liblzma.so.5.8.5:
|  Position Independent Executable: no, regular shared library (ignored)
|  Stack protected: yes
|  Fortify Source functions: yes (some protected functions found)
|         unprotected: read
|         unprotected: memmove
|         unprotected: memcpy
|         unprotected: memset
|         protected: memcpy
|  Read-only relocations: yes
|  Immediate binding: yes
|  Stack clash protection: unknown, no -fstack-clash-protection instructions found
|  Control flow integrity: no, not found!
|  Branch Protection: no, not found!

"Fortify Source" seems to be more happy with 5 than with 4. We got one
read which probably tipped it off.
We do have 
|export DEB_BUILD_MAINT_OPTIONS = hardening=+all
and this is picked up so *either* there is one file which does not pick
it up and blhc does not catch it or the compiler is sure about the
boundaries and skips the fortified version.
-fstack-clash-protection might look interresting if we are at it.

I would suggest to let it migrate and then look into this + autopkgtest.

Sebastian
Technical Details
Message-ID: <O6KpX-g1b0-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O6xM5-fUt6-1@gated-at.bofh.it> <O6xM5-fUt6-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156334: liblzma5: hardening-no-fortify-functions
Date: Sat, 05 Dec 2026 00:00:01 +0100
Message-ID: <O6KpX-g1b0-3@gated-at.bofh.it>
References: <O6xM5-fUt6-1@gated-at.bofh.it> <O6xM5-fUt6-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Dec  4 22:57:06 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>, 1156334@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sebastian@breakpoint.cc
X-Debian-Pr-Message: followup 1156334
X-Debian-Pr-Package: src:xz-utils
X-Debian-Pr-Source: xz-utils
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2007034
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 61
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 4 Dec 2026 23:56:12 +0100
X-Original-Message-ID: <20261204225612.s4j2jq1j@breakpoint.cc>
X-Original-References: <CAOU6tAAhgJKuvc3qX7shn9GJTsmMDTubF=aWsRB4GhwbwUGz4g@mail.gmail.com> <CAOU6tAAhgJKuvc3qX7shn9GJTsmMDTubF=aWsRB4GhwbwUGz4g@mail.gmail.com>