diff options
author | Steve Markgraf <steve@steve-m.de> | 2018-10-07 01:44:23 +0200 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2018-10-07 01:44:23 +0200 |
commit | df33203db5007218384e6724748be52a1d4fdb25 (patch) | |
tree | 0b116f817a3d9df40ff6c81f2efa1b72cff89291 /debian/compat | |
parent | 0fb884942679d1246ae41d018764814401fd8c57 (diff) | |
download | osmo-fl2k-df33203db5007218384e6724748be52a1d4fdb25.tar.gz osmo-fl2k-df33203db5007218384e6724748be52a1d4fdb25.tar.bz2 osmo-fl2k-df33203db5007218384e6724748be52a1d4fdb25.zip |
lib: Add workaround for Linux usbfs mmap() bug
The Linux Kernel has a bug on ARM/ARM64 systems where the USB CMA
memory is incorrectly mapped to userspace, breaking zerocopy.
When the Kernel allocates the memory, it clears it with memset().
If the mapping worked correctly, we should have zeroed out buffers,
if it doesn't, we get random Kernel memory. We now check for this,
and fall back to buffers in userspace if that's the case.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'debian/compat')
0 files changed, 0 insertions, 0 deletions