[PATCH v1] PCI: imx6: Handle the abort from user-space

Francesco Dolcini francesco.dolcini at toradex.com
Thu Feb 10 00:00:50 PST 2022


Hello Lorenzo,
just a gently ping on this patch.

Francesco

On Mon, Jan 31, 2022 at 08:52:35AM +0100, Francesco Dolcini wrote:
> From: Jason Liu <jason.hui.liu at nxp.com>
> 
> The driver install one hook to handle the external abort, but issue
> is that if the abort introduced from user space code, the following
> code unsigned long instr = *(unsigned long *)pc; which will created
> another data-abort(page domain fault) if CONFIG_CPU_SW_DOMAIN_PAN.
> 
> The patch does not intent to use copy_from_user and then do the hack
> due to the security consideration. In fact, we can just return and
> report the external abort to user-space.
> 
> Link: https://lore.kernel.org/all/20220128082920.591115-1-francesco.dolcini@toradex.com
> Signed-off-by: Jason Liu <jason.hui.liu at nxp.com>
> Reviewed-by: Richard Zhu <hongxing.zhu at nxp.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
> Acked-by: Lucas Stach <l.stach at pengutronix.de>



More information about the linux-arm-kernel mailing list