Re: [PATCH] gdbstub: Fix handle_query_xfer_auxv

2021-01-28 Thread Alex Bennée
Richard Henderson writes: > The main problem was that we were treating a guest address > as a host address with a mere cast. > > Use the correct interface for accessing guest memory. Do not > allow offset == auxv_len, which would result in an empty packet. > > Fixes: 51c623b0de1 ("gdbstub: add

[PATCH] gdbstub: Fix handle_query_xfer_auxv

2021-01-28 Thread Richard Henderson
The main problem was that we were treating a guest address as a host address with a mere cast. Use the correct interface for accessing guest memory. Do not allow offset == auxv_len, which would result in an empty packet. Fixes: 51c623b0de1 ("gdbstub: add support to Xfer:auxv:read: packet") Signe