linux-hardening.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2][next] vfio/ccw: Replace one-element array with flexible-array member
@ 2023-05-23  1:34 Gustavo A. R. Silva
  2023-05-23  1:35 ` [PATCH 1/2][next] " Gustavo A. R. Silva
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Gustavo A. R. Silva @ 2023-05-23  1:34 UTC (permalink / raw)
  To: Eric Farman, Matthew Rosato, Halil Pasic, Vineeth Vijayan,
	Peter Oberparleiter, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev, Christian Borntraeger, Sven Schnelle
  Cc: linux-s390, kvm, linux-kernel, Gustavo A. R. Silva, linux-hardening

Hi!

This small series aims to replace a one-element array with a
flexible-array member in struct vfio_ccw_parent.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE
routines on memcpy() and help us make progress towards globally
enabling -fstrict-flex-arrays=3 [1].

Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/160
Link: https://github.com/KSPP/linux/issues/297
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]

Gustavo A. R. Silva (2):
  vfio/ccw: Replace one-element array with flexible-array member
  vfio/ccw: Use struct_size() helper

 drivers/s390/cio/vfio_ccw_drv.c     | 2 +-
 drivers/s390/cio/vfio_ccw_private.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-05-23 18:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23  1:34 [PATCH 0/2][next] vfio/ccw: Replace one-element array with flexible-array member Gustavo A. R. Silva
2023-05-23  1:35 ` [PATCH 1/2][next] " Gustavo A. R. Silva
2023-05-23 16:33   ` Eric Farman
2023-05-23 17:29   ` Kees Cook
2023-05-23 17:45   ` Christophe JAILLET
2023-05-23 17:47     ` Marion & Christophe JAILLET
2023-05-23  1:35 ` [PATCH 2/2][next] vfio/ccw: Use struct_size() helper Gustavo A. R. Silva
2023-05-23 16:33   ` Eric Farman
2023-05-23 17:30   ` Kees Cook
2023-05-23 16:36 ` [PATCH 0/2][next] vfio/ccw: Replace one-element array with flexible-array member Matthew Rosato
2023-05-23 18:58 ` Alexander Gordeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).