Re: [PATCH] [v2] landlock: work around gcc-16 -Wuninitialized warning

From: Sebastian Andrzej Siewior

Date: Thu Sep 17 2026 - 06:47:19 EST


On 2026-09-17 12:26:17 [+0200], Arnd Bergmann wrote:
> I checked again and found that this is a config that did produce
> the issue a few weeks ago, but doesn't today for me.
> I found a different config from this week and managed to reproduce
> the problem on today's linux-next using both gcc-16.2 and gcc-17.0
> from yesterday, so there is still a related issue that is not
> fixed in gcc, even though one at least one of them was fixed.

Confirmed. I see the warning on arm64 while x86-64 is quiet. The patch
fixes the issue.

You might need to update gcc bug tracker.

> Arnd

Sebastian