Searched hist:c6a771d9 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm64/lib/ |
H A D | csum.c | c6a771d9 Tue Apr 14 16:22:47 CDT 2020 Will Deacon <will@kernel.org> 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> c6a771d9 Tue Apr 14 16:22:47 CDT 2020 Will Deacon <will@kernel.org> 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>
|