* Re: [PATCH v6 0/2] lib/vsprintf: Fixes size check [not found] <177452711082.197965.4952719534268072174.stgit@devnote2> @ 2026-05-04 15:08 ` Petr Mladek 2026-05-05 8:37 ` Petr Mladek 1 sibling, 0 replies; 3+ messages in thread From: Petr Mladek @ 2026-05-04 15:08 UTC (permalink / raw) To: Masami Hiramatsu (Google) Cc: Steven Rostedt, Andy Shevchenko, Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, David Laight, linux-kernel On Thu 2026-03-26 21:11:50, Masami Hiramatsu (Google) wrote: > Hi, > > Here is the 6th version of patches to fix vsnprintf(). > > - Fix to limit the size of width and precision. > - Warn if the return size is over INT_MAX. > > Previous version is here; > > https://lore.kernel.org/all/177444525139.185641.12184379647176430297.stgit@devnote2/ > > This version just makes function header and WARN_ONCE() to one line[1/2]. > No functional change. > > Thank you, > > --- > > Masami Hiramatsu (Google) (2): > lib/vsprintf: Fix to check field_width and precision > lib/vsprintf: Limit the returning size to INT_MAX I have finally got back to this series. The last version looks good to me. It is very conservative. For both patches: Reviewed-by: Petr Mladek <pmladek@suse.com> I am going to queue it via the printk tree... Best Regards, Petr PS: My understanding is that it should be safe to make the precision handling compatible with glibc/POSIX printf() and treat negative values as no given values. Feel free to send this change as a followup fix. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v6 0/2] lib/vsprintf: Fixes size check [not found] <177452711082.197965.4952719534268072174.stgit@devnote2> 2026-05-04 15:08 ` [PATCH v6 0/2] lib/vsprintf: Fixes size check Petr Mladek @ 2026-05-05 8:37 ` Petr Mladek 2026-05-07 7:37 ` Masami Hiramatsu 1 sibling, 1 reply; 3+ messages in thread From: Petr Mladek @ 2026-05-05 8:37 UTC (permalink / raw) To: Masami Hiramatsu (Google) Cc: Steven Rostedt, Andy Shevchenko, Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, David Laight, linux-kernel On Thu 2026-03-26 21:11:50, Masami Hiramatsu (Google) wrote: > Hi, > > Here is the 6th version of patches to fix vsnprintf(). > > - Fix to limit the size of width and precision. > - Warn if the return size is over INT_MAX. > > Previous version is here; > > https://lore.kernel.org/all/177444525139.185641.12184379647176430297.stgit@devnote2/ > > This version just makes function header and WARN_ONCE() to one line[1/2]. > No functional change. > > Thank you, > > --- > > Masami Hiramatsu (Google) (2): > lib/vsprintf: Fix to check field_width and precision > lib/vsprintf: Limit the returning size to INT_MAX JFYI, the patchset has been commited into printk/linux.git, branch for-7.2-vsprintf-size-checks. Best Regards, Petr ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v6 0/2] lib/vsprintf: Fixes size check 2026-05-05 8:37 ` Petr Mladek @ 2026-05-07 7:37 ` Masami Hiramatsu 0 siblings, 0 replies; 3+ messages in thread From: Masami Hiramatsu @ 2026-05-07 7:37 UTC (permalink / raw) To: Petr Mladek Cc: Steven Rostedt, Andy Shevchenko, Rasmus Villemoes, Sergey Senozhatsky, Andrew Morton, David Laight, linux-kernel On Tue, 5 May 2026 10:37:56 +0200 Petr Mladek <pmladek@suse.com> wrote: > On Thu 2026-03-26 21:11:50, Masami Hiramatsu (Google) wrote: > > Hi, > > > > Here is the 6th version of patches to fix vsnprintf(). > > > > - Fix to limit the size of width and precision. > > - Warn if the return size is over INT_MAX. > > > > Previous version is here; > > > > https://lore.kernel.org/all/177444525139.185641.12184379647176430297.stgit@devnote2/ > > > > This version just makes function header and WARN_ONCE() to one line[1/2]. > > No functional change. > > > > Thank you, > > > > --- > > > > Masami Hiramatsu (Google) (2): > > lib/vsprintf: Fix to check field_width and precision > > lib/vsprintf: Limit the returning size to INT_MAX > > JFYI, the patchset has been commited into printk/linux.git, > branch for-7.2-vsprintf-size-checks. Got it, Thank you! > > Best Regards, > Petr -- Masami Hiramatsu (Google) <mhiramat@kernel.org> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-07 7:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <177452711082.197965.4952719534268072174.stgit@devnote2>
2026-05-04 15:08 ` [PATCH v6 0/2] lib/vsprintf: Fixes size check Petr Mladek
2026-05-05 8:37 ` Petr Mladek
2026-05-07 7:37 ` Masami Hiramatsu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox