hexagon semihosting: Address coverity finding
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 patches 0 repliesNew
- v44 patches 2 repliesSuperseded
- v34 patches 4 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 4 patches | 4 replies | Superseded | |
| v1 | 3 patches | 5 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | target/hexagon: use get_user*() for semihosting argumentstarget/ target/ target/ | +63 | 0 replies | |
| 2/4 | target/hexagon: fix semihosting OPEN filename handlingtarget/ | +13 | 0 replies | |
| 3/4 | target/hexagon: fix semihosting STAT filename handlingtarget/ | +7 | 0 replies | |
| 4/4 | target/hexagon: fix semihosting ACCESS filename handlingtarget/ | +10 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Peter Maydell |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/4] hexagon semihosting: Address coverity finding
These fixes are to mitigate the issue(s) reported by Coverity and Peter Maydell.
v5 - Fully reviewed + queued for PR.
In v5: moved unlock_user() to "fix semihosting OPEN filename handling".
In v4:
- Dropped "add directory semihosting operations": needs a better design approach, perhaps w/some architecture-independent state. Not required to mitigate Coverity issues.
- Pulled the hexagon_read*()->get_user() out of "fix semihosting OPEN filename handling" into its own patch.
In v3:
- The first patch now uses get_user_*() for semihosting argument accesses, instead of hexagon_read_memory(), now removed.
- For HEX_SYS_OPEN, filename/len validation errors are handled together.
In v2:
- HEX_SYS_OPEN switched to lock_user() from lock_user_string()
- pulled in {open,read,close}dir from the a prev patch, changes since that v2:
* Replaces POSIX DIR, opendir(), readdir(), and closedir() with portable GLib GDir APIs. {un,}lock_user
* Replaces the fixed BUFSIZ path buffer and byte-by-byte guest reads with lock_user_string()/unlock_user().
* Adds SemihostingDir, which stores the GDir plus enumeration state
* Synthesizes . and .., omitted by glib
* Writes inode zero instead of host d_ino, which GLib does not expose portably.
* Limits returned names to 254 characters plus NUL, rather than depending on host struct dirent::d_name size. Prev opendir v2: https://lore.kernel.org/qemu-devel/[email protected]/
v2: https://lore.kernel.org/qemu-devel/[email protected]/
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Brian Cain (4):
target/hexagon: use get_user*() for semihosting arguments target/hexagon: fix semihosting OPEN filename handling target/hexagon: fix semihosting STAT filename handling target/hexagon: fix semihosting ACCESS filename handling
target/hexagon/cpu_helper.h | 2 - target/hexagon/cpu_helper.c | 48 ++----------- target/hexagon/hexswi.c | 134 +++++++++++++++++++++--------------- 3 files changed, 82 insertions(+), 102 deletions(-)
Signature · 1 line
2.34.1