mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 21:12:43 +00:00
A malicious user could pass an arbitrarily bad value to memdup_user_nul(), potentially causing kernel crash. This follows the same pattern as commitee76746387("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: [email protected] Signed-off-by: Miaoqian Lin <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>