summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-saitek.c
diff options
context:
space:
mode:
authorSandipan Das2018-05-24 08:56:46 +0200
committerDaniel Borkmann2018-05-24 09:20:48 +0200
commit4ea69b2fd623dee2bbc77d3b6b7d8c0924e2026a (patch)
tree3f65586a10e872c08a2978c026579ea6fe432c64 /drivers/hid/hid-saitek.c
parentbpf: support 64-bit offsets for bpf function calls (diff)
downloadkernel-qcow2-linux-4ea69b2fd623dee2bbc77d3b6b7d8c0924e2026a.tar.gz
kernel-qcow2-linux-4ea69b2fd623dee2bbc77d3b6b7d8c0924e2026a.tar.xz
kernel-qcow2-linux-4ea69b2fd623dee2bbc77d3b6b7d8c0924e2026a.zip
bpf: powerpc64: pad function address loads with NOPs
For multi-function programs, loading the address of a callee function to a register requires emitting instructions whose count varies from one to five depending on the nature of the address. Since we come to know of the callee's address only before the extra pass, the number of instructions required to load this address may vary from what was previously generated. This can make the JITed image grow or shrink. To avoid this, we should generate a constant five-instruction when loading function addresses by padding the optimized load sequence with NOPs. Signed-off-by: Sandipan Das <sandipan@linux.vnet.ibm.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'drivers/hid/hid-saitek.c')
0 files changed, 0 insertions, 0 deletions