Re: [PATCH v2] 9p: prevent read overrun in protocol dump tracepoint

2023-12-05 Thread Christian Schoenebeck
t; if ($dump_sz > $pdu->capacity) { > printf("reading %zu bytes from src buffer of %zu bytes\n", > $dump_sz, $pdu->capacity); > } > } > > Signed-off-by: JP Kobryn > --- Reviewed-by: Christian Schoenebeck > include/trace/eve

Re: [PATCH] 9p: prevent read overrun in protocol dump tracepoint

2023-12-02 Thread Christian Schoenebeck
On Saturday, December 2, 2023 5:35:18 AM CET asmad...@codewreck.org wrote: > JP Kobryn wrote on Fri, Dec 01, 2023 at 07:04:10PM -0800: > > An out of bounds read can occur within the tracepoint 9p_protocol_dump(). > > In the fast assign, there is a memcpy that uses a constant size of 32 > > (macro