summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-03-18 11:29:56 +0100
committerPeter Zijlstra <peterz@infradead.org>2021-03-19 13:16:44 +0100
commit698bacefe993ad2922c9d3b1380591ad489355e9 (patch)
treedb3411741a396904c002645ecbcfce546a29e4f4 /ipc
parent68b1eddd421d2b16c6655eceb48918a1e896bbbc (diff)
downloadlinux-stable-698bacefe993ad2922c9d3b1380591ad489355e9.tar.gz
linux-stable-698bacefe993ad2922c9d3b1380591ad489355e9.tar.bz2
linux-stable-698bacefe993ad2922c9d3b1380591ad489355e9.zip
static_call: Align static_call_is_init() patching condition
The intent is to avoid writing init code after init (because the text might have been freed). The code is needlessly different between jump_label and static_call and not obviously correct. The existing code relies on the fact that the module loader clears the init layout, such that within_module_init() always fails, while jump_label relies on the module state which is more obvious and matches the kernel logic. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Jarkko Sakkinen <jarkko@kernel.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Link: https://lkml.kernel.org/r/20210318113610.636651340@infradead.org
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions