diff options
| author | Nathan Huckleberry <[email protected]> | 2022-09-13 16:07:38 -0700 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-09-19 18:28:50 -0700 |
| commit | 8bb7c4f8c9276eb61f7f39cc107f67a0e81de610 (patch) | |
| tree | 98a1e3bcf5bdb316795d9335de4dae25abfbc3ff /tools/perf/scripts/python | |
| parent | 73c99e26036529e633a0f2d628ad7ddff6594668 (diff) | |
openvswitch: Change the return type for vport_ops.send function hook to int
All usages of the vport_ops struct have the .send field set to
dev_queue_xmit or internal_dev_recv. Since most usages are set to
dev_queue_xmit, the function hook should match the signature of
dev_queue_xmit.
The only call to vport_ops->send() is in net/openvswitch/vport.c and it
throws away the return value.
This mismatched return type breaks forward edge kCFI since the underlying
function definition does not match the function hook definition.
Reported-by: Dan Carpenter <[email protected]>
Link: https://github.com/ClangBuiltLinux/linux/issues/1703
Cc: [email protected]
Signed-off-by: Nathan Huckleberry <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Acked-by: Eelco Chaudron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions