linux-yocto/arch/xtensa
Miaoqian Lin a0c2c36d86 xtensa: simdisk: add input size check in proc_write_simdisk
commit 5d5f08fd0c upstream.

A malicious user could pass an arbitrarily bad value
to memdup_user_nul(), potentially causing kernel crash.

This follows the same pattern as commit ee76746387
("netdevsim: prevent bad user input in nsim_dev_health_break_write()")

Fixes: b6c7e873da ("xtensa: ISS: add host file-based simulated disk")
Fixes: 16e5c1fc36 ("convert a bunch of open-coded instances of memdup_user_nul()")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Message-Id: <20250829083015.1992751-1-linmq006@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-19 16:37:31 +02:00
..
boot xtensa: migrate to the generic rule for built-in DTB 2025-03-17 06:48:32 +03:00
configs Xtensa updates for v6.16 2025-06-03 09:05:01 -07:00
include Xtensa updates for v6.17 2025-08-09 07:35:03 +03:00
kernel arch: copy_thread: pass clone_flags as u64 2025-10-15 12:03:13 +02:00
lib xtensa: Use PCI_HEADER_TYPE_MFD instead of literal 2023-11-29 02:07:52 -08:00
mm arch, mm: make releasing of memory to page allocator more explicit 2025-03-17 22:06:53 -07:00
platforms xtensa: simdisk: add input size check in proc_write_simdisk 2025-10-19 16:37:31 +02:00
variants
Kbuild xtensa: migrate to the generic rule for built-in DTB 2025-03-17 06:48:32 +03:00
Kconfig xtensa: migrate to the generic rule for built-in DTB 2025-03-17 06:48:32 +03:00
Kconfig.debug xtensa: dump userspace code around the exception PC 2023-06-24 06:34:27 -07:00
Makefile xtensa: don't produce FDPIC output with fdpic toolchain 2024-01-11 18:58:47 -08:00