Thread (8 messages) flat view 8 messages, 5 authors, 2016-03-15
STALE3806d

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

From: David Miller <davem@davemloft.net>
Date: 2016-01-18 00:15:40
Also in: linux-arm-kernel

From: Zi Shen Lim <redacted>
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 <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help