Skip to content

mtdchar_write_ioctl(): prevent integer overflow, use kvmalloc()

Michał Kępień linux-mtd lkml 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2mtdchar: prevent integer overflow in a safety checkdrivers/mtd/mtdchar.c include/uapi/mtd/mtd-abi.h+5 -22 replies
2/2mtdchar: use kvmalloc() for potentially large allocationsdrivers/mtd/mtdchar.c+5 -52 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRichard Weinberger
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] mtdchar_write_ioctl(): prevent integer overflow, use kvmalloc()

This patch series addresses two flaws in mtdchar_write_ioctl() found by Richard Weinberger while he was reviewing v3 of the patch series proposing a new MEMREAD ioctl [1].

Richard, I included a Suggested-by tag crediting you in both of the patches in this series. I hope that is okay with you, but please let me know if it isn't.

Once this patch series is reviewed and accepted, I will apply similar fixes in v4 of the MEMREAD ioctl patch series.

[1] https://lists.infradead.org/pipermail/linux-mtd/2022-February/091276.html

Michał Kępień (2):
mtdchar: prevent integer overflow in a safety check
mtdchar: use kvmalloc() for potentially large allocations

 drivers/mtd/mtdchar.c      | 13 ++++++++-----
 include/uapi/mtd/mtd-abi.h |  4 ++--
 2 files changed, 10 insertions(+), 7 deletions(-)
Signature · 7 lines
2.36.1



______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/