diff options
| author | Christoph Hellwig <[email protected]> | 2020-07-30 16:09:00 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-07-30 23:07:32 +0000 |
| commit | 4f010246b4087ab931b060481014ec110e6a8a46 (patch) | |
| tree | e454d2a5f3dad27c81eaaba95127c681cdb6cce4 /drivers/gpu/drm/lima/lima_gem.c | |
| parent | selftests/bpf: Extend map-in-map selftest to detect memory leaks (diff) | |
| download | kernel-4f010246b4087ab931b060481014ec110e6a8a46.tar.gz kernel-4f010246b4087ab931b060481014ec110e6a8a46.zip | |
net/bpfilter: Initialize pos in __bpfilter_process_sockopt
__bpfilter_process_sockopt never initialized the pos variable passed
to the pipe write. This has been mostly harmless in the past as pipes
ignore the offset, but the switch to kernel_write now verified the
position, which can lead to a failure depending on the exact stack
initialization pattern. Initialize the variable to zero to make
rw_verify_area happy.
Fixes: 6955a76fbcd5 ("bpfilter: switch to kernel_write")
Reported-by: Christian Brauner <[email protected]>
Reported-by: Rodrigo Madera <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: Rodrigo Madera <[email protected]>
Tested-by: Christian Brauner <[email protected]>
Reviewed-by: Christian Brauner <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_gem.c')
0 files changed, 0 insertions, 0 deletions
