diff options
author | Will Deacon <will@kernel.org> | 2020-04-14 22:22:47 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-04-15 21:36:41 +0100 |
commit | c6a771d932332568df9f46a3b53507c578e8c8e8 (patch) | |
tree | 75d1c03409b023605b61d1e2427479e08f8e302e /arch/arm64/kernel | |
parent | 9b4fb5cec031f81ef436bf2cfd9fc265e25f6e45 (diff) | |
download | linux-stable-c6a771d932332568df9f46a3b53507c578e8c8e8.tar.gz linux-stable-c6a771d932332568df9f46a3b53507c578e8c8e8.tar.bz2 linux-stable-c6a771d932332568df9f46a3b53507c578e8c8e8.zip |
arm64: csum: Disable KASAN for do_csum()
do_csum() over-reads the source buffer and therefore abuses
READ_ONCE_NOCHECK() to avoid tripping up KASAN. In preparation for
READ_ONCE_NOCHECK() becoming a macro, and therefore losing its
'__no_sanitize_address' annotation, just annotate do_csum() explicitly
and fall back to normal loads.
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions