Re: [PATCH] atm: iphase: Avoid copying pointers to user space.

From: David Miller
Date: Tue May 14 2019 - 19:03:41 EST


From: Fuqian Huang <huangfq.daxian@xxxxxxxxx>
Date: Tue, 14 May 2019 23:11:59 +0800

> When ia_cmds.sub_cmd is MEMDUMP_DEV in ia_ioctl,
> nullify the pointer fields of iadev before copying
> the whole structure to user space.
>
> Signed-off-by: Fuqian Huang <huangfq.daxian@xxxxxxxxx>

Honestly I'd rather you just remove the MEMDUMP_DEV ioctl altogether,
there is now ay that information is useful in any way whatsoever.

Thank you.