public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Make sscanf() stricter
@ 2023-06-10 17:07 Demi Marie Obenour
  2023-06-10 17:07 ` [PATCH v2 1/3] vsscanf(): Integer overflow is a conversion failure Demi Marie Obenour
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Demi Marie Obenour @ 2023-06-10 17:07 UTC (permalink / raw)
  To: Hans de Goede, Mauro Carvalho Chehab, Sakari Ailus,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, Lee Jones, Andy Lutomirski, Thomas Gleixner,
	Vincenzo Frascino, Petr Mladek, Steven Rostedt,
	Sergey Senozhatsky, Andy Shevchenko, Rasmus Villemoes
  Cc: Demi Marie Obenour, linux-media, linux-staging, linux-kernel,
	xen-devel

Roger Pau Monné suggested making xenbus_scanf() stricter instead of
using a custom parser.  Christoph Hellwig asked why the normal vsscanf()
cannot be made stricter.  Richard Weinberger mentioned Linus Torvalds’s
suggestion of using ! to allow overflow.

Changes since v1:

- Better commit messages.
- Use ! to explicitly opt-in to allowing overflow.
- Treat overflow as a conversion failure instead of returning ERANGE.
- Drop the first patch (removal of simple_strtoll()) as it breaks
  bcache.
- Stop skipping spaces in vsscanf() instead of adding a separate
  vsscanf_strict() function.

Demi Marie Obenour (3):
  vsscanf(): Integer overflow is a conversion failure
  vsscanf(): do not skip spaces
  Strict XenStore entry parsing

 .../hive_isp_css_include/platform_support.h   |  1 -
 drivers/xen/xenbus/xenbus_xs.c                | 17 ++--
 include/linux/limits.h                        |  1 +
 include/linux/mfd/wl1273-core.h               |  3 -
 include/vdso/limits.h                         |  3 +
 lib/vsprintf.c                                | 90 +++++++++++++------
 6 files changed, 80 insertions(+), 35 deletions(-)

-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-10 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-10 17:07 [PATCH v2 0/3] Make sscanf() stricter Demi Marie Obenour
2023-06-10 17:07 ` [PATCH v2 1/3] vsscanf(): Integer overflow is a conversion failure Demi Marie Obenour
2023-06-10 19:38   ` kernel test robot
2023-06-10 19:59   ` Dan Carpenter
2023-06-10 17:07 ` [PATCH v2 2/3] vsscanf(): do not skip spaces Demi Marie Obenour
2023-06-10 17:07 ` [PATCH v2 3/3] Strict XenStore entry parsing Demi Marie Obenour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox