kernel-ark/fs/pstore
Anton Vorontsov 1e6a9e5625 pstore/ram_core: Better ECC size checking
- Instead of exploiting unsigned overflows (which doesn't work for all
  sizes), use straightforward checking for ECC total size not exceeding
  initial buffer size;

- Printing overflowed buffer_size is not informative. Instead, print
  ecc_size and buffer_size;

- No need for buffer_size argument in persistent_ram_init_ecc(),
  we can address prz->buffer_size directly.

Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-20 16:15:22 -07:00
..
inode.c pstore: Add console log messages support 2012-06-13 16:59:27 -07:00
internal.h pstore: defer inserting OOPS entries into pstore 2011-08-16 11:53:01 -07:00
Kconfig pstore: Add console log messages support 2012-06-13 16:59:27 -07:00
Makefile staging: android: persistent_ram: Move to fs/pstore/ram_core.c 2012-05-17 08:50:00 -07:00
platform.c pstore/platform: Disable automatic updates by default 2012-06-13 16:59:37 -07:00
ram_core.c pstore/ram_core: Better ECC size checking 2012-06-20 16:15:22 -07:00
ram.c pstore/ram: Fix error handling during przs allocation 2012-06-20 16:15:22 -07:00