Re: [PATCH] powerpc/pseries: Enforce hcall result buffer validity and size

2024-05-03 Thread Michael Ellerman
On Mon, 08 Apr 2024 09:08:31 -0500, Nathan Lynch wrote: > plpar_hcall(), plpar_hcall9(), and related functions expect callers to > provide valid result buffers of certain minimum size. Currently this > is communicated only through comments in the code and the compiler has > no idea. > > For

Re: [PATCH] powerpc/pseries: Enforce hcall result buffer validity and size

2024-04-28 Thread Michael Ellerman
Nathan Lynch writes: > Nathan Lynch writes: >> Michael Ellerman writes: >>> Nathan Lynch via B4 Relay >>> writes: plpar_hcall(), plpar_hcall9(), and related functions expect callers to provide valid result buffers of certain minimum size. Currently this is communicated only

Re: [PATCH] powerpc/pseries: Enforce hcall result buffer validity and size

2024-04-26 Thread Nathan Lynch
Nathan Lynch writes: > Michael Ellerman writes: >> Nathan Lynch via B4 Relay >> writes: >>> >>> plpar_hcall(), plpar_hcall9(), and related functions expect callers to >>> provide valid result buffers of certain minimum size. Currently this >>> is communicated only through comments in the code

Re: [PATCH] powerpc/pseries: Enforce hcall result buffer validity and size

2024-04-09 Thread Nathan Lynch
Michael Ellerman writes: > Nathan Lynch via B4 Relay > writes: >> >> plpar_hcall(), plpar_hcall9(), and related functions expect callers to >> provide valid result buffers of certain minimum size. Currently this >> is communicated only through comments in the code and the compiler has >> no

Re: [PATCH] powerpc/pseries: Enforce hcall result buffer validity and size

2024-04-09 Thread Michael Ellerman
Nathan Lynch via B4 Relay writes: > From: Nathan Lynch > > plpar_hcall(), plpar_hcall9(), and related functions expect callers to > provide valid result buffers of certain minimum size. Currently this > is communicated only through comments in the code and the compiler has > no idea. > > For

[PATCH] powerpc/pseries: Enforce hcall result buffer validity and size

2024-04-08 Thread Nathan Lynch via B4 Relay
From: Nathan Lynch plpar_hcall(), plpar_hcall9(), and related functions expect callers to provide valid result buffers of certain minimum size. Currently this is communicated only through comments in the code and the compiler has no idea. For example, if I write a bug like this: long