lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20250320180926.4002817-1-andriy.shevchenko@linux.intel.com> Date: Thu, 20 Mar 2025 20:04:21 +0200 From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com> To: Petr Mladek <pmladek@...e.com>, Andy Shevchenko <andriy.shevchenko@...ux.intel.com>, Christophe JAILLET <christophe.jaillet@...adoo.fr>, Kees Cook <kees@...nel.org>, Steven Rostedt <rostedt@...dmis.org>, "Masami Hiramatsu (Google)" <mhiramat@...nel.org>, linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org, linux-trace-kernel@...r.kernel.org Cc: John Ogness <john.ogness@...utronix.de>, Sergey Senozhatsky <senozhatsky@...omium.org>, Andy Shevchenko <andy@...nel.org>, Mathieu Desnoyers <mathieu.desnoyers@...icios.com>, Andrew Morton <akpm@...ux-foundation.org>, Rasmus Villemoes <linux@...musvillemoes.dk> Subject: [PATCH v1 0/6] vsprintf: Add __printf attribute to where it's required This whole series started from a simple fix (see the last patch) to make GCC (Debian 14.2.0-17) happy when compiling with `make W=1` (note, that CONFIG_WERROR=y and all warnings break the build!) down to a rabbit hole. The series is organised in a strict order and can't be split or reshuffled, otherwise see above. Also note the last patch has a bit of a hackish approach and I have no idea how to fix it differently, I tried a few different, all failed. So, if you think there is a better one, please advise! I believe the best route for the series is printk tree with immutable tag or branch for the others. Andy Shevchenko (6): seq_buf: Mark binary printing functions with __printf() attribute seq_file: Mark binary printing functions with __printf() attribute tracing: Mark binary printing functions with __printf() attribute vsnprintf: Mark binary printing functions with __printf() attribute vsnprintf: Mark pointer() with __printf() attribute vsnprintf: Mark va_format() with __printf() attribute include/linux/printk.h | 5 ++++- include/linux/seq_buf.h | 4 ++-- include/linux/seq_file.h | 1 + include/linux/string.h | 4 ++-- include/linux/trace_seq.h | 7 ++++--- kernel/trace/trace.c | 3 --- kernel/trace/trace.h | 16 +++++++++------- lib/vsprintf.c | 9 +++++---- 8 files changed, 27 insertions(+), 22 deletions(-) -- 2.47.2
Powered by blists - more mailing lists