Home
last modified time | relevance | path

Searched hist:"5 e8307b9c6f40526f290663e5a4de0f78bb0446a" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/arm64/kernel/
H A Dmodule-plts.cdiff 5e8307b9c6f40526f290663e5a4de0f78bb0446a Tue Mar 06 11:15:31 CST 2018 Ard Biesheuvel <ard.biesheuvel@linaro.org> arm64: module: don't BUG when exceeding preallocated PLT count

When PLTs are emitted at relocation time, we really should not exceed
the number that we counted when parsing the relocation tables, and so
currently, we BUG() on this condition. However, even though this is a
clear bug in this particular piece of code, we can easily recover by
failing to load the module.

So instead, return 0 from module_emit_plt_entry() if this condition
occurs, which is not a valid kernel address, and can hence serve as
a flag value that makes the relocation routine bail out.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
H A Dmodule.cdiff 5e8307b9c6f40526f290663e5a4de0f78bb0446a Tue Mar 06 11:15:31 CST 2018 Ard Biesheuvel <ard.biesheuvel@linaro.org> arm64: module: don't BUG when exceeding preallocated PLT count

When PLTs are emitted at relocation time, we really should not exceed
the number that we counted when parsing the relocation tables, and so
currently, we BUG() on this condition. However, even though this is a
clear bug in this particular piece of code, we can easily recover by
failing to load the module.

So instead, return 0 from module_emit_plt_entry() if this condition
occurs, which is not a valid kernel address, and can hence serve as
a flag value that makes the relocation routine bail out.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>