[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171897701322.292511.3640595078155351181.b4-ty@linaro.org>
Date: Fri, 21 Jun 2024 16:47:50 +0100
From: Daniel Thompson <daniel.thompson@...aro.org>
To: Jason Wessel <jason.wessel@...driver.com>,
Arnd Bergmann <arnd@...nel.org>
Cc: Daniel Thompson <daniel.thompson@...aro.org>,
Arnd Bergmann <arnd@...db.de>,
Douglas Anderson <dianders@...omium.org>,
Petr Mladek <pmladek@...e.com>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Justin Stitt <justinstitt@...gle.com>,
John Ogness <john.ogness@...utronix.de>,
kgdb-bugreport@...ts.sourceforge.net,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kdb: address -Wformat-security warnings
On Tue, 28 May 2024 14:11:48 +0200, Arnd Bergmann wrote:
> When -Wformat-security is not disabled, using a string pointer
> as a format causes a warning:
>
> kernel/debug/kdb/kdb_io.c: In function 'kdb_read':
> kernel/debug/kdb/kdb_io.c:365:36: error: format not a string literal and no format arguments [-Werror=format-security]
> 365 | kdb_printf(kdb_prompt_str);
> | ^~~~~~~~~~~~~~
> kernel/debug/kdb/kdb_io.c: In function 'kdb_getstr':
> kernel/debug/kdb/kdb_io.c:456:20: error: format not a string literal and no format arguments [-Werror=format-security]
> 456 | kdb_printf(kdb_prompt_str);
> | ^~~~~~~~~~~~~~
>
> [...]
Applied, thanks!
[1/1] kdb: address -Wformat-security warnings
commit: 70867efacf4370b6c7cdfc7a5b11300e9ef7de64
Best regards,
--
Daniel Thompson <daniel.thompson@...aro.org>
Powered by blists - more mailing lists