Re: [PATCH v2 2/5] kernel: kexec: copy user-array safely

2023-09-10 Thread Baoquan He
On 09/08/23 at 09:59pm, Philipp Stanner wrote: > Currently, there is no overflow-check with memdup_user(). > > Use the new function memdup_array_user() instead of memdup_user() for > duplicating the user-space array safely. > > Suggested-by: David Airlie > Signed-off-by: Philipp Stanner > ---

[PATCH v2 2/5] kernel: kexec: copy user-array safely

2023-09-08 Thread Philipp Stanner
Currently, there is no overflow-check with memdup_user(). Use the new function memdup_array_user() instead of memdup_user() for duplicating the user-space array safely. Suggested-by: David Airlie Signed-off-by: Philipp Stanner --- kernel/kexec.c | 2 +- 1 file changed, 1 insertion(+), 1