mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
On ARM64, when the BPF JIT compiler fills the JIT image body with opcodes during translation of eBPF into ARM64 opcodes, we may fail for several reasons during that phase: one being that we jump to the notyet label for not yet supported eBPF instructions such as BPF_ST. In that case we only free offsets, but not the actual allocated target image where opcodes are being stored. Fix it by calling module_free() on dismantle time in case of errors. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Zi Shen Lim <[email protected]> Acked-by: Will Deacon <[email protected]> Cc: Alexei Starovoitov <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>