[PATCH 1/2] arm64: insn: remove BUG_ON from codegen

David Miller davem at davemloft.net
Sun Jan 17 16:15:40 PST 2016


From: Zi Shen Lim <zlim.lnx at gmail.com>
Date: Wed, 13 Jan 2016 23:33:21 -0800

> During code generation, we used to BUG_ON unknown/unsupported encoding
> or invalid parameters.
> 
> Instead, now we report these as errors and simply return the
> instruction AARCH64_BREAK_FAULT. Users of these codegen helpers should
> check for and handle this failure condition as appropriate.
> 
> Otherwise, unhandled codegen failure will result in trapping at
> run-time due to AARCH64_BREAK_FAULT, which is arguably better than a
> BUG_ON.
> 
> Signed-off-by: Zi Shen Lim <zlim.lnx at gmail.com>

Applied.



More information about the linux-arm-kernel mailing list