Skip to content

semihosting: Fix a few semihosting bugs

Sean Anderson qemu-devel 1 version Applied

Status from this message: Queued 1-2 to maintainer/8.2-softfreeze, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3gdbstub: Fix %s formattinggdbstub/syscalls.c+1 -12 replies
2/3semihosting: Fix GDB File-I/O FLENsemihosting/arm-compat-semi.c+1 -41 reply
3/3semihosting: Check for overflow in FLEN on 32-bit systemssemihosting/arm-compat-semi.c+14 -36 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonAlex Bennée
1/3R-b R-b
2/3R-b
3/3

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/3] semihosting: Fix a few semihosting bugs

While discussing [1], it came to my attention that QEMU does not properly truncate/error SYS_FLEN on 32-bit systems. Fix this, and some other bugs with GDB File I/O that I found while working on this series. That said, GDB File I/O has been substantially broken for two years now, so it makes me wonder if anyone actually uses it! It would certainly simplify the implementation if we didn't have to support it.

[1] https://lore.kernel.org/u-boot/20251017195322.GF6688@bill-the-cat/T/#m493c42570d3103b8c606c5f50faeb78d27719de6

Sean Anderson (3):
gdbstub: Fix %s formatting
semihosting: Fix GDB File-I/O FLEN
semihosting: Check for overflow in FLEN on 32-bit systems

 gdbstub/syscalls.c            |  2 +-
 semihosting/arm-compat-semi.c | 22 +++++++++++++++-------
 2 files changed, 16 insertions(+), 8 deletions(-)
Signature · 1 line
2.35.1.1320.gc452695387.dirty