On Sun, 6 Sept 2026 at 23:25, Brian Cain <[email protected]> wrote: > > HEX_SYS_STAT could pass an unterminated local filename buffer to stat() when > the guest string filled it. Use lock_user_string() to safely map the guest > string instead. > > Fixes: 7711fdba88b ("target/hexagon: add main arch-specific semihosting > operations") > Link: > https://lore.kernel.org/all/cafeaca9mos6vfhf2uhz8z4cdvab+7dy6hjb2emyz2alse-t...@mail.gmail.com/ > Suggested-by: Peter Maydell <[email protected]> > Signed-off-by: Brian Cain <[email protected]> > --- > target/hexagon/hexswi.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) >
Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
