Re: [PATCH 2/8] powerpc/rtas: use memmove for potentially overlapping buffer copy

2023-03-22 Thread Andrew Donnellan
On Mon, 2023-03-06 at 15:33 -0600, Nathan Lynch via B4 Relay wrote: > From: Nathan Lynch > > Using memcpy() isn't safe when buf is identical to rtas_err_buf, > which > can happen during boot before slab is up. Full context which may not > be obvious from the diff: > > if (altbuf) { >    

[PATCH 2/8] powerpc/rtas: use memmove for potentially overlapping buffer copy

2023-03-06 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch Using memcpy() isn't safe when buf is identical to rtas_err_buf, which can happen during boot before slab is up. Full context which may not be obvious from the diff: if (altbuf) { buf = altbuf; } else { buf = rtas_err_buf;