diff options
| author | Markos Chandras <[email protected]> | 2014-06-23 10:38:48 +0100 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2014-06-26 10:48:20 +0100 |
| commit | 55393ee535496f7db15f3b2e9d3cf418f772f71a (patch) | |
| tree | 92efeccf3e43e6caf9f11a87576d9fb21b7f5d1b /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
| parent | 35a8e16abe36d385d602997e1500a668d2b9c5cf (diff) | |
MIPS: bpf: Return error code if the offset is a negative number
Previously, the negative offset was not checked leading to failures
due to trying to load data beyond the skb struct boundaries. Until we
have proper asm helpers in place, it's best if we return ENOSUPP if K
is negative when trying to JIT the filter or 0 during runtime if we
do an indirect load where the value of X is unknown during build time.
Signed-off-by: Markos Chandras <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7123/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions