All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 0/8] rslib: Cleanup and VLA removal
@ 2018-03-28 20:51 Thomas Gleixner
  2018-03-28 20:51 ` [patch 1/8] rslib: Cleanup whitespace damage Thomas Gleixner
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Thomas Gleixner @ 2018-03-28 20:51 UTC (permalink / raw)
  To: LKML
  Cc: Kees Cook, Segher Boessenkool, Kernel Hardening, Andrew Morton,
	Boris Brezillon, Richard Weinberger, David Woodhouse,
	Alasdair Kergon, Mike Snitzer, Anton Vorontsov, Colin Cross,
	Tony Luck

Kees tried to get rid of the Variable Length Arrays in the Reed-Solomon
library by replacing them with fixed length arrays on stack. Though they
are rather large and Andrew did not fall in love with that solution.

This series addresses that in a different way by splitting the rs control
structure up, so that each invocation of rs_init() returns a new instance
in which the decoder buffers are allocated. The polynom tables which build
the base for the RS codecs are still shareable between the instances to
avoid large allocations and initializations of the same data over and over.

The usage sites have been audited and fixed up where necessary to
accomodate the decoder change which forbids parallel decoder invocation for
a particular rs control instance to prevent buffer corruption.

While at it the patch set tidies up the code and converts the related files
over to use SPDX license identifiers.

Thanks,

	tglx

8<---------------
 drivers/md/dm-verity-fec.c      |    7 +
 drivers/mtd/nand/cafe_nand.c    |    7 -
 drivers/mtd/nand/diskonchip.c   |   72 ++++++--------
 include/linux/rslib.h           |   46 ++++-----
 lib/reed_solomon/decode_rs.c    |   34 +++---
 lib/reed_solomon/encode_rs.c    |   15 --
 lib/reed_solomon/reed_solomon.c |  203 +++++++++++++++++++++++-----------------
 7 files changed, 209 insertions(+), 175 deletions(-)

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

end of thread, other threads:[~2018-04-19  8:16 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 20:51 [patch 0/8] rslib: Cleanup and VLA removal Thomas Gleixner
2018-03-28 20:51 ` [patch 1/8] rslib: Cleanup whitespace damage Thomas Gleixner
2018-03-28 20:51 ` [patch 2/8] rslib: Cleanup top level comments Thomas Gleixner
2018-03-28 20:51 ` [patch 3/8] rslib: Add SPDX identifiers Thomas Gleixner
2018-03-28 21:59   ` Segher Boessenkool
2018-03-28 20:51 ` [patch 4/8] rslib: Remove GPL boilerplate Thomas Gleixner
2018-03-28 20:51 ` [patch 5/8] rslib: Split rs control struct Thomas Gleixner
2018-04-04 19:40   ` Boris Brezillon
2018-04-18 17:03     ` Kees Cook
2018-04-19  8:16       ` Thomas Gleixner
2018-03-28 20:51 ` [patch 6/8] mtd: diskonchip: Allocate rs control per instance Thomas Gleixner
2018-04-04 19:52   ` Boris Brezillon
2018-03-28 20:51 ` [patch 7/8] dm verity fec: Check result of init_rs() Thomas Gleixner
2018-03-28 20:51 ` [patch 8/8] rslib: Allocate decoder buffers to avoid VLAs Thomas Gleixner
2018-03-28 21:14   ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.