This is the fix of CVE-2024-23851 for kernel v6.1.
Upstream commit: https://github.com/torvalds/linux/commit/bd504bcfec41a503b32054da5472904b404...
Changed argument name "blk_mode_t" back to "fmode_t" for the old version. The argument is not affected by the patch.
He Gao (1): dm: limit the number of targets and parameter size area
drivers/md/dm-core.h | 2 ++ drivers/md/dm-ioctl.c | 3 ++- drivers/md/dm-table.c | 9 +++++++-- 3 files changed, 11 insertions(+), 3 deletions(-)